USB Autoplay Settings: Turn It On or Off
In this article
USB autoplay settings control what your PC does when you plug in a USB drive, SD card, or other removable media. You can turn autoplay on or off, and choose a default action for each type of media, in Windows Settings.
Time 5 min · Steps 6 · Level Easy
Most people think autoplay is a single switch, but Windows actually keeps separate settings for different media types (USB drives, memory cards, DVDs, etc.). That means you can allow autoplay for a camera card but block it for a USB stick, or vice versa.
Open the Autoplay Settings Page
The quickest route is Settings > Bluetooth & devices > Autoplay (on Windows 11) or Settings > Devices > Autoplay (on Windows 10). Menu names can differ slightly by version, so if you don't see Autoplay there, use the search box in Settings and type "autoplay."
Once you're on the Autoplay page, you'll see a master toggle at the top: Use Autoplay for all media and devices. Turning this off disables autoplay entirely—Windows will no longer pop up the "What do you want to do with this device?" dialog when you plug something in. Turning it on re-enables the feature.
Below the toggle, you'll find a list of media types. Each one has its own dropdown menu where you can pick the default action, such as "Open folder to view files" or "Import photos and videos." The list typically includes Removable Drives, Memory Cards, and sometimes DVDs or other optical media.
Choose a Default Action for Each Media Type
For each media type, the dropdown offers several choices. The exact options depend on what apps you have installed, but common ones include:
- Open folder to view files – shows the drive in File Explorer.
- Import photos and videos – launches the Photos app or another importer.
- Play – for audio CDs or video DVDs.
- Take no action – does nothing when you plug in that media type.
- Ask me every time – shows the autoplay prompt each time.
If you set a media type to "Take no action," Windows won't show the prompt and won't launch anything—it just mounts the drive silently. If you choose "Ask me every time," you'll get the popup dialog each time you plug in that kind of media, so you can decide on the spot.
For USB drives, the most useful default is often "Open folder to view files" if you frequently move documents, or "Ask me every time" if you use different drives for different purposes. For memory cards from cameras, "Import photos and videos" is a common choice.
What to Do If Autoplay Isn't Working
If you've turned on autoplay but nothing happens when you plug in a USB drive, check these in order:
- Check the master toggle – Make sure "Use Autoplay for all media and devices" is turned on. If it's off, nothing else matters.
- Check the specific media type – Look at the dropdown for "Removable Drives" (or "Memory Cards" if you're using an SD card). If it's set to "Take no action," change it to something else.
- Look for a notification – Autoplay may show a popup in the bottom-right corner of the screen. If you miss it, it disappears. You can also open File Explorer and right-click the drive, then choose "Open Autoplay..." or look for the Autoplay icon in the notification area.
- Check Group Policy (Windows Pro/Enterprise only) – If you're on a work computer, an administrator may have disabled autoplay via Group Policy. You can check by running
gpedit.mscand looking under Computer Configuration > Administrative Templates > Windows Components > Autoplay Policies. If the policy is enabled, it overrides your Settings. - Restart Explorer – Sometimes the setting doesn't take effect until you restart File Explorer or reboot. Press Ctrl+Shift+Esc to open Task Manager, find "Windows Explorer," right-click it, and choose Restart.
- Update your drivers – If autoplay still doesn't work, the USB controller or storage driver may be outdated. Open Device Manager, expand "Disk drives" and "Universal Serial Bus controllers," right-click each device, and choose "Update driver." This rarely fixes autoplay, but it's worth trying if nothing else works.
If you're on a managed work or school PC, Group Policy can force autoplay off, and you won't be able to change it from Settings. In that case, you'll need to contact your IT administrator.
Autoplay vs. AutoRun: What's the Difference?
Autoplay is the feature that asks what you want to do with a drive. AutoRun is an older, more dangerous feature that automatically runs a program from the media when you insert it. Windows has disabled AutoRun for USB drives since 2011 to prevent malware from spreading via infected flash drives. You don't need to worry about AutoRun for USB drives on modern Windows—it's blocked by default. Autoplay just shows a dialog with options; it doesn't run anything without your permission.
That's why it's safe to leave autoplay on. The worst that can happen is a popup asking what you want to do. The risk comes from choosing to open a file or run a program that's actually malicious—so always be cautious with USB drives you don't own.
Frequently Asked Questions
Can I disable autoplay for only USB drives?
Yes. Turn off the master toggle to disable autoplay for everything, or leave the master toggle on and set the "Removable Drives" dropdown to "Take no action." That way, other media types (like memory cards) can still autoplay.
Why does autoplay keep asking me every time even though I chose a default?
If you chose "Ask me every time," that's expected. If you chose a specific action but still get prompted, check that the dropdown actually saved (it should save immediately). Also, some devices report themselves as a different media type—for example, an SD card reader might show up as a "Removable Drive" rather than "Memory Card." Check both dropdowns.
Does autoplay work on Mac or Linux?
No, autoplay is a Windows feature. On macOS, when you insert a USB drive, it appears on the desktop and in Finder automatically, and you can set options for CDs/DVDs in System Settings > CDs & DVDs (if you have an optical drive). On Linux, the file manager typically opens automatically, but you can change that in the file manager's preferences.
Is it safe to leave autoplay on?
Yes, because autoplay only shows a dialog—it doesn't run anything automatically. The danger comes from AutoRun, which is disabled for USB drives on modern Windows. Always be cautious about opening files from unknown USB drives, but the autoplay feature itself is not a security risk.
Official source: Microsoft Support