Win8 關機需點擊 Charms→設置→電源→關機,步驟繁瑣。通過注冊表在桌面/資源管理器背景右鍵菜單添加快捷命令:
AddShutdownContextMenu.reg。

核心注冊表結構 (節選):
; 關機
[HKEY_CLASSES_ROOT\Directory\Background\shell\Shutdown]
"MUIVerb"="關機"
"Icon"="shell32.dll,27"
[HKEY_CLASSES_ROOT\Directory\Background\shell\Shutdown\command]
@="shutdown.exe -s -t 00"
; 重啟
[HKEY_CLASSES_ROOT\Directory\Background\shell\Restart]
"MUIVerb"="重啟"
"Icon"="shell32.dll,238"
[HKEY_CLASSES_ROOT\Directory\Background\shell\Restart\command]
@="shutdown.exe -r -t 00"
; 註銷
[HKEY_CLASSES_ROOT\Directory\Background\shell\Logoff]
"MUIVerb"="註銷"
"Icon"="shell32.dll,44"
[HKEY_CLASSES_ROOT\Directory\Background\shell\Logoff\command]
@="shutdown.exe -l"
菜單項順序可通過修改鍵名首字母排序控制 (如添加數字前綴 1_Shutdown, 2_Restart)。無需第三方軟件,純注冊表修改,安全無殘留。