右鍵「電腦」→「管理」彈出「該檔案沒有與之關聯的程式來執行操作」,或雙擊 `.msc` 管理工具無反應,是 Windows 註冊檔關聯損壞的典型徵兆。本文以「計算機管理」為例,示範註冊檔精準修復關聯,同邏輯適用所有 `.msc`/`.cpl`/`.exe` 關聯錯誤。
C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Administrative Tools\Compmgmt.mscHKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Manage\command%SystemRoot%\system32\CompMgmtLauncher.exe (啟動器)。regedit → Enter。%windir%\system32\mmc.exe /s %windir%\system32\compmgmt.msc| 工具/檔案類型 | 註冊檔關鍵路徑 | 標準命令參考 |
|---|---|---|
| .msc 管理工具 (服務/事件檢視器/裝置管理員等) | HKCR\.msc\shell\open\command | %windir%\system32\mmc.exe /s %1 |
| .cpl 控制台項目 | HKCR\.cpl\shell\open\command | %windir%\system32\control.exe %1 |
| .exe 可執行檔 | HKCR\exefile\shell\open\command | "%1" %* |
| 資料夾/磁碟機右鍵選單異常 | HKCR\Directory\shell / HKCR\Drive\shell | 依具體命令修正 |