If you use multiple computers, you may find it a hassle to restart them all manually. To make the task easier, you can easily restart these computers using a simple CMD command.ย 

For this to work, you will have to ensure all of your PCs are connected to the same network as a Remote computer. Moreover, you will also need the credentials to the administrator account of the PC.ย 

Restarting a remote computer using CMD is quite easy and will save you time and keep you away from the hassle of physically restarting each computer you have. In this article, we will be discussing various ways to restart a Remote computer using CMD.

Also Read- How To Enable Or Disable Search Highlights in Windows 11

Ways to Restart a Remote Computer Using CMD

Given below are all the three ways to restart a remote computer using the CMD-

1. Use the Shutdown Command

The very first way to restart a remote computer using CMD is with the help of the shutdown command. To do so, follow the steps given below-

  1. Press theย Windowsย key and search forย CMD. Run the Command Prompt as administrator.CMD Run as administrator
  2. Now, type the command-ย shutdown /m \\computername /rย in the command prompt. Here, you will have to replaceย computernameย with the name of the computer you want to restart.
  3. If you want to close all the programs before restarting, typeย /fย one space afterย /r.ย 
  4. Addย /cย afterย /f in the command. Then type a message in quotes to notify you about restarting your PC. The command should look like the below-
    • shutdown /m \\computername /r /f /c โ€œThis computer is about to restartโ€
  5. Addย ย /t xxย command on it. Hereย xx represents the time duration for your computer to restart. Now, the new command will look like this-
    • shutdown /m \\computername /r /f /c โ€œThis computer is about to restartโ€ /t 30
  6. At last, pressย Enterย to execute the command.ย 

NOTEโ€“ Some commands that have been used above are explained below-

  • /rย โ€“ It is used for restarting a computer.
  • /sย โ€“ It is used for shutting down a computer.
  • /m \\computernameย โ€“ This command specifies the remote computer to restart or shutdown.
  • /lย โ€“ Stands for logging off the computer.
  • /t xxย โ€“ Tells the duration when setting the timeout period before restart or shutdown to xx seconds.
  • /c โ€œcommentโ€ย โ€“ Used to display on the screen before restart or shutdown.

2. Windows PowerShell

You can also use Windows PowerShell to restart remote computers. Given below is the Windows PowerShell command to restart your PC-

  1. In theย Start Menu, search forย Windows PowerShell. Right-click on it and select theย Run as administratorย option.
  2. There type and execute the following command to restart a remote computer-
    • Restart-Computer -ComputerName REMOTE_COMPUTER_NAME -Force
      

Note-ย Here, replaceย REMOTE_COMPUTER_NAMEย with the name of the computer you want to restart.

3. Remote Shutdown Dialog

The computer automatically shuts down or restarts depending on the switch you choose in this method. Given below are the steps to use the Remote shutdown dialog to restart your PC-

  1. Openย Start Menu, and search forย Command Prompt.ย Run the Command Prompt with administrative privileges.
  2. Then, type the command given below and execute it-
    • shutdown -i
  3. Next, on the remote shutdown dialog window, click on theย Addย button.
  4. Type the computerโ€™s IP address that you want to restart and clickย OK.
  5. Now, under the dropdown menu ofย What do you want these computers to do, selectย Restart.
  6. Check the checkbox forย Warn users of the actionย and set the time in seconds next to theย Display Warningย field.
  7. Now, click on theย Plannedย checkbox. This will create an event tracker from the remote restart.
  8. Next, select a reason from the dropdown list for the restart. Under the comment section, type a comment that you want to be displayed before the computer restarts. Once done, click onย OK, and your computer will restart.

Conclusion

This article discusses the three simple methods to restart a remote computer using CMD, which will help you. Following the above methods, you will be able to restart your remote computer using CMD easily.

LEAVE A REPLY

Please enter your comment!
Please enter your name here