Run this script from the task scheduler from and Admin account:
'WMIRestart.vbs
set osSet = GetObject("winmgmts:").InstancesOf("Win32_OperatingSystem")
for each os in osSet
os.Win32Shutdown(6)
next
6 is a forced reboot vs 2, reboot.
12 forced power off, 8 power off
4 forced logoff, 0 logoff
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.