锁定系统

 Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Folder\shell\LockScreen]
@="锁屏(Win+L)(&L)"

[HKEY_CLASSES_ROOT\Folder\shell\LockScreen\command]
@="rundll32.exe user32.dll,LockWorkStation"

[HKEY_CLASSES_ROOT\AllFilesystemObjects\Shell\LockScreen]
@="锁屏(Win+L)(&L)"

[HKEY_CLASSES_ROOT\AllFilesystemObjects\Shell\LockScreen\command]
@="rundll32.exe user32.dll,LockWorkStation"

待机:rundll32.exe powrprof.dll,SetSuspendState

注销:logoff

关机:shutdown -s -f -t 0

你可能感兴趣的:(锁定系统)