Windows 開機自動執行程式的位置不只「啟動」資料夾,登錄檔中藏有至少 8 組關鍵鍵值,也是惡意軟體、病毒最愛駐留的地方。本文系統整理所有自啟動位置,助你檢查、管理開機項目。
開始功能表 → 程式集 → 「啟動」資料夾。放入捷徑或程式即開機自動執行。對應路徑:
C:\Users\用戶名\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup(目前使用者)
C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp(所有使用者)
| 鍵值名稱 | 路徑(使用者 / 機器) | 說明 |
|---|---|---|
| Run | HKCU\Software\Microsoft\Windows\CurrentVersion\RunHKLM\Software\Microsoft\Windows\CurrentVersion\Run | 最常見自啟動點,病毒最愛。每次登入按序執行。 |
| Run (Policies) | HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\RunHKLM\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\Run | 較隱蔽,同樣每次登入執行。 |
| RunServices | HKCU\Software\Microsoft\Windows\CurrentVersion\RunServicesHKLM\Software\Microsoft\Windows\CurrentVersion\RunServices | 早期服務類程式自啟動,現較少用。 |
| RunOnceEx | HKCU\Software\Microsoft\Windows\CurrentVersion\RunOnceExHKLM\Software\Microsoft\Windows\CurrentVersion\RunOnceEx | XP/2003 特有,常用於安裝程式需重開機續裝。 |
| Load | HKCU\Software\Microsoft\Windows NT\CurrentVersion\Windows\Load | 使用者登入前載入程式。 |
| Winlogon | HKCU\Software\Microsoft\Windows NT\CurrentVersion\WinlogonHKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon | 含 Userinit、Shell、Notify 等值,可用逗號分隔多程式,權限極高。 |
| RunOnce | HKCU\Software\Microsoft\Windows\CurrentVersion\RunOnceHKLM\Software\Microsoft\Windows\CurrentVersion\RunOnce | 僅執行一次,執行後自動刪除。 |
| RunServicesOnce | HKCU\Software\Microsoft\Windows\CurrentVersion\RunServicesOnceHKLM\Software\Microsoft\Windows\CurrentVersion\RunServicesOnce | 系統載入階段執行一次。 |
HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System\ShellHKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\ShellServiceObjectDelayLoadHKCU\Software\Policies\Microsoft\Windows\System\Scripts(登入/登出腳本)HKLM\Software\Policies\Microsoft\Windows\System\Scripts善用 msconfig、Autoruns (Sysinternals) 等工具可視化管理以上所有項目,建議定期檢查清理不明自啟動程式。