How to Shutdown or Reboot Remote Computer from Command Line
How to Shutdown or Reboot Remote Computer from Command Line? Normally we can shut down a computer from start menu shutdown icon. If you use remote desktop and same system using to shut down. But If you have a lot of computers, which need to be shut down, then you can do it from a batch file and it’s very helpful. Remember exact command would save a lot of time for system administrators. In this situation, there is a tool called PcShutdown.exe and its developed by SysInternals.com (Now its the part of Microsoft).
This Tool- PsShutdown.exe can be downloaded as part of PS Tools from Go to location – http://technet.microsoft.com/en-us/sysinternals/bb897541.aspx
Read Also: How to Schedule Automatic Shutdown – Restart
If you want to shutdown your computer by running the below command-
PsShutdown.exe -u username -p password \\Remotecomputer
If the above command running well, you see a message like below-
Remote computer is scheduled to reboot in 00.00.20.
If you want to shutdown your system to set schedule time, just you need to use -t switch to specify the time in 24 hours format. If you shutdown at 3:30 PM today and your command would be-
PsShutdown.exe -t 15:30 -u username -p password \\Remotecomputer
Read Also: How to Enable / Disable WiFi Connection
How to Restart a Remote computer?
You need to use PsShutdown command for restarting a remote PC. You need to run below command-
PsShutdown.exe -r -u username -p password \\RemoteComputerName
Read Also: Open Network Connection from Command Line