Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學
您现在的位置: Windows教程網 >> Windows教程 >  >> Windows 綜合教學 >> 關於 Windows

Windows 開機自動執行程式全解析:從啟動資料夾到註冊表 8 大關鍵位置

編輯:關於 Windows

Windows 開機自動執行程式的位置不只「啟動」資料夾,登錄檔中藏有至少 8 組關鍵鍵值,也是惡意軟體、病毒最愛駐留的地方。本文系統整理所有自啟動位置,助你檢查、管理開機項目。

一、經典位置:啟動資料夾

開始功能表 → 程式集 → 「啟動」資料夾。放入捷徑或程式即開機自動執行。對應路徑:
C:\Users\用戶名\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup(目前使用者)
C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp(所有使用者)

二、登錄檔自啟動鍵值大全

鍵值名稱路徑(使用者 / 機器)說明
RunHKCU\Software\Microsoft\Windows\CurrentVersion\Run
HKLM\Software\Microsoft\Windows\CurrentVersion\Run
最常見自啟動點,病毒最愛。每次登入按序執行。
Run (Policies)HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\Run
HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\Run
較隱蔽,同樣每次登入執行。
RunServicesHKCU\Software\Microsoft\Windows\CurrentVersion\RunServices
HKLM\Software\Microsoft\Windows\CurrentVersion\RunServices
早期服務類程式自啟動,現較少用。
RunOnceExHKCU\Software\Microsoft\Windows\CurrentVersion\RunOnceEx
HKLM\Software\Microsoft\Windows\CurrentVersion\RunOnceEx
XP/2003 特有,常用於安裝程式需重開機續裝。
LoadHKCU\Software\Microsoft\Windows NT\CurrentVersion\Windows\Load使用者登入前載入程式。
WinlogonHKCU\Software\Microsoft\Windows NT\CurrentVersion\Winlogon
HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon
含 Userinit、Shell、Notify 等值,可用逗號分隔多程式,權限極高。
RunOnceHKCU\Software\Microsoft\Windows\CurrentVersion\RunOnce
HKLM\Software\Microsoft\Windows\CurrentVersion\RunOnce
僅執行一次,執行後自動刪除。
RunServicesOnceHKCU\Software\Microsoft\Windows\CurrentVersion\RunServicesOnce
HKLM\Software\Microsoft\Windows\CurrentVersion\RunServicesOnce
系統載入階段執行一次。

三、其他常見位置

  • HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System\Shell
  • HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\ShellServiceObjectDelayLoad
  • HKCU\Software\Policies\Microsoft\Windows\System\Scripts(登入/登出腳本)
  • HKLM\Software\Policies\Microsoft\Windows\System\Scripts

善用 msconfig、Autoruns (Sysinternals) 等工具可視化管理以上所有項目,建議定期檢查清理不明自啟動程式。

Copyright © Windows教程網 All Rights Reserved