When you purchase through links on our site, we may earn an affiliate commission.Heres how it works.

If you must turn off the computer after a specific time, you have at least seven ways.

you could use commands with PowerShell, Command Prompt, and the Run dialog.

Windows 11 set shutdown time

Windows 11 setting shutdown time in command prompt.

It’s also possible to trigger a shutdown using a shortcut or abatch file.

From Command Prompt

The easiest way to schedule an automatic shutdown is using the “Shutdown” command-line tool.

Command breakdown:

2.

Command Prompt shutdown command

From PowerShell

PowerShell doesn’t actually offer a command to schedule an automatic shutdown.

PowerShell shutdown command

Run command with shutdown tool

Desktop shortcut option

Shortcut with shutdown command

Notepad create batch file

Power and battery settings

Set the time to sleep computer

Create Basic Task

Task Scheduler name task

Task Scheduler trigger option

Configure schedule in Task Manager

Task Scheduler start a program

Task Scheduler shutdown command

Windows 11 powercfg commands

Windows 10 create scheduled task with PowerShell

Open Command Prompt on Windows 10

Windows 11 system features

PowerShell basic commands

Windows 11 clean install

Windows 11 Start menu

Windows 11 battery usage

Copilot Vision for Windows announcement

Xbox controller with WD-40

Elden Ring Nightreign

The rare Caine Trailblazer operator skin, obtainable from the Return to Verdansk event in Call of Duty: Warzone

Dune: Awakening

DOOM: The Dark Ages

Moto book 60