How to Schedule a Computer to Shut Down With Command Prompt

Follow these steps to use the command prompt for a one-time shutdown. That’s it. Your computer will now automatically shut down at the time you specified. You’ll receive a warning a few minutes before shutdown to remind you then, too.

How to Set up Automatic Shutdown With the RUN Command

Follow these steps to use the command prompt for a one-time shutdown.

Using PowerShell for Immediate Shutdown

If you’d like a quick and immediate shutdown for Windows, use Windows PowerShell, the Start-Sleep, and the Stop-Computer cmdlets. The Start-Sleep cmdlet suspends activities in a script for a specified period of time. This puts applications to sleep or closes them. The Stop-Computer cmdlet will shut down the specified computer.

How to Use Task Scheduler to Set up Regular Shutdowns

If you need to set a shutdown timer for multiple uses (i.e., daily or weekly automatic shutdowns), it’s best to use the Task Scheduler, so you don’t have to remember to set things up all the time. Follow these steps: For the local computer, use ComputerName localhost or specify the computer name you wish to shut down. With these four approaches, you can manage your computer’s time and energy with ease.