How can I determine if Shutdown or Reboot is currently executed in Windows 7 shutdown script?
I use the Group Policy Editor which is part of Windows 7 (also of Windows XP) to run a so-called shutdown script, which will automatically be executed each time the system is shutdown or rebooted. My problem is: I need to know in my script if the user has selected to shutdown the system, or if he has selected reboot instead. Both actions will make Windows run the shutdown script, but how can I determine during that script execution which action was actually performed? Is there any way to know, during shutdown, if the system currently performs a shutdown or a reboot?
May 22nd, 2012 1:18am

Hi, I suggest you go to Script forum for better support Thanks & Best RegardsMohammed Imtiyaz Ali
Free Windows Admin Tool Kit Click here and download it now
May 22nd, 2012 1:28am

Hi, I suggest you go to Script forum for better support Thanks & Best RegardsMohammed Imtiyaz Ali
May 22nd, 2012 1:38am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics