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

Win8.1 系統如何用右鍵選單快速關機/重啟/睡眠?

編輯:Windows 8 系統介紹

Win8.1 移除傳統開始選單,關機需點擊多層選單頗感繁瑣。透過匯入自訂登錄檔,可在桌面空白處右鍵選單新增「電源控制」子選單,包含鎖定、登出、切換使用者、睡眠、休眠、重新開機、關機等功能,一鍵直達。

操作步驟

  1. 開啟檔案總管,Win+X →「檔案總管」→「檢視」索引標籤 → 勾選 「副檔名」 顯示副檔名。
  2. 桌面右鍵 → 「新增」→「文字文件」,命名為 PowerMenu.txt。
  3. 用記事本開啟,貼入以下登錄檔內容:
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\DesktopBackground\Shell\Power Menu]
"MUIVerb"="電源控制"
"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]
@="鎖定"
[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]
@="登出"
[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]
@="切換使用者"
[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]
@="睡眠"
[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]
@="休眠"
[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]
@="重新開機"
[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]
@="關機"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\shutdown\command]
@="Shutdown -s -f -t 00"
  1. 儲存並關閉記事本,將檔案重新命名為 PowerMenu.reg(副檔名從 .txt 改為 .reg)。
  2. 雙擊 PowerMenu.reg,按「是」匯入登錄檔。
  3. 桌面空白處右鍵即可看到 「電源控制」 選單,展開含所有電源功能。

右鍵選單電源控制示意圖

此登錄檔利用 Shutdown.exe 系統指令與 Rundll32 呼叫系統 DLL 實現各項功能,安全無毒。若需移除,刪除登錄編輯器中對應的 HKEY_CLASSES_ROOT\DesktopBackground\Shell\Power Menu 項目即可。

Copyright © Windows教程網 All Rights Reserved