【教學】管理隨 Windows 啟動時執行的程式





Schnaufer
2003-02-05, 09:46 PM
  要管理隨 Windows 啟動時執行的程式,請參考以下所列的幾點:

檢查 程式集(Program Files) 中的 啟動(Startup)資料夾。
查看 Windows 目錄 下的 WIN.INI 檔案 中,[Load] 與 [Run] 的部分。
檢查下面所列登錄資料庫(Registry)的資料(如果沒有請自動忽略它):

[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\policies\Explorer\Run]
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run]
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunOnce]
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunServices]
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunServicesOnce]
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Winlogon\Userinit]

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run]
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunOnce]
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunServices]
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunServicesOnce]
[HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows]

或,可以使用 系統設定公用程式(MSCONFIG) 或其它 3rd party 所出的 Windows 環境管理程式來處理。
或,可以利用原則(Policy)來處理。Win98/98/Me 及 WinNT 4.0 是編輯 系統原則(System Policy) 而 Windows 2000 則是編輯 群組原則(Group Policy)。

參考資料
KB137367 - Definition of the RunOnce Keys in the Registry (http://support.microsoft.com/?scid=kb;en-us;137367)
KB147381 - How to Use System Policies On a Standalone Computer (http://support.microsoft.com/?scid=kb;en-us;147381)
KB159936 - Using the Windows NT 4.0 or Windows 95 System Policy Editor (http://support.microsoft.com/?scid=kb;en-us;159936)
KB179365 - INFO: Run, RunOnce, RunServices, RunServicesOnce and Startup (http://support.microsoft.com/?scid=kb;en-us;179365)
KB232487 - Description of the RunOnceEx Registry Key (http://support.microsoft.com/?scid=kb;en-us;232487)
KB270035 - How to Modify the List of Programs that Run When You Start Windows (http://support.microsoft.com/?scid=kb;en-us;270035)
KB314866 - A Definition of the Run Keys in the Windows XP Registry (http://support.microsoft.com/?scid=kb;EN-US;314866)
Manage the Programs Run at Windows Startup (All Windows) (http://www.winguides.com/registry/display.php/109/), from Registry Guide for Windows.
Windows Program Startup Locations (http://www.is-it-true.org/nt/xp/atips/atips26.shtml), 感謝琥珀的提供.