Policy
Turn off Autoplay
Windows 11 25H2
Policy overview
Key metadata and intent for this policy.
Supported OS tags: Windows10, Windows10RT, Windows11, Windows2000, Windows7, Windows8, Windows81, WindowsRT, WindowsRT81, WindowsServer2003, WindowsServer2008, WindowsServer2012, WindowsServer2012R2, WindowsServer2016, WindowsVista, WindowsXP
This policy setting allows you to turn off the Autoplay feature. Autoplay begins reading from a drive as soon as you insert media in the drive. As a result, the setup file of programs and the music on audio media start immediately. Prior to Windows XP SP2, Autoplay is disabled by default on removable drives, such as the floppy disk drive (but not the CD-ROM drive), and on network drives. Starting with Windows XP SP2, Autoplay is enabled for removable drives as well, including Zip drives and some USB mass storage devices. If you enable this policy setting, Autoplay is disabled on CD-ROM and removable media drives, or disabled on all drives. This policy setting disables Autoplay on additional types of drives. You cannot use this setting to enable Autoplay on drives on which it is disabled by default. If you disable or do not configure this policy setting, AutoPlay is enabled. Note: This policy setting appears in both the Computer Configuration and User Configuration folders. If the policy settings conflict, the policy setting in Computer Configuration takes precedence over the policy setting in User Configuration.
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 |
|---|---|---|---|
Turn off Autoplay on: ID Autorun_Box | enum | HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoDriveTypeAutoRun Type REG_DWORD | Options: CD-ROM and removable media drives (181), All drives (255) |
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
- UserSet the default behavior for AutoRunAt least Windows Vista
- ComputerSet the default behavior for AutoRunAt least Windows Vista
- UserTurn off AutoplayAt least Windows 2000