How to Disable Autoplay for Removable Drives in Windows 11

The Removable Media Vector

Windows 11 features a background service known as Autoplay, designed to streamline the user experience when connecting external hardware. By default, whenever you insert a USB flash drive or external hard drive, Windows immediately scans the root directory of the device and actively attempts to execute or open the media it finds. In enterprise environments and shared workspaces, this automated execution represents a massive security vulnerability, as malicious scripts on infected drives can run before the user even opens the File Explorer.

How to Disable Autoplay for Removable Drives

Disabling this feature forces Windows to passively mount the drive without taking any automated actions, allowing you to scan the contents safely.

1. Open the Start Menu and click the Settings gear icon (or press the Windows Key + I).
2. In the left-hand sidebar, click on Bluetooth & devices.
3. Scroll down and click on AutoPlay in the main window.
4. At the very top of this menu, you will see a master toggle switch labelled Use AutoPlay for all media and devices. Click this toggle to switch it to the Off position.
5. Alternatively, if you want to leave Autoplay on for specific devices but disable it for USB drives, leave the master toggle on, scroll down to the Removable drive section, click the dropdown menu, and select Take no action.

Windows will now silently mount external drives, requiring deliberate, manual interaction to access their contents.

Get the best tech tips delivered straight to your inbox.

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