Remember to maintain security and privacy. Do not share sensitive information. Procedimento.com.br may make mistakes. Verify important information. Termo de Responsabilidade
Shutting down your computer via the Command Prompt (CMD) in Windows is a straightforward process that can be useful in various scenarios, such as automating shutdowns or managing remote systems. This article will guide you through the steps to execute a shutdown command using CMD.
The shutdown
command in Windows is a versatile tool that allows users to shut down, restart, or log off a computer. It can be executed from the Command Prompt, making it a powerful option for system administrators and advanced users.
To shut down your computer using CMD, follow these steps:
Win + R
to open the Run dialog.cmd
and press Enter to open the Command Prompt.In the Command Prompt window, type the following command and press Enter:
shutdown /s
This command will initiate a standard shutdown of your computer.
If you want to delay the shutdown by a specific number of seconds, use the /t
option followed by the number of seconds. For example, to shut down the computer after 60 seconds, use:
shutdown /s /t 60
If you change your mind and want to cancel a scheduled shutdown, use the /a
option:
shutdown /a
This command must be executed before the countdown reaches zero.
To restart the computer instead of shutting it down, use the /r
option:
shutdown /r
If you need to forcefully close running applications during shutdown, add the /f
option:
shutdown /s /f
For more advanced usage, you can combine multiple options to customize the shutdown process. For example, to schedule a restart with a 30-second delay and force applications to close, use:
shutdown /r /f /t 30
Using the shutdown
command in CMD provides a flexible way to manage your computer's power state directly from the command line. Whether you need to perform a simple shutdown, schedule a delayed power-off, or manage remote systems, these commands offer a powerful solution.