1.用命令控制定时关机,重启,休眠等休眠:rundll32.exe powrProf.dll,SetSuspendState休眠:shutdown -h睡眠:rundll32.exe powrprof.dll,SetSuspendState 0,1,0关机:shutdown -s -t 02.设置windows计划任务,自动定时执行任务: