How to Permanently Disable Autoplay for Removable Drives in Windows 11

The Oldest Security Vulnerability

Windows Autoplay is a legacy convenience feature designed decades ago for CD-ROMs. When you insert a disc or plug in a USB flash drive, Windows instantly scans the drive’s root directory, looks for an executable file, and asks what you want to do (e.g., “Play Movie,” “Open Folder,” or “Run Setup.exe”). In older versions of Windows, it would actually run the setup file automatically. While Microsoft has nerfed the feature in Windows 11 so it no longer executes code silently, the Autoplay pop-up menu is still a massive security risk. If you plug in a colleague’s infected USB drive, a highly convincing pop-up might appear, tricking you into clicking a malicious link hidden inside a custom icon file. If you care about system security, you must force Windows to treat all removable drives as dumb storage until you explicitly open them.

How to Turn Off Autoplay Globally

You can completely disable the drive-scanning behavior through the main Windows settings menu.

  1. Click the Start Menu and type Settings, or press the Windows Key + I.
  2. In the left-hand sidebar, click on Bluetooth & devices.
  3. Scroll down the main window and click on AutoPlay.
  4. At the very top of the screen, you will see a master toggle switch labeled “Use AutoPlay for all media and devices”.
  5. Toggle this switch to the Off position.

The Secure Result

The change takes effect immediately without requiring a restart. From now on, when you plug a USB flash drive into your computer, absolutely nothing will pop up on your screen. Windows will silently mount the drive in the background. To actually access the files, you must intentionally click the folder icon on your taskbar to open File Explorer, click “This PC,” and manually open the USB drive. This deliberate workflow prevents accidental clicks and ensures you only interact with external data when you are paying full attention.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.