Psshutdown for mac reboot windows computer

broken image
broken image
broken image

Of course, the delay and message can be changed, and if you want the script to instead shutdown, replace the '-r' switch with '-s'. In the script as-is, the computers will restart after 5 minutes secondsand display a warning to any users currently logged on to save their work before their computer automatically restarts. Need to restart all the Windows computers on the network? Need a script to add to the domain controller's Task Scheduler to shut all the computers down at night? This script reads a text file populated with computer names and performs the remote shutdown command on them. Are you an IT Pro? Creating your account only takes a few minutes.