I am trying to run a BAT file immediately before Windows shutdown. I've tried the method shown in the question below:
Executing a batch script on Windows shutdown
However, the file does not run.
I did not specify any parameters for the BAT file (see attached image below):
Should I add parameters in order for it to run? I am on Windows 8.1.
Navigate to the Local Group Policy Editor, then the shutdown properties then add a script like you did, but use the scripts tab, not powershell scripts. You do NOT need to run it as a powershell script unless it pulls things from powershell specifically.
Hope this helps!
Example
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With