How to Shut Down Windows PC/Laptop using Command Prompt

We can do plenty of things on any Windows Operating System using Command Prompt. In case if you are looking forward to Shutdown your PC/Laptop using Command Prompt (Cmd) then you are at the right place. Below are the steps through which you can Shutdown, Restart, Logoff, etc your PC/Laptop using Command Prompt (Cmd).

Shut Down Windows using cmd

Related: 5 Ways to Fix the Missing “Join” button in Microsoft Teams.

What is Command Prompt?

In simple words, a Command Prompt (Cmd) is a command-line interpreter application through which we can execute the entered commands. Almost all the command tasks are automated using Batch files (.bat, .cmd, .btm) and Scripts.

How to Shut Down Your PC/Laptop using Command Prompt

Below are a few steps which you need to follow in order to Shut Down Your PC/Laptop using Command Prompt (cmd). For precise information, make sure to follow each and every step carefully.’

  1. At first, open the Command Window by holding ‘Windows’ + ‘R’ keys and type ‘cmd’ & click on ‘OK’ to run it.
    Run Window cmd
  2. Now, type the following command and hit enter.
    shutdown /s

    Shut Down Command

  3. A pop-up message will be displayed saying You’re about to be signed out. You can close the pop-up message but it won’t stop the process. Your PC/Laptop will shutdown in less than a minute automatically. In order to stop the shutdown process then follow below.
    You're about to be signed out
  4. To Stop the Shut Down process, type the below command.
    shutdown /a

    Stop Shut Down Command

And that’s the way to Shut Down Your PC/Laptop using Command Prompt. You can follow the below steps to restart your PC/Laptop using cmd.

How to Restart Your PC/Laptop using Command Prompt

The Restart process is similar to the Shut Down process but you need to modify the command a little bit. Follow the below steps to do restart your PC/Laptop using cmd.

  1. At first, open the Command Window by holding ‘Windows’ + ‘R’ keys and type ‘cmd’ & click on ‘OK’ to run it.
    Run Window cmd
  2. Now, type the following command and hit enter.
    shutdown /r

    Restart Windows Command

  3. A pop-up message will be displayed saying You’re about to be signed out. You can close the pop-up message. You can also stop the restart process by entering the following command.
    shutdown /a

    Stop Restart Command

That’s the way to restart your PC/Laptop using cmd. Below are a few commands to perform some other related operations.

Other Related Commands

  • Type the following command to Log off
    shutdown /l
  • To Hibernate the local computer, enter the below command
    shutdown /h
  • To Turn off the local computer with no time-out or warning enter the below command and hit enter
    shutdown /p
  • To abort a system shutdown, type the below command
    shutdown /a
  • To go to the advanced boot options menu and restart the computer, type the following command”
    shutdown /o

Shut Down Windows Using Command

Wrap Up

The above are the commands and their execution process to Shut Down, Restart, Log off, Hibernate, etc your PC/Laptop. You can easily try all the above commands on your PC/Laptop. We hope everyone has understood and executed the following commands without any issue. In case if you have any queries, then do let us know via the comment section below.

Related: 5 Ways to Fix 0xA00F4244 error in Windows 10.

Leave a Comment

fifteen − 3 =