logo
ComputerHow to Restart/Shutdown Computer with Command Prompt

How to Restart/Shutdown Computer with Command Prompt

By Sophia | Last Updated

Several commands in Windows allow you to restart or shut down your computer. This article will explain how to restart or shut down computer with the shutdown command.

How to Restart/Shutdown Computer with Command Prompt

“Shutdown” is a command line tool built into Windows that can be used to restart, shut down, put your computer hibernate, or end a user session. In this guide, we will show basic examples of using the Shutdown command in Windows.

Press [Windows+ R] shortcut keys to open the Run, type “cmd” and then click OK to open the Windows Command Prompt.

type cmd

In the Command Prompt window, type “shutdown” and then press Enter, the rules for using the command will be listed below.

type shutdown

The following will demonstrate the commands for restarting and shutting down and some common function commands.

1. Command [shutdown -s]: shut down the computer immediately.

type shutdown s

2. Command [shutdown -r]: full shutdown and restart the computer.

type shutdown r

3. Command [shutdown -h]: hibernate the local computer.

type shutdown h

4. Command [shutdown -l]: logout. This cannot be used with /w or /d options.

type shutdown l

Related Articles: