Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Turn Off USB Autoplay: Windows 11 & 10 Guide

· 5 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Turning off autoplay for USB devices stops Windows from automatically opening, playing, or running files when you plug in a flash drive, external hard drive, or SD card. This prevents accidental launches of media or potentially malicious software. You can do this in under two minutes through Windows Settings. Here’s exactly how.

What You'll Need

  • A Windows 11 or Windows 10 PC (the steps are nearly identical on both).
  • Administrator access to the PC (you need to be able to change system settings).
  • No USB device plugged in while you change the setting—it's not required, but it avoids confusion.

Step-by-Step

  1. Open Windows Settings. Press Windows key + I on your keyboard. Alternatively, click the Start button and then the gear icon.
  2. Go to Bluetooth & devices. In the Settings window, click on Bluetooth & devices in the left sidebar (Windows 11) or Devices (Windows 10). If you don't see this exact label, look for a section named “Devices” or “Bluetooth & devices”—the wording can vary slightly by version.
  3. Click Autoplay. In the Bluetooth & devices section, find and click on Autoplay. In Windows 10, it's under the “Autoplay” tab in the Devices page.
  4. Turn off the master toggle. At the top of the Autoplay page, you'll see a switch labeled “Use Autoplay for all media and devices.” Click it so it turns Off (gray). This disables autoplay entirely for everything—USB drives, memory cards, and even CDs/DVDs if your PC has a disc drive.
  5. Optional: Customize per device type. If you want to keep autoplay on for some things (like playing a DVD) but off for USB drives, leave the master toggle On instead. Then scroll down to the “Choose default actions” section. Find Removable drive and Memory card (or “SD card”). Click the dropdown next to each and select “Take no action” from the list. This way, USB devices won't autoplay, but other media still can.
  6. Close Settings. Your changes save automatically. No restart needed.

That's it. From now on, when you plug in a USB drive, Windows will simply show it as a drive in File Explorer without launching anything. You can still open it manually by double-clicking the drive in “This PC.”

Common Mistakes

  • Turning off the wrong toggle. Some people turn off “AutoPlay” in the notification area (the pop-up that appears when you plug in a device) but that only dismisses the current pop-up—it doesn't change the global setting. You must use the Settings app as described above.
  • Forgetting the “Removable drive” dropdown. If you leave the master toggle on and only change the “Removable drive” option, that's fine. But if you change “Memory card” and not “Removable drive,” then USB flash drives (which are usually “Removable drives”) will still autoplay. Make sure you set both if you want all USB storage covered.
  • Expecting the change to affect already-plugged-in devices. The setting applies to devices you plug in after the change. If a USB drive is already connected, Windows may have already launched its autoplay action. Unplug and replug the device to test.
  • Confusing “Autoplay” with “AutoPlay” in old Control Panel. The legacy Control Panel has an “AutoPlay” icon, but it's the same underlying setting. Using the Settings app is the modern, reliable way.

Tips

  • Use “Take no action” instead of turning everything off. This keeps the autoplay feature available for other media (like photos from a camera) while blocking USB drives.
  • Set a default for “Removable drive” to “Open folder to view files.” If you don't want to fully disable autoplay but want to avoid running any executable, choose this option. It opens File Explorer instead of running anything.
  • Check Group Policy (for advanced users). If you're on Windows Pro or Enterprise, you can enforce this via Group Policy: Computer Configuration > Administrative Templates > Windows Components > AutoPlay Policies. Set “Turn off AutoPlay” to Enabled. This is useful for IT admins, but for a single PC, the Settings method is enough.
  • Remember that this doesn't block USB drives from being used. You can still access files manually. It only stops the automatic launch.

Troubleshooting

If you followed the steps but autoplay still happens, try these in order:

  1. Restart your PC. Sometimes the setting doesn't apply to already-running shell processes. A quick restart forces Windows to reload the policy.
  2. Check for Group Policy override. If you're on a work or school PC, an administrator may have set a policy that forces autoplay on. You can check by opening the Group Policy Editor (gpedit.msc) and looking under the path mentioned in Tips. If it says “Enabled” or “Not Configured,” you may need to ask your IT admin to change it.
  3. Update Windows. Rarely, a bug in the Settings app can cause the toggle to not work. Go to Settings > Windows Update > Check for updates, and install any pending updates.
  4. Check if a third-party tool is overriding. Some security suites (like certain antivirus or USB management tools) have their own autoplay controls. Look in your antivirus settings for “USB protection” or “Autorun” options and disable them if they're forcing autoplay.
  5. Verify the registry (advanced). If all else fails, you can manually check the registry: Press Win + R, type regedit, and navigate to HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers. Look for a DWORD value named DisableAutoplay. If it's set to 1, autoplay is off. If it's 0 or missing, set it to 1. Be careful with the registry—only change this if you're comfortable.

Frequently Asked Questions

Will this stop my phone from charging when I plug it in?

No. Autoplay only controls what happens with files and media. Charging is a hardware function and is unaffected.

Does this affect USB keyboards or mice?

No. Autoplay applies to storage devices like drives and memory cards. Input devices (keyboards, mice, game controllers) are not affected.

Can I still open the USB drive manually after turning off autoplay?

Yes. Open File Explorer (Windows key + E), and you'll see the drive under “This PC” or “Devices and drives.” Double-click it to browse its contents.

Will this stop Windows from asking me what to do with a new USB drive?

Yes. With autoplay off, Windows won't show the “What do you want to do with this device?” pop-up. It will simply appear as a drive.

Does this work on Windows 11 and Windows 10?

Yes. The steps are essentially the same on both. In Windows 10, the section is called “Devices” instead of “Bluetooth & devices,” but the Autoplay page is identical.

What if I want to re-enable autoplay later?

Go back to the same Autoplay settings page and turn the master toggle back on, or change the dropdowns from “Take no action” to your preferred action.