I would like to be able to fire a task before a windows server 2012 is reboot or shutdown.
I can see task scheduler supports an 'on startup' trigger. Unfortunately there is similar event for reboot
or restart
. Is there anyway I can achieve the my goal?