Skip to main content

Disable AutoPlay AutoRun policies

Purpose

This purpose of this solution is to disable AutoPlay and AutoRun functionality at both system-level (HKLM) and user-level (HKCU) registry locations. It configures the following policies:

  • NoDriveTypeAutoRun: Set to 255 (0xFF) to disable AutoPlay for all drive types (USB drives, optical drives, etc.)
  • NoAutoPlayfornonVolume: Set to 1 to disable AutoPlay for non-volume devices

These policies prevent automatic execution of files and programs when devices are connected, enhancing system security by reducing the attack surface for malware distribution and unauthorized code execution.

Associated Content

ContentTypeFunction
Disable AutoPlay AutoRun PolicyCustom FieldCustom Field to enable the solution. Select this Custom Field to apply settings that disables AutoRun and AutoPlay policies across the client's Windows devices.
Exclude AutoPlay AutoRun DisableCustom FieldCustom field to exclude the Site/Endpoint from AutoPlay/AutoRun disablement.
AutoPlay AutoRun PoliciesCustom FieldThis custom field is updated by the Disable AutoRun/AutoPlay Policy after it successfully disables AutoRun/AutoPlay policies on Windows machines.
Disable AutoPlay AutoRun PolicyGroupThis contains Windows machines where the AutoPlay/AutoRun policy is set to be disabled.
Disable AutoPlay AutoRun PolicyTaskDisables AutoPlay and AutoRun functionality at both system-level (HKLM) and user-level (HKCU) registry locations.

Implementation

Changelog

2026-07-01

  • Initial version of the document