Restart a Remote Server via Command Line (CMD)

3 Jan, 2022·
AlexIn Tech
AlexIn Tech
· 1 min read

Restart a Remote Server via Command Line (CMD)

Hello everyone! Today’s article is super short and explains how to restart a remote server via command line (CMD).

The Shutdown Command

Windows includes a built-in shutdown command called “shutdown.” You can use it to stop or restart a local or remote machine.

To use this command, simply open a CMD prompt.

You can view details about this command by typing “shutdown /?” in a CMD prompt.

Here’s a list of commonly used options:

  • /s - Shut down the machine.
  • /r - Restart the machine.
  • /m - Specify a remote computer.
  • /l - Do not log off.
  • /t - Time in seconds before stopping or rebooting.
  • /c - A comment displayed on the machine’s reboot or shutdown screen.

Here are some examples:

Shutting Down a Machine

shutdown /s

Instant Restart of a Machine

shutdown /r /t 00

Instant Restart of a Remote Machine

shutdown /r /m \\yourRemoteServer /t 0

That’s it, enjoy! 😉

AlexIn Tech
Authors
SysOps Engineer | IT Teacher
Versatile IT Engineer with a dual specialization in System Engineering and Management, AlexIn Tech teaches IT to CFC apprentice IT specialists at ETML, the Technical School of Lausanne 🇨🇭. Passionate about IT, innovation, and knowledge sharing, he shares his discoveries and learnings here to inspire new generations.