While working in my lab I ran into an issue where if I tried to use option 98 to force a reboot of a Windows Server 2012 box I would get and error about other users logged in. This would stop the reboot and I would have to reboot manually. I’ve now modified the script so that the 98 option will reboot the server as needed.
The updated script is here. Thanks.