How to shut down, restart, schedule Windows 10 with CMD

While it’s true that shutting down or restarting your Windows 10 PC is relatively quick when done from the Start menu, using the built-in shutdown tool in the Command Prompt (CMD) gives you a lot more options. With CMD, you can schedule actions such as shutdown, reboot, or hibernation, as well as display a custom message when you run them. Additionally, you will be able to shut down or restart other remote computers that you have access to on the same network.

Shut down / restart your PC with command prompt

With the command prompt, you can shut down or restart your Windows 10 PC with a timer or by displaying a custom message. That’s how:

one. Open the Start menu and type Symbol of the system in the search box. Then click Execute as an administrator to open it with administrator rights.

Open command prompt in Windows 10

two. Type the following command and press Enter.

shutdown /s
Shutdown with command prompt

Your PC will shut down after one minute. If you want to modify the period of time after which the PC should shut down, use the following command instead.

shutdown /s /t COUNTDOWN
Timer shutdown in Windows 10

Now you need to replace the COUNTDOWN in the above command with the number of seconds after which the PC should shut down.

Turn off PC with timer

In addition to a timer, if you want to turn off your PC with a custom dialog message, then use the following command instead:

shutdown /s /t COUNTDOWN /c CUSTOM MESSAGE

Again, replace the PERSONALIZED MESSAGE with any text so that the user knows the reason behind shutting down the PC.

Shut down the PC with a custom message

Similarly, to restart the PC with the command prompt, replace letter s with r in the above commands to perform a reboot, reboot with a custom countdown, and reboot with a custom message.

  • Normal reboot – off / r
  • Restart with a countdown – off / r / t COUNTDOWN
  • Restart with a custom message – shutdown / r / t COUNTDOWN / c CUSTOM MESSAGE

If at any point during the countdown, you decide to abort the scheduled shutdown, give the following command:

shutdown /a
Abort scheduled shutdown in Windows 10

In addition to the options for adding a timer and a message, there are a ton of other options available when shutting down or restarting your PC. For the full list of available commands, type the following at the command prompt and press Enter:

shutdown /?
Shutdown command list

You will be presented with a list of all the shutdown commands that you can perform with a short description.

How to shut down a remote computer with the command prompt

Probably the best part of using the shutdown command line tool is being able to shut down / reboot a computer remotely. However, to enable this feature, you must first configure that remote computer to receive commands from other computers.

Configure remote shutdown on remote computer

To configure remote shutdown or restart on a computer, you must disable User Account Control on the computer. Here’s how to do it.

one. Open the Start menu and type Symbol of the system in the search box. Then click Execute as an administrator on the right to open it with administrator rights.

two. Type the following command and press Enter.

reg add HKLMSoftwareMicrosoftwindowsCurrentVersionPoliciessystem /v LocalAccountTokenFilterPolicy /t REG_DWORD /d 1 /f
Configure Windows PC for remote shutdown

That’s it. Now you are all set to receive commands remotely from an authenticated PC.

Perform a remote shutdown

Once you have disabled User Account Control on the remote computer, follow the steps below to shut down that computer remotely.

one. Open the Start menu, type the Symbol of the systemand click Execute as an administrator to open it with administrator rights.

two. Type the following command and press Enter.

shutdown /i
Open remote shutdown dialog

3. This will open the remote shutdown dialog. Here below Computers, you can Add or Surf remote computers connected to the same network as yours to be shut down or rebooted remotely.

Remote shutdown dialog

Four. Once added, you can choose to shutdown or restart from the drop-down menu. Additionally, you can also modify the number of seconds for which the warning should be displayed before shutting down the remote computer. Press OK to save the changes.

Remote shutdown dialog in Windows 10

And voila! You will be able to shut down or reboot a remote computer without physically accessing it. By following the steps above, you can add multiple computers to the list and perform the shutdown action remotely.

Final Comments: Shut Down / Restart Windows 10 PC With Command Prompt

So that was it. Using a command prompt to shut down or restart your PC unlocks a host of options. Especially being able to shut down or restart a remote computer can be useful if you have multiple computers set up in different rooms.

Read also: Run Cmd Prompt as administrator with this desktop shortcut

Recommended For You

Deja una respuesta

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *