

Here is a command to reboot a remote computer after a delay of 60 seconds with a custom message: shutdown /r /m \\ RemotePCName /t 60 /c "Your computer is being restarted by your IT Admin" Closing wordsĪlthough there are multiple ways in the GUI of Windows to reboot a computer, it does not however give the various options the command line does, such as introducing a delayed reboot.

Now that you know the concept, you can use any of the commands discussed in this article for a remote computer. shutdown /r /m \\ RemotePCNameĮnsure that the remote computer is on the same network as yours for the command to work. To restart a remote computer, use the following command while replacing RemotePCName with the name of the target device. The switch used together with the shutdown command to specify another computer is /m. All that is required now is to use the same cmdlets together with a few additional switches to access the remote computer and reboot it. Now that you know the cmdlets to reboot a local computer, rebooting a remote computer will be easy. Here is an example: Restart remote computer using Command Line It can be used as a standalone switch, or with the /t switch to shut it down with a time delay. You can also use the /s switch instead of the /r switch in all of the commands above to completely shut down the computer altogether. Here is an example with a time delay switch /t.

Also, you can use the /c switch in any cmdlet used to add a custom message. Use the command below to do so: shutdown /r /c "Put custom message here"Īs you may find in the image above, the message that we put in the cmdlet has been displayed in the dialog box. This is especially useful for IT administrators while rebooting remote computers. You can also add a custom message to be displayed when the device is going to be rebooted. shutdown /r /f Add custom message while restarting computer This prevents any open applications or unsaved data to stop the reboot and restarting the computer whatsoever. You can also add an additional switch to forcefully reboot the computer. If you decide to cancel a system reboot that is going to occur after some time delay, you can use the command below to cancel it: shutdown /aĮntering this command will result in a notification in the tray informing you that the action has been canceled. In response to this command, you will see a message like the one below, depending upon the time delay you put in the command: Cancel a computer restart The maximum time you can put it in is 60 seconds. Replace TimeInSeconds with the number of seconds you want to delay it: shutdown /r /t TimeInSeconds You can also set a time delay before the computer reboots, using the command below. You will then be prompted with a message such as the following, and the system will immediately reboot.

To simply reboot a computer, enter the following command: shutdown /r We are going to start with how you can reboot a local Windows computer using the Command prompt, and then use the same login to reboot remote computers on the same network. /c – Custom message to display Restart your local computer using Command Line.Here is a list of the switches and their uses: The command used to reboot computers is “shutdown.” A number of different switches can be concatenated with this cmdlet to perform various functions. Closing words Shutdown cmdlet & switches.Restart remote computer using Command Line.Add custom message while restarting computer.Restart your local computer using Command Line.
