Is there any way, in Windows 7 Professional
, to run a batch script (e.g., a .BAT file) when the user clicks on "shutdown" (not a batch file scheduled to shut down the machine, just one that runs only if the user clicks on "shutdown")?
Ideally, such a script would show the command prompt window and offer an option to cancel the shutdown procedure.
Solutions that do not require a third-party utility would be preferable.
You can create a local computer policy on Windows. See the TechNet at http://technet.microsoft.com/en-us/magazine/dd630947
gpedit.msc
to open the Group Policy Editor,