Shutting down your computer via Command Prompt is faster than clicking through menus - ideal for automation, remote management, or when the GUI freezes. The shutdown command gives you full control over timing, force options, restarts, and even remote shutdowns.
Shut Down Your PC Using the Command Prompt - 3 Methods
Now, we will be performing 3 different methods to shut down your computer using CMD. Let's find out:
1. Basic Shut Down Command using CMD
One of the basic and mostly used methods is by running the following command:
Step 1: Open "Run" and type CMD
Hit the Windows + R, type "CMD" or command prompt and hit the Enter button.

Step 2: Run /s command to Shut Down Your PC
Once you enter the command prompt, type the following command.

Now, you will see a pop-up for shut down the PC. This will immediate shut down your computer. However, you can also choose to cancel this method using the following command.
How to Cancel the Shut Down
However, you can also choose to cancel this method using the following command:
Shutdown /a
2. Time Delay Shut Down using CMD
You can also schedule to shut down you system using any specific time. Here, we have taken 60 seconds as an example. Let's follow the steps and command for te same.
Step 1: Open CMD
Go to Run and type CMD. Now, hit the Enter button

Step 2: Run /s /t Command
If you want your computer to shut down after 1 minute (60 seconds), use the following command:
shutdown /s /t 60
Note: Your system will shut down right after 60 seconds. So, ensure to save all your unsaved data to avoid any data loss. However, you can also choose to cancel this method using the following command.
How to Cancel the Time Delay Shut Down
You can also choose to cancel this method using the following command:
Shutdown /awhere, a -> is to abort any scheduled shutdown (within the scheduled time frame).
3. Force Shut Down using CMD
You may also choose to force shut down your system if some applications are blocking the shutdown by following these methods:
Step 1: Open CMD
Go to Run and type CMD. Now, hit the Enter button

Step 2: Run /s /f /t Command
Now, use the following command to force shut down your system.
shutdown /s /f /t 60
Note: This command will force down your Windows system within next 60 seconds.
4. Remote Shut down using CMD
If you wish to shut own your system remotely then follow the steps below:
Step 1: Prepare the Remote Computer
Ensure that the remote computer allows remote shutdowns via its firewall settings (the “File and Printer Sharing” feature should be enabled, and the Windows Management Instrumentation (WMI) service should be running).
Step 2: Execute the Command
Now, use this command to shut down your system remotely
shutdown /s /f /t 0 /m \\RemoteComputerNameHere, RemoteComputerName -> remote computer network's IP
5. How to Restart Your System Instead of Shut Down
You can also choose to restart your system instead of shutting it down. Let's understand this how you can perform it in few easy steps.
Step 1: Open Command Prompt
Go to "Run" and type "CMD" and hit the Enter button.

Step 2: Run the /r command to Perform the Restart
Now, type the following command to perform an immediate restart of your Windows PC.
shutdown /r /t 0Here, r -> is the function to restart, and /t 0 -> is to perform an immediate Restart.
6. How to Remote Restart the Computer
You can also Restart your computer remotely using the following command:
shutdown /r /f /t 0 /m \\RemoteComputerName