Skip to main content

Windows · Devices

Choose what happens when media is inserted

AutoPlay settings control what Windows does automatically when you insert removable media or connect a device, such as a USB drive, memory card, or camera.

How to open AutoPlay

  1. Open Settings → Bluetooth & devices → AutoPlay
  2. Toggle AutoPlay for removable devices on or off
  3. Choose default actions for removable drives and memory cards
  4. Reconnect a device to confirm the new default behavior

What you should know

  • Turn AutoPlay on or off globally for all removable media
  • Set a default action for removable drives, such as opening File Explorer
  • Choose a specific behavior for memory cards separately from USB drives
  • Set default actions per device the first time it's connected

Why it matters

AutoPlay determines the very first interaction you have with a newly connected drive, camera, or memory card, and getting the default action right saves repetitive clicking every time media is inserted. It's also a security consideration, since AutoPlay historically was exploited to automatically launch malicious software from infected removable drives, which is why Windows disabled AutoRun-based execution by default years ago. For photographers and content creators who frequently import from cameras or SD cards, setting the right default action, such as automatically opening the Photos import screen, meaningfully speeds up their workflow. Disabling AutoPlay entirely is a reasonable choice for users who prefer manually browsing removable media instead.

Best practices

  • Set 'Open folder to view files' as the default for USB drives if you prefer manual control
  • Choose an import action for memory cards if you regularly transfer photos from a camera
  • Turn off AutoPlay entirely on shared or public-facing PCs for predictability
  • Review device-specific defaults periodically, since Windows remembers your last choice per device

Common problems and fixes

AutoPlay dialog doesn't appear when inserting media
Check that the global AutoPlay toggle is turned on in this settings page.
Wrong app opens automatically every time
Change the default action for that specific media type, or reset the remembered choice for that device.
AutoPlay behaves differently for different drives
Windows remembers per-device choices; adjust or reset the specific drive's default action here.

Tips and tricks

  • Set memory cards to open the Photos app import screen for a faster photo transfer workflow
  • Turn AutoPlay off completely if you find the popup dialog more annoying than useful

Frequently asked questions

Is AutoPlay a security risk?

Modern Windows AutoPlay no longer automatically executes programs from removable media, greatly reducing the historical risk.

Can I set different defaults for USB drives and memory cards?

Yes, this page allows separate default actions for removable drives and memory cards.

Does AutoPlay affect connected phones?

Yes, connecting a phone via USB can also trigger an AutoPlay prompt depending on the phone's connection mode.

More Devices guides for Windows

See every Windows guide