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

Windows 8 自製開始畫面關機/重啟/登出/鎖定/睡眠/休眠磚:無需第三方工具

編輯:Windows 8 系統介紹

製作快捷方式步驟

  1. 桌面空白處右鍵 → 新增 → 捷徑。
  2. 輸入對應命令(見下表),下一步命名(如「關機」)。
  3. 右鍵捷徑 → 內容 → 變更圖示,選擇系統內建或自行下載的圖示。

常用命令對照表

shutdown.exe -s -t 00 -hybridshutdown -r -t 00rundll32.exe user32.dll,LockWorkStationshutdown.exe -lrundll32.exe powrprof.dll,SetSuspendState 0,1,0shutdown -h
功能命令
關機
重啟
鎖定
登出
睡眠
休眠

放入開始畫面

  1. 將製作好的捷徑複製至 C:\ProgramData\Microsoft\Windows\Start Menu\Programs(需管理員權限)。
  2. 回到開始畫面,右側找到新增的捷徑,左鍵拖曳至右側空白處建立新群組。
  3. 按 Ctrl+滑鼠滾輪縮小檢視,將群組移至最底端,整理完成。
新增捷徑
新增捷徑
輸入命令
輸入對應命令
命名捷徑
命名捷徑
變更圖示
變更圖示
瀏覽圖示路徑
瀏覽圖示檔案路徑
捷徑變更後
變更後的捷徑
開啟檔案位置
開始畫面右鍵→開啟檔案位置
拖曳建立群組
拖曳建立新群組
群組完成
群組完成
最終開始畫面
最終開始畫面配置

睡眠/休眠衝突補充

睡眠命令需先關閉休眠功能(powercfg -hibernate off),否則會直接進入休眠。可撰寫兩個批次檔分別處理:

:: 休眠.bat
powercfg -hibernate on
shutdown -h

:: 睡眠.bat
powercfg -hibernate off
rundll32.exe powrprof.dll,SetSuspendState 0,1,0

注意:捷徑目標若非 .exe 可能無法在開始畫面顯示,此為已知限制。

Copyright © Windows教程網 All Rights Reserved