Enable/Disable AutoPlay in Windows

AutoPlay decides what Windows does when you insert a USB drive. To reduce USB‑borne malware, use safe settings or disable it entirely.

Quick Recommendations

  • Set removable drives to Take no action or Open folder to view files.
  • Disable auto‑execution on shared/business PCs.

Windows 11 / 10 – Settings

  1. Open SettingsBluetooth & devicesAutoPlay (Windows 11)
    or SettingsDevicesAutoPlay (Windows 10).
  2. Toggle Use AutoPlay for all media and devices Off to disable,
    or leave On and set Removable drive to Take no action / Open folder.

Control Panel (All editions)

  1. Open Control PanelAutoPlay.
  2. Uncheck Use AutoPlay for all media and devices to disable globally,
    or configure Removable drive = Take no action.

Group Policy (Pro/Enterprise)

  1. Press Win+Rgpedit.msc.
  2. Go to Computer ConfigurationAdministrative TemplatesWindows ComponentsAutoPlay Policies.
  3. Set Turn off AutoPlay = Enabled, option All drives.

Registry (Advanced)

  1. Disable AutoRun for all drives (machine‑wide):
    reg add "HKLMSoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer" /v NoDriveTypeAutoRun /t REG_DWORD /d 255 /f
  2. For current user:
    reg add "HKCUSoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer" /v NoDriveTypeAutoRun /t REG_DWORD /d 255 /f

Verify

  • Insert a USB drive: no autoplay prompts should appear.
  • Re‑open Settings/Control Panel to confirm the policy.

Related Guides

Last updated: {PUT_DATE_HERE}

Scroll to Top