Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學

Windows 8 一鍵關機/重啟/登出:加入右鍵選單最快達陣法

編輯:Windows 8 系統介紹

Windows 8 隱藏關機選單於 Charms 列,操作步驟繁瑣讓許多使用者抓狂。本文提供一鍵匯入登錄檔,將「關機、重啟、登出、切換使用者、睡眠、休眠、鎖定」七大電源指令直接放入桌面右鍵選單,滑鼠右鍵即達,效率倍增。

操作原理

在登錄表 HKEY_CLASSES_ROOT\DesktopBackground\Shell 建立 Power Menu 子機碼,透過 SubCommands 串聯七個預設系統命令,並指定圖示與顯示位置。

一鍵部署步驟

  1. 開啟記事本,貼入下列完整內容:
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]
@="Rundll32 User32.dll,LockWorkStation"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\logoff]
@="Log Off"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\logoff\command]
@="Shutdown -l"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\switch]
@="Switch User"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\switch\command]
@="tsdiscon.exe"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\sleep]
@="Sleep"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\sleep\command]
@="rundll32.exe powrprof.dll,SetSuspendState Sleep"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\hibernate]
@="Hibernate"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\hibernate\command]
@="Shutdown -h"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\restart]
@="Restart"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\restart\command]
@="Shutdown -r -f -t 00"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\shutdown]
@="Shut Down"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\shutdown\command]
@="Shutdown -s -f -t 00"
  1. 另存為 PowerMenu.reg (編碼選 ANSI 或 UTF-8 均可)。
  2. 雙擊檔案 → 「是」匯入登錄表。
  3. 桌面空白處右鍵,最下方即出現 Power Menu 子選單,含七大指令。
    右鍵選單示範圖

移除方法

同樣建立 RemovePowerMenu.reg,內容為:

Windows Registry Editor Version 5.00
[-HKEY_CLASSES_ROOT\DesktopBackground\Shell\Power Menu]

匯入即可還原原狀。

小提醒

  • 修改登錄表前建議先備份或建立系統還原點。
  • 命令參數 -f 強制關閉應用程式,-t 00 表示零秒延遲。

告別繁瑣 Charms 列,右鍵一鍵掌控電源,Windows 8 操作體驗立刻升級!

Copyright © Windows教程網 All Rights Reserved