Policy
Set the default behavior for AutoRun
Windows 11 25H2
Policy overview
Key metadata and intent for this policy.
Supported OS tags: Windows10, Windows10RT, Windows11, Windows7, Windows8, Windows81, WindowsRT, WindowsRT81, WindowsServer2008, WindowsServer2012, WindowsServer2012R2, WindowsServer2016, WindowsVista
This policy setting sets the default behavior for Autorun commands. Autorun commands are generally stored in autorun.inf files. They often launch the installation program or other routines. Prior to Windows Vista, when media containing an autorun command is inserted, the system will automatically execute the program without user intervention. This creates a major security concern as code may be executed without user's knowledge. The default behavior starting with Windows Vista is to prompt the user whether autorun command is to be run. The autorun command is represented as a handler in the Autoplay dialog. If you enable this policy setting, an Administrator can change the default Windows Vista or later behavior for autorun to: a) Completely disable autorun commands, or b) Revert back to pre-Windows Vista behavior of automatically executing the autorun command. If you disable or not configure this policy setting, Windows Vista or later will prompt the user whether autorun command is to be run.
Registry values
How enabled and disabled states update the registry.
No explicit registry values are set for enabled or disabled states.
Policy elements
Inputs and configuration options exposed by this policy.
| Element | Type | Registry mapping | Constraints & behavior |
|---|---|---|---|
Default AutoRun Behavior ID NoAutorun_Dropdown | enum | HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoAutorun Type REG_DWORD | Options: Do not execute any autorun commands (1), Automatically execute autorun commands (2) |
Other policies in this category
Explore related policies at the same level.
- ComputerDisallow Autoplay for non-volume devicesAt least Windows Server 2008 R2 or Windows 7
- UserDisallow Autoplay for non-volume devicesAt least Windows Server 2008 R2 or Windows 7
- UserPrevent AutoPlay from remembering user choices.At least Windows Vista
- ComputerPrevent AutoPlay from remembering user choices.At least Windows Vista
- ComputerSet the default behavior for AutoRunAt least Windows Vista
- UserTurn off AutoplayAt least Windows 2000
- ComputerTurn off AutoplayAt least Windows 2000