How to Shut Down Your Computer with the Command Prompt:

Most of us are using shutdown button in the menu bar to shutdown computer. Very less people are using command prompt to shut down a computer, why because most of them don’t know how to shutdown a computer with command prompt

By using command prompt we can shutdown a computer, we can log off and we can restart.

This article will help to shutdown a computer with the command prompt.

Step 1: open command prompt (Go to Start -> type cmd in search box)

CdStep 2:  Type shutdown -s in the command prompt and press enter. This command will shut down your computer .

SdIt will display a message like windows will shut down in less than a minute.

Sd1Type shutdown -r in command prompt and press enter. This command will restart your computer .

Sd2It will display a message like windows will shut down in less than a minute.

Sd3Type Shutdown -l in command prompt and press enter. This command will logoff your computer

Sd4

If you want to shut down your computer after a specific time use the below command.

Type shutdown -s -t 200 in command prompt and press enter. This command will shut down your computer after 200 seconds

Sd5Press enter you will get a message as shown below

Sd6If you want to display a custom message before shut down a system use below command

Type shutdown -s -t 300 -c “Bye I am going to sleep” in your command prompt and press enter.

-c command will give the reason for shut down

Sd7It will give a message as shown below

Sd8If you want to terminate already scheduled shutdown use below command

Type shutdown -a in command prompt and press enter, it will stop the system from shutting down

Sd9You will get a notification as shown below

Sd10Enjoy 🙂

Thank you for visiting how2doit.in.  If you find any mistakes help us by leaving a comment.