Windows 8 關機不直觀,透過修改登錄可在桌面右鍵選單直接加入「電源選單」,包含鎖定、登出、切換用戶、睡眠、休眠、重新啟動、關機等完整功能。
Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\DesktopBackground\Shell\Power Menu] "MUIVerb"="Power Menu" "SubCommands"="lock;logoff;switch;sleep;hibernate;restart;shutdown" "Icon"="shell32.dll,215" "Position"="bottom" [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\lock] @="Lock" [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\lock\command] ; ... (其餘命令鍵值略,完整內容請見原文或下載現成 .reg 檔)
PowerMenu.reg (編碼 ANSI/UTF-16 LE)。
原理:向註冊表 DesktopBackground\Shell 新增級聯選單,呼叫系統內建 CommandStore\shell 電源命令。網路上有現成完整 .reg 檔下載,建議直接使用避免手動輸入錯誤。