Disabling AutoPlay with Intune stops Windows from automatically starting actions associated with a drive when the user inserts certain media. This setting removes an unwanted execution path and remediates the Microsoft Defender Vulnerability Management recommendation Disable 'Autoplay' for all drives.
Microsoft documents Turn off AutoPlay in the AutoPlay CSP for Windows. In this article we apply it from the Intune settings catalog only to the relevant endpoints.
Microsoft Learn: AutoPlay policy CSP
What the Turn off AutoPlay policy does
The Turn off AutoPlay policy controls Windows AutoPlay. When enabled, it can turn off AutoPlay on CD-ROM and removable media drives, or on all drives.
To remediate this recommendation we will configure:
- Turn off AutoPlay: Enabled.
- Turn off AutoPlay on: All drives.
Microsoft uses this same combination in the Intune Windows security baseline.
Microsoft Learn: Windows security baseline
Note: AutoPlay and AutoRun are related but separate settings. Here we focus only on Turn off AutoPlay.
Requirements for disabling AutoPlay with Intune
- Licence: Microsoft Intune Plan 1 or a subscription that includes it.
- Microsoft Entra RBAC role: Intune Administrator.
- Devices: Windows endpoints managed by Intune.
- Operating system:
TurnOffAutoPlayis supported on Windows 10 version 1703 and later.
Windows 10 reached end of support on 14 October 2025. Microsoft still allows it to be enrolled in Intune, although functionality is no longer guaranteed in the same way as on supported versions. New deployments should prioritise Windows 11.
Microsoft Learn: Microsoft Intune licensing
Microsoft Learn: RBAC and Microsoft Entra roles with Intune access
How to disable AutoPlay with Intune
Step 1. Create a settings catalog policy
Go to the Microsoft Intune admin center and navigate to:
Devices > Manage devices > Configuration > Create > New policy
Configure:
- Platform: Windows 10 and later.
- Profile type: Settings catalog.
You can use a name such as Windows - Disable AutoPlay all drives.
Microsoft Learn: Intune settings catalog
Step 2. Configure Turn off AutoPlay
Under Configuration settings, select Add settings and search for:
Turn off AutoPlay
It can also be found under:
Administrative Templates > Windows Components > AutoPlay Policies
Select the device-scope setting and set:
- Turn off AutoPlay: Enabled.
- Turn off AutoPlay on: All drives.
Step 3. Assign the policy to a pilot group
Assign the policy to a small group of devices first. Disabling AutoPlay may affect processes that expect an automatic action when media is inserted, so the change should be validated before it is extended.
If you already use a Windows Security Baseline, check first whether the same option is configured there to avoid policy conflicts.
How to check that the policy has been applied
In Intune, go to:
Devices > Manage devices > Configuration > Policies
Select the profile and review:
- Device and user check-in status.
- Device assignment status.
- Per setting status.
The expected result on the pilot devices is Succeeded. A Conflict status usually means another policy is configuring the same setting.
Microsoft Learn: monitor configuration policies
Local check with PowerShell
On a device that has already received the policy you can check the registry value:
Get-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer' -Name NoDriveTypeAutoRun
When AutoPlay is disabled for all drives, Microsoft documents 0xFF, which is 255 in decimal.
Microsoft Learn: NoDriveTypeAutoRun value
Note: the AutoPlay option may still appear available in the Windows Settings app. Microsoft documents this behaviour as by design: the policy still takes precedence over user changes.
How to validate the remediation in Microsoft Defender
If the change came from a Defender recommendation, go back to:
Microsoft Defender > Exposure management > Recommendations
Find Disable 'Autoplay' for all drives and check the reduction in Exposed devices. Microsoft notes that configuration changes can take approximately 4 to 24 hours to show in the portal.
Microsoft Learn: Defender Vulnerability Management security recommendations
Recommendations for production
- Start with a pilot group.
- Check whether another policy, GPO or baseline sets the same option.
- Check Per setting status before widening the assignment.
- Do not rely only on the local AutoPlay interface as proof of compliance.
- If the source was Defender, validate the reduction in exposed devices afterwards.

