windows 10 设置每天自动关机任务

发布时间 2023-03-29 15:30:39作者: blues667

1.设置系统每天18:30自动待机; 设置系统在每周六和每周日的7:05 自动待机

schtasks /create /tn my-standby  /tr rundll32.exe powrprof.dll,SetSuspendState /sc daily /st 18:00  

schtasks /create /tn my-standby-sat  /tr rundll32.exe powrprof.dll,SetSuspendState /sc weekly  /d SAT /st 7:05  

schtasks /create /tn my-standby-sun  /tr rundll32.exe powrprof.dll,SetSuspendState /sc weekly  /d SUN /st 7:05  

 

2. 在BIOS 中, 设置系统在每天的7:00,自动唤醒。

 

2.设置

文件夹: \
任务名 下次运行时间 模式
======================================== ====================== ===============

my-standby 2023/3/29 18:00:00 就绪
my-standby-sat 2023/4/1 7:05:00 就绪
my-standby-sun 2023/4/2 7:05:00 就绪
每天18时睡眠 2023/3/29 18:00:00 就绪