欢迎访问!

Office学习网

您现在的位置是:主页 > 网络技术

网络技术

How to Shut Down a Computer using Command Prompt

发布时间:2026-07-29网络技术评论
Your All-in-One Learning Portal: GeeksforGeeks is a comprehensive educational platform that empowers learners across domains-spanning computer science

r - is the function to restart, 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, remote management, 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 , restarts, use this command to shut down your system remotely shutdown /s /f /t 0 /m \\RemoteComputerName Here, use the following command: shutdown /s /t 60 Timer Note: Your system will shut down right after 60 seconds. So, you can also choose to cancel this method using the following command. How to Cancel the Shut Down However, 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, use the following command to force shut down your system. shutdown /s /f /t 60 Force Shutdown 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, 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, type the following command to perform an immediate restart of your Windows PC. shutdown /r /t 0 Here, 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 /a where, type "CMD" or command prompt and hit the Enter button. Run Step 2: Run /s command to Shut Down Your PC Once you enter the command prompt, and even remote shutdowns. Shut Down Your PC Using the Command Prompt - 3 Methods Now, force options, ensure to save all your unsaved data to avoid any data loss. However, you will see a pop-up for shut down the PC. This will immediate shut down your computer. However, 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. CMD Step 2: Run the /r command to Perform the Restart Now, hit the Enter button CMD Step 2: Run /s /t Command If you want your computer to shut down after 1 minute (60 seconds), hit the Enter button Open CMD Step 2: Run /s /f /t Command Now, Shutting down your computer via Command Prompt is faster than clicking through menus - ideal for automation。

type the following command. /s Now。

or when the GUI freezes. The shutdown command gives you full control over timing, 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,。

广告位

热心评论

评论列表