Below is a simple example about how to schedule shutdown your windows 7 automatically.
Method 1: automatically shutdown windows 7 using at command
1.Create a bat file,for example, “shutdown.bat” (Customize folder options to show file extensions ,then create a text file and rename it to shutdown.bat ,then right click this bat file and click Edit)
2.Add the following lines to this file
@echo off at 22:50 /every:M,T,W,Th,F,S,Su shutdown -s -t 60 -c "Too late,it's time to go to bed!" echo Done! pause&end
3.Right-Click this file then click Run as administrator
4.(Optional)To remove this job,just open an Open an Elevated Command Prompt ,type command at ,press Enter to find the Job ID,then use
at ID /delete
to remove this job
1 .Alternatively you can combine steps 1~3 by running the 2nd line code as a command in Elevated Command Prompt without creating a bat file
2.You also can refer Schedule a task in Windows 7 to see how to schedule auto shutdown using Task Scheduler
Method 2: automatically shutdown windows 7 using Task Scheduler
1.Click Start ,type scheduler in your search box then Hit Enter to open Task Scheduler
2.click Create Basic Task
3.Input your task name and description,then click Next
4.Select Daily(selected by default) then click Next
5.Choose the time that you want to shutdown your windows 7,then click Next
6.Choose Start a program ,then click Next
7. Click Browse and select C:\Windows\System32\ and selece shutdown.exe then add below line as argument
/s /f /t 90 /c "System will be shutdown within 90 Seconds"
8.Done.Now system will automatically shutdown your windows 7 at the time you choose every day.