1.用命令控制定时关机,重启,休眠等

休眠:rundll32.exe powrProf.dll,SetSuspendState

休眠:shutdown -h

睡眠:rundll32.exe powrprof.dll,SetSuspendState 0,1,0

关机:shutdown -s -t 0

2.设置windows计划任务,自动定时执行任务:

05-11 19:40