Windows AutoPlay Handler Registry Locations
This article provides a direct overview of where the Windows Registry stores configuration data, GUIDs, and handler associations for the hardware AutoPlay dialog. In Windows, the AutoPlay system manages how the operating system responds to connected media and hardware devices, utilizing structured registry keys under both machine-wide and user-specific hives to define handlers, map device events, and reference COM class identifiers.
Primary AutoPlay Registry Key
The primary hub for all AutoPlay handler configurations in the Windows Registry is located at:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers
Within this location, the configuration is divided into several essential subkeys:
Handlers: Contains individual subkeys for every registered application handler on the system. Each handler entry defines parameters such asAction,DefaultIcon,Provider, and the execution mechanism (often defined byInvokeProgIDorInvokeVerb).EventHandlers: Maps specific hardware events (such asPlayMusicFilesOnArrival,ShowPicturesOnArrival, orGenericVolumeArrival) to an ordered list of registered handler names.DeviceHandlers: Contains hardware-specific groupings that associate individual device classes with supported handler sets.
Resolving Handler GUIDs (CLSIDs)
When an AutoPlay handler invokes a COM component directly or via a programmatic identifier (ProgID), the corresponding handler GUIDs (Class IDs) are resolved through the registry’s COM database:
- ProgID Mappings:
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\[ProgID]\CLSID - CLSID Definitions:
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{GUID}(orHKEY_CLASSES_ROOT\CLSID\{GUID})
These COM CLSID keys point to the registered DLL or executable responsible for processing the hardware prompt or default action when the device is connected.
User-Specific AutoPlay Choices
When a user selects a default action from the AutoPlay dialog, Windows records the decision under the user’s specific registry hive rather than modifying system-wide settings:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers
Key subkeys under the user hive include:
UserChosenExecuteHandlers: Stores the specific handler chosen by the user for defined AutoPlay events.EventHandlersDefaultSelection: Defines which registered handler takes precedence as the default prompt selection for the current user profile.