How to Disable AutoPlay Globally in Windows 11

The USB Malware Vector

Windows 11 includes a legacy convenience feature called “AutoPlay.” When you insert a USB flash drive or a memory card into your computer, the operating system immediately scans the drive and violently pops up a menu asking what you want to do with the files (e.g., “Play Videos,” “Import Photos,” or “Open folder to view files”). In some extreme configurations, it will automatically execute programs found on the root of the drive. This is the single most common vector for deploying ransomware in corporate environments via “dropped” USB sticks. To secure your computer against physical hardware attacks, you must force Windows to completely ignore newly inserted drives.

How to Turn Off AutoPlay Globally

You can permanently sever the operating system’s automatic scanning protocol via the Bluetooth & devices settings.

  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. In the main window, scroll down and click on AutoPlay.
  4. At the absolute top of the screen, locate the master toggle switch labeled “Use AutoPlay for all media and devices.”
  5. Toggle this switch to the Off position.

A Silent Mount

The change takes effect instantly. Windows 11 will completely terminate the background listener responsible for the AutoPlay popups. The next time you insert a USB flash drive, the operating system will silently and safely mount the drive in the background without executing a single file or displaying a single menu. To access the files, you must now intentionally and manually open File Explorer and navigate to the drive.

Get the best tech tips delivered straight to your inbox.

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