Windowsオペレーティングシステムには、起動時にカスタムファイルまたはプログラムを実行するオプションが付属しています。
オペレーティングシステムのユーザーがWindowsで起動するプログラムを選択できるため、一方では良いことです。 また、セキュリティプログラムなどの一部のプログラムでは、これらのプログラムをできるだけ早く起動することが通常必要であるため、これも必要です。
しかし、インストール中または起動時にプログラムをスタートアップに追加できるため、これは大きな迷惑でもあります。
これはユーザーに適切に通知されないことが多いため、システムの起動を遅らせるだけでなく、常に必要ではないプログラムが常に実行されることもあります。
Windows自動起動場所
優れた自動実行などのプログラムを使用してすべての起動場所を管理できますが、たとえば、独自のプログラムを起動に追加する場合など、それらへの直接アクセスが必要になる場合があります。
初めてのユーザーは、ドライブ上のフォルダーとWindowsレジストリ内の両方の大量の自動起動場所に圧倒される可能性があり、初めて開くときにリストを検索するのに時間がかかる場合があります。
システムが非常に複雑な理由の1つは、Windowsがシステム上の個々のユーザーおよびすべてのユーザーの自動起動エントリを維持していることと、64ビットバージョンのWindowsが使用されている場合、64ビットバージョン専用の別のエントリです。
Windows自動起動の場所は、グループポリシーを使用してシステムに自動起動プログラムを追加することもできますが、レジストリとスケジュールタスクの3つのグループフォルダーに分けることができます(ただし、Windowsレジストリに反映されます)。
Windows自動起動場所:フォルダー
次の場所は、自動起動にカスタムプログラムを追加する場合に最適です。 また、これらの自動起動フォルダーからプログラムとショートカットを削除するのはかなり簡単です。
作業を簡単にするために、Microsoftはフォルダーをすばやく開くのに役立つキーワードをフォルダーに追加しました。 場所/キーワードは同じフォルダーを開きます。
現在のユーザーの自動起動フォルダー
- shell:startup
- %appdata%\ Microsoft \ Windows \ Start Menu \ Programs \ Startup
- C:\ Users \ USERNAME \ AppData \ Roaming \ Microsoft \ Windows \ Start Menu \ Programs \ Startup
すべてのユーザーの自動起動フォルダー
- shell:一般的な起動
- %programdata%\ Microsoft \ Windows \ Start Menu \ Programs \ Startup
- C:\ ProgramData \ Microsoft \ Windows \ Start Menu \ Programs \ StartUp
Windows自動起動場所:レジストリ
自動起動の場所の大部分は、Windowsレジストリにあります。 レジストリエディタをロードする方法はおそらくご存知でしょうが、ロードしない場合は、次のようにします。
- Windowsキーをタップし、regedit.exeと入力してEnterキーを押します。
- 表示されるUACプロンプトを確認します。
実行キー(個々のユーザー)
- HKCU \ SOFTWARE \ Microsoft \ Windows \ CurrentVersion \ Run
- HKCU \ SOFTWARE \ Wow6432Node \ Microsoft \ Windows \ CurrentVersion \ Run(64ビットシステムのみ)
- HKCU \ Software \ Microsoft \ Windows NT \ CurrentVersion \ Windows \ Run
- HKCU \ Software \ Microsoft \ Windows \ CurrentVersion \ RunOnce(プログラム/コマンドを一度だけ実行し、実行するとすぐにクリアします)
- HKCU \ Software \ Microsoft \ Windows \ CurrentVersion \ RunOnceEx(プログラム/コマンドを一度だけ実行し、実行が完了するとすぐにクリアします)
- HKCU \ Software \ Microsoft \ Windows \ CurrentVersion \ RunServices
- HKCU \ Software \ Microsoft \ Windows \ CurrentVersion \ RunServicesOnce
実行キー(マシン、すべてのユーザー)
- HKLM \ SOFTWARE \ Microsoft \ Windows \ CurrentVersion \ Run
- HKLM \ SOFTWARE \ Wow6432Node \ Microsoft \ Windows \ CurrentVersion \ Run(64ビットシステムのみ)
- HKLM \ Software \ Microsoft \ Windows \ CurrentVersion \ RunOnce(プログラム/コマンドを一度だけ実行し、実行するとすぐにクリアします)
- HKLM \ Software \ Microsoft \ Windows \ CurrentVersion \ RunOnceEx(プログラム/コマンドを一度だけ実行し、実行が完了するとすぐにクリアします)
- HKLM \ System \ CurrentControlSet \ Services
- HKLM \ Software \ Microsoft \ Windows \ CurrentVersion \ RunServices
- HKLM \ Software \ Microsoft \ Windows \ CurrentVersion \ RunServicesOnce
その他の自動起動キー
アクティブセットアップは、ログオン中にユーザーごとに1回コマンドを実行するように設計されています。
- HKLM \ SOFTWARE \ Microsoft \ Active Setup \ Installed Components
- HKLM \ SOFTWARE \ Wow6432Node \ Microsoft \ Active Setup \ Installed Components
文書化されていない自動起動機能。
- HKLM \ SOFTWARE \ Microsoft \ Windows \ CurrentVersion \ Explorer \ SharedTaskScheduler
- HKLM \ SOFTWARE \ Wow6432Node \ Microsoft \ Windows \ CurrentVersion \ Explorer \ SharedTaskScheduler
シェル関連の自動起動エントリ。たとえば、ファイルまたはフォルダーを右クリックしたときに表示されるアイテム。
- HKLM \ SOFTWARE \ Microsoft \ Windows \ CurrentVersion \ Explorer \ ShellServiceObjects
- HKLM \ SOFTWARE \ Wow6432Node \ Microsoft \ Windows \ CurrentVersion \ Explorer \ ShellServiceObjects
- HKLM \ SOFTWARE \ Microsoft \ Windows \ CurrentVersion \ ShellServiceObjectDelayLoad
- HKLM \ SOFTWARE \ Wow6432Node \ Microsoft \ Windows \ CurrentVersion \ ShellServiceObjectDelayLoad
- HKCU \ Software \ Classes \ * \ ShellEx \ ContextMenuHandlers
- HKLM \ Software \ Wow6432Node \ Classes \ * \ ShellEx \ ContextMenuHandlers
- HKCU \ Software \ Classes \ Drive \ ShellEx \ ContextMenuHandlers
- HKLM \ Software \ Wow6432Node \ Classes \ Drive \ ShellEx \ ContextMenuHandlers
- HKLM \ Software \ Classes \ * \ ShellEx \ PropertySheetHandlers
- HKLM \ Software \ Wow6432Node \ Classes \ * \ ShellEx \ PropertySheetHandlers
- HKCU \ Software \ Classes \ Directory \ ShellEx \ ContextMenuHandlers
- HKLM \ Software \ Classes \ Directory \ ShellEx \ ContextMenuHandlers
- HKLM \ Software \ Wow6432Node \ Classes \ Directory \ ShellEx \ ContextMenuHandlers
- HKCU \ Software \ Classes \ Directory \ Shellex \ DragDropHandlers
- HKLM \ Software \ Classes \ Directory \ Shellex \ DragDropHandlers
- HKLM \ Software \ Wow6432Node \ Classes \ Directory \ Shellex \ DragDropHandlers
- HKLM \ Software \ Classes \ Directory \ Shellex \ CopyHookHandlers
- HKCU \ Software \ Classes \ Directory \ Background \ ShellEx \ ContextMenuHandlers
- HKLM \ Software \ Classes \ Directory \ Background \ ShellEx \ ContextMenuHandlers
- HKLM \ Software \ Wow6432Node \ Classes \ Directory \ Background \ ShellEx \ ContextMenuHandlers
- HKLM \ Software \ Classes \ Folder \ ShellEx \ ContextMenuHandlers
- HKLM \ Software \ Wow6432Node \ Classes \ Folder \ ShellEx \ ContextMenuHandlers
- HKLM \ Software \ Classes \ Folder \ ShellEx \ DragDropHandlers
- HKLM \ Software \ Wow6432Node \ Classes \ Folder \ ShellEx \ DragDropHandlers
- HKLM \ Software \ Microsoft \ Windows \ CurrentVersion \ Explorer \ ShellIconOverlayIdentifiers
- HKLM \ Software \ Wow6432Node \ Microsoft \ Windows \ CurrentVersion \ Explorer \ ShellIconOverlayIdentifiers
次のキーは、起動時にロードされるドライバーを指定します。
- HKLM \ SOFTWARE \ Microsoft \ Windows NT \ CurrentVersion \ Font Drivers
- HKLM \ Software \ Microsoft \ Windows NT \ CurrentVersion \ Drivers32
- HKLM \ Software \ Wow6432Node \ Microsoft \ Windows NT \ CurrentVersion \ Drivers32
その他の起動キー
- HKLM \ Software \ Classes \ Filter
- HKLM \ Software \ Classes \ CLSID \ {083863F1-70DE-11d0-BD40-00A0C911CE86} \ Instance
- HKLM \ Software \ Wow6432Node \ Classes \ CLSID \ {083863F1-70DE-11d0-BD40-00A0C911CE86} \ Instance
- HKLM \ Software \ Classes \ CLSID \ {7ED96837-96F0-4812-B211-F13C24117ED3} \ Instance
- HKLM \ Software \ Wow6432Node \ Classes \ CLSID \ {7ED96837-96F0-4812-B211-F13C24117ED3} \ Instance
- KLM \ System \ CurrentControlSet \ Control \ Session Manager \ KnownDlls
- HKCU \ Control Panel \ Desktop \ Scrnsave.exe
- HKLM \ System \ CurrentControlSet \ Services \ WinSock2 \ Parameters \ Protocol_Catalog9 \ Catalog_Entries
- HKLM \ System \ CurrentControlSet \ Services \ WinSock2 \ Parameters \ Protocol_Catalog9 \ Catalog_Entries64
Windows自動起動場所:グループポリシー
グループポリシーエディターはWindowsのプロフェッショナルバージョンでのみ使用できますが、ポリシーに関連付けられたレジストリキーはすべてのバージョンで使用できます。
- Windowsキーをタップし、gpedit.mscと入力してEnterキーを押し、グループポリシーエディターを起動します。
左側のツリー構造を使用して次のキーに移動し、ポリシーを使用してエントリを確認、変更、追加、または削除します。
- [コンピューターの構成]> [管理用テンプレート]> [システム]> [ログオン]> [ユーザーログオン時にこれらのプログラムを実行する]
- [ユーザーの構成]> [管理用テンプレート]> [システム]> [ログオン]> [ユーザーログオン時にこれらのプログラムを実行する]
対応するレジストリキーは次のとおりです。
- HKLM \ Software \ Microsoft \ Windows \ CurrentVersion \ Policies \ Explorer \ Run
- HKCU \ Software \ Microsoft \ Windows \ CurrentVersion \ Policies \ Explorer \ Run
Windows自動起動場所:タスク
Windowsタスクスケジューラを開いて、Windowsオペレーティングシステム上のタスクを管理できます。
- Windowsキーをタップし、タスクスケジューラと入力してEnterキーを押します。
Windows Explorer / File Explorerを使用してタスクをチェックアウトすることもできます。
- C:\ Windows \ Tasks
- C:\ Windows \ System32 \ Tasks
ファイル
次のファイルを使用して、Windows起動時にプログラムを自動起動できます。
- c:\ autoexec.bat
- c:\ config.sys
- c:\ windows \ winstart.bat
- c:\ windows \ wininit.ini
- c:\ windows \ dosstart.bat
- c:\ windows \ system.ini
- c:\ windows \ win.ini
- c:\ windows \ system \ autoexec.nt
- c:\ windows \ system \ config.nt
資源
次のリソースは、特定のレジストリキーに関する追加情報を提供します。
- アクティブセットアップの説明
- アクティブセットアップレジストリキー
- Windows Autostartでブリーピングコンピューター
- ファイルハンドラーの登録
- Windows 7のブートプロセス
- システム構成ユーティリティを使用してスタートアップアプリを理解および制御する