If you’ve ever plugged in a camera, phone, or other device, you might have seen a box pop up asking what you want to do next. This feature is called AutoPlay. It helps Windows decide what to do when you connect devices or insert media.
What is AutoPlay?
AutoPlay can:
- Automatically open photos, videos, or music from your device.
- Ask you what you want to do each time you connect a device.
- Show you a list of apps to choose from if your device has different types of content.
- Simply open the folder with your files.
- Do nothing if you’ve told it not to act on that device before.
Note: AutoPlay usually shows notifications when you plug in devices like cameras or phones, but not for storage devices like USB flash drives. Those you can find in File Explorer > This PC.
If you want to quickly get the AutoPlay prompt regardless of settings, press and hold the Shift key while plugging in your device.
How to Turn On or Off AutoPlay for Cameras, Phones, and Other Devices (Non-storage Devices)
You need to be signed in as an administrator to change these settings.
Option 1: Using Local Group Policy Editor (Windows 11 Pro, Enterprise, Education only)
This tool is not available in Windows 11 Home. If you have Home edition, skip to Option 2.
- Press Windows + R on your keyboard to open the Run box.
- Type
gpedit.mscand press Enter to open the Local Group Policy Editor. - In the left panel, go to:
Computer Configuration > Administrative Templates > Windows Components > AutoPlay Policies - In the right panel, find and double-click Disallow AutoPlay for non-volume devices.
- To enable AutoPlay (default):
Select Not Configured or Disabled, then click OK. - To disable AutoPlay:
Select Enabled, then click OK. - Close the Local Group Policy Editor.
Here is what it looks like in the editor:


Option 2: Using the Windows Registry (All Windows 11 editions)
If you don’t have access to the Group Policy Editor, you can change this setting in the Registry. Be careful when editing the Registry — it’s a good idea to create a restore point first.
To Enable AutoPlay (default):
reg delete "HKCU\Software\Policies\Microsoft\Windows\Explorer" /v NoAutoplayfornonVolume /f
reg delete "HKLM\SOFTWARE\Policies\Microsoft\Windows\Explorer" /v NoAutoplayfornonVolume /f
Deleting or removing the NoAutoplayfornonVolume value turns AutoPlay back on for these devices.
To Disable AutoPlay:
reg delete "HKCU\Software\Policies\Microsoft\Windows\Explorer" /v NoAutoplayfornonVolume /f
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Explorer" /v NoAutoplayfornonVolume /t REG_DWORD /d 1 /f
This adds a value to turn off AutoPlay for cameras, phones, and other non-storage devices.
How to apply these changes:
- Or you can open Registry Editor (
regedit), navigate to the keys, and change or delete the values manually. - Restart your PC or sign out and back in for changes to take effect.
Summary
- AutoPlay helps you quickly open photos, videos, or music when you connect cameras, phones, or other devices.
- You can turn AutoPlay on or off for these devices using either the Group Policy Editor or the Registry Editor.
- You need to be an administrator to change these settings.
- AutoPlay settings only affect non-storage devices (like cameras and phones), not USB drives or external hard drives.
- Press Shift when plugging in a device to force the AutoPlay prompt to appear.
By setting AutoPlay the way you like, you can save time and avoid repeated prompts when connecting your devices.
For more details, you can visit the official Microsoft page about this setting: Disallow AutoPlay for non-volume devices.



Leave a Reply Cancel reply