Windows 開機自動執行程式的位置遠比「開始」→「程式集」→「啟動」資料夾多得多。惡意軟體、多餘常駐程式常藏匿於註冊表深處,拖慢開機、佔用資源。本文完整揭露 2 個關鍵資料夾與 8 個註冊表機碼(含 HKCU/HKLM 區別、執行順序),助你徹底掌控自動啟動項目。
| 資料夾 | 路徑 (XP/2000) | 作用範圍 |
|---|---|---|
| 當前使用者專屬 | C:\Documents and Settings\<使用者名稱>\「開始」功能表\程式\啟動 | 僅當前使用者登入時執行 |
| 所有使用者共用 | C:\Documents and Settings\All Users\「開始」功能表\程式\啟動 | 任何使用者登入皆執行 |
HKCU\Software\Microsoft\Windows NT\CurrentVersion\Windows\LoadHKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\UserinitC:\Windows\System32\userinit.exe, (尾端逗號不可少)userinit.exe,OSA.exe,MyApp.exeHKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\RunHKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer\RunHKCU\Software\Microsoft\Windows\CurrentVersion\RunServicesOnceHKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunServicesOnceHKCU\Software\Microsoft\Windows\CurrentVersion\RunServicesHKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunServicesHKCU\Software\Microsoft\Windows\CurrentVersion\RunOnce\SetupHKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce\SetupHKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce — 登入後最優先執行 (早於其他 Run)。HKCU\Software\Microsoft\Windows\CurrentVersion\RunOnce — 處理完其他 Run 與啟動資料夾最後執行。HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx (安裝精靈常用,依序號順序執行)。HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run — 最優先執行 (處理啟動資料夾前)。HKCU\Software\Microsoft\Windows\CurrentVersion\Run — 緊接 HKLM\Run 之後執行 (處理啟動資料夾前)。掌握這 10 個自動啟動藏身處,配合 Autoruns 定期檢查,讓你的 Windows 開機保持乾淨、快速、安全。