We have a script that we would like to run at logoff (preferably shutdown). I am already aware of the LGPO option to run a script at shutdown, but we would like the control of Task Scheduler to run this.
What event ID(s) do I need to enter for this to happen?
Reason we want task scheduler is if the script runs for more than x minutes, we would stop the task, and reboot.
Any help is appreciated.