Detailed graphics and text on Windows computer settings for automatic shutdown/planned shutdown

Table of contents

method one

Use commands to execute quickly

Cancel command plan

 Method Two

 Add tasks using command

 Cancel scheduled task

 Method three

 Open task scheduler

 Create a new task plan

 Cancel task schedule

Finish


method one

This method is to directly execute the command and is relatively fast;

Use commands to execute quickly

1. Keyboard key combination [WIN+R]

2. Related reference commands

shutdown.exe -s -t  3600                //一小时后关机
shutdown.exe -s -t  18000               //五小时后关机
shutdown.exe -s -t  86400               //二十四小时后关机
#-t 后面跟的时间是以秒为单位计算,3600为一小时,自行按需计算叠加。
#-t 后面跟0的话 就是立即注销关机

 3. Execute the command and confirm

 4. The computer system will provide relevant reminders

Cancel command plan

1. Refer to the first step above [WIN+R]

2. Execute the shutdown command - enter [shutdown -a]

 Method Two

This method is to execute a command to add a scheduled task to the computer, and then trigger the mechanism

 Add tasks using command

1. Keyboard key combination [WIN+R]

2. Enter [cmd] and confirm/enter

3. Enter the command to start the task

schtasks /create /tn shut /tr "shutdown -s -f" /sc once /st 11:11 /sd 2011/11/11
#说明:新建一个shut的计划任务,计算机于2011/11/11 11:11执行shutdown -s -f 关机命令。
#变量:命令中的日期、时间、-参数,都是可以根据需求修改。

4. Enter and press Enter to execute the effect

 Cancel scheduled task

schtasks /delete /tn "shut"
#说明:取消"shut"这个计划任务

 1. Enter the command and press Enter to execute. Select "Y" to confirm deletion.

 Method three

This method is to visually create a scheduled task without commands and visual operations.

 Open task scheduler

1. Keyboard key combination [WIN+R]

2. Enter [taskschd.msc] and confirm/enter

 Create a new task plan

 Cancel task schedule


Finish

If you have any questions, please leave a message or contact the editor~

Please like, retweet and support~~Thank you! ! !

Guess you like

Origin blog.csdn.net/qq_42465243/article/details/128314198