May
8
[原]Windows 命令行控制关机休眠等操作
常用RDP 登陆Windows 机器,重启、关机都是shutdown命令触发的,休眠、锁定呢?
关机计算机:shutdown.exe -s -t 00
重启计算机:shutdown.exe -r -t 00
注销计算机:shutdown.exe -l -t 00
锁定计算机:rundll32.exe user32.dll,LockWorkStation
休眠计算机:rundll32.exe powrProf.dll,SetSuspendState
睡眠计算机:rundll32.exe powrprof.dll,SetSuspendState 0,1,0
关机计算机:shutdown.exe -s -t 00
重启计算机:shutdown.exe -r -t 00
注销计算机:shutdown.exe -l -t 00
锁定计算机:rundll32.exe user32.dll,LockWorkStation
休眠计算机:rundll32.exe powrProf.dll,SetSuspendState
睡眠计算机:rundll32.exe powrprof.dll,SetSuspendState 0,1,0