目录

[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

这个是指定日期的,不指定日期跨天无效

Last modification:November 23, 2022
V50%看看实力