GPO policy: "Turn off AutoPlay" — NoDriveTypeAutoRun bitmask that controls AutoPlay by drive type. Controls which types of drives (e.g., CD/DVD, removable) are prevented from automatically starting content when media is inserted. Registry: HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer:NoDriveTypeAutoRun (REG_DWORD). CIS Benchmark (L1) recommends value 255 (0xFF, all drives) to disable AutoPlay on all drive types. The enum values below represent the states observed in practice; the registry accepts a bitmask. Reference: Policy CSP - Autoplay (TurnOffAutoPlay)
Values
| Enum Value | Description |
|---|---|
|
|
Disable AutoPlay on all drive types. |
|
|
Disable AutoPlay for CD and DVD drives only (registry value 0x4 / 4). AutoPlay is disabled for optical (CD/DVD) drives; other drive types (removable, fixed) retain AutoPlay behavior. |
|
|
No drive type AutoPlay restrictions applied (registry value 0 or absent). AutoPlay is permitted for all drive types subject to user and system defaults. |
Used by
ComputerAdministrativeTemplatestype: Computer-specific Administrative Templates (ADMX) settings on an Endpoint.
Example
Example
"ALL_DRIVES"