目录
[TOC]
定时关机
在3600
秒以后关机:win
+r
并输入:
``
shutdown -s -t 3600
``
定时睡眠(定时待机)
以管理员身份运行cmd
或者powershell
powercfg -h on
schtasks /create /tn my-standby /tr "rundll32.exe powrprof.dll,SetSuspendState" /sc once /st 23:30
取消定时任务
schtasks /delete /tn my-standby
[注:查看休眠是否开启:powercfg /a
在powercfg -h on
状态下,以管理员身份运行rundll32.exe powrprof.dll,SetSuspendState 0,1,0
不会进入睡眠,而是休眠。
在powercfg -h on
状态下,以管理员身份运行rundll32.exe powrprof.dll,SetSuspendState Sleep
不会进入睡眠,而是休眠。]
schtasks /create /tn my-standby /tr "rundll32.exe powrprof.dll,SetSuspendState" /sc once /st 03:30 /sd 2021/04/15
这个是指定日期的,不指定日期跨天无效