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
- Open Settings → Bluetooth & devices → AutoPlay
- Toggle AutoPlay for removable devices on or off
- Choose default actions for removable drives and memory cards
- 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.
Related settings
- USB SettingsUSB settings control notifications for USB connection issues and battery-saving behavior for USB devices when your PC is running on battery power.
- Device ManagerDevice Manager is a classic Windows tool (devmgmt.msc) that lists every piece of hardware attached to your PC — display adapters, network adapters, storage controllers, USB devices, and more — organized into categories. It's where you update, roll back, disable, or uninstall a specific driver, and where a small yellow warning icon points you directly at hardware Windows is having trouble with.
More Devices guides for Windows
- MouseMouse settings control pointer speed, scroll behavior, primary button assignment, and additional pointer options for both wired and Bluetooth mice. This is where you fine-tune how the cursor responds to physical movement and clicks.
- KeyboardKeyboard settings cover autocorrect, text suggestions, and physical/touch keyboard behavior through the Typing settings page, alongside language-specific layout options managed under Language & region. This is where you tune how Windows interprets and assists your typing.
- TouchpadTouchpad settings let you adjust sensitivity, enable or disable tap-to-click, and configure multi-finger gestures for switching apps, virtual desktops, and zooming. These options only appear on laptops with a built-in precision touchpad.
- Pen & Windows InkPen settings control how Windows responds to a stylus on touchscreen devices, including which hand you write with, shortcut actions for the pen's button, and the Windows Ink Workspace for sketching and screen annotation. This only appears on devices with pen/stylus support.
- Printers & ScannersPrinters & Scanners settings let you add, remove, and manage printing and scanning devices connected via USB, network, or Bluetooth. From here you can set a default printer, view print queues, and run scans directly from connected multi-function devices.
- Graphics SettingsGraphics Settings lets you assign specific apps to your PC's high-performance or power-saving GPU on laptops with both integrated and dedicated graphics, override the automatically chosen graphics preference, and enable Auto HDR and Variable Refresh Rate for supported games. It's most relevant on 2-in-1s and gaming laptops with more than one graphics processor installed.