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
- Open Settings → Bluetooth & devices → AutoPlay (Windows 11)
or Settings → Devices → AutoPlay (Windows 10). - 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)
- Open Control Panel → AutoPlay.
- Uncheck Use AutoPlay for all media and devices to disable globally,
or configure Removable drive = Take no action.
Group Policy (Pro/Enterprise)
- Press Win+R →
gpedit.msc. - Go to Computer Configuration → Administrative Templates → Windows Components → AutoPlay Policies.
- Set Turn off AutoPlay = Enabled, option All drives.
Registry (Advanced)
- Disable AutoRun for all drives (machine‑wide):
reg add "HKLMSoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer" /v NoDriveTypeAutoRun /t REG_DWORD /d 255 /f - 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
- USB Shortcut Virus – Complete Guide
- Autorun.inf – Remove & Block Auto‑Run
- Download UsbFix – How to Use
- Disable Windows Script Host
- USBGuard – Protect USB Ports • BadUSB
Last updated: {PUT_DATE_HERE}
