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 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.

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



























