/
/

How to Enable or Disable AutoPlay for Non-Volume Devices in Windows

How to Enable or Disable AutoPlay for Non-Volume Devices in Windows blog banner image

Allowing non-volume devices like flash drives, mobile phones, or cameras to connect to an endpoint device requires careful consideration. One way to control these interactions is to set automatic media handling behavior.

If you have administrator access and wish to streamline user experience and improve security, this guide will outline how to enable or disable autoplay for non-volume devices.

Prerequisites for enabling or disabling AutoPlay

Consider these system and access requirements to see how you can allow or disallow AutoPlay for non-volume devices based on your setup:

✔️ Administrator privileges are required to update these settings.

✔️ Windows 10 Pro, Enterprise, or Education users can use the Local Group Policy Editor.

✔️ For script-based deployment and Home edition users, the Registry Editor can be used.

⚠️ Warning: If you plan to use the Registry Editor, consider setting a backup for the Windows Registry. This restore point is crucial if you encounter unwanted changes or behavior after updating the console.

Option 1: Set AutoPlay using Local Group Policy Editor

  1. Press Win + R, type gpedit.msc in the dialog box, and tap OK to open Local Group Policy.
  2. Navigate to Computer Configuration → Administrative Templates → Windows Components → AutoPlay Policies.
  3. Double-click on Disallow AutoPlay for non-volume devices to configure the settings.
  4. Choose between the following options:
    • Enabled : AutoPlay is disabled for non-volume devices.
    • Disabled or Not Configured : AutoPlay is allowed.

The updated policy will take effect at the next end-user sign-in or after running gpupdate /force.

Option 2: Set AutoPlay using the Registry Editor

  1. Press Win + R, type regedit in the dialog box, and tap OK. to open the Registry Editor.
  2. Navigate to or paste the following path into the Registry address bar:
    • HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
  3. Create or modify the following DWORD 32-bit Value: NoAutoplayForNonVolume.
  4. Double-click to open it to set the Value data to:
    • 1 : Disable AutoPlay for non-volume devices
    • 0 : Enable AutoPlay for non-volume devices

Verifying and testing AutoPlay settings

To manually verify if AutoPlay is activated for non-volume devices:

  1. Connect a digital camera or smartphone without a storage volume.
  2. Observe whether AutoPlay launches automatically.
  3. If disabled, no automated action should occur upon connecting the device.

Meanwhile, you can verify the active setting for policy-based deployment by running gpresult via PowerShell or the Command Prompt.

Check out this “ How IT can use the gpresult command to check GPOs” guide to learn more.

Recommended use cases: What is the purpose of AutoPlay?

Regulating AutoPlay settings across managed devices is a good way to improve user experience and IT security.

Here are some typical policy applications to consider:

  • Kiosk environments
  • Enterprise endpoint devices
  • Standardizing end-user experience

Apart from preventing rogue applications or media from running automatically, IT admins can use an AutoPlay policy to maintain a standardized and non-interruptive user experience.

Summing up AutoPlay settings for non-volume devices

Despite probable improvements in user experience, third-party devices bring a variety of risks to any controlled environment. To acknowledge and manage such vulnerabilities, you can enforce an AutoPlay policy for these non-volume devices. Setting these preferences proactively will allow you to streamline media-handling protocols and get a head start on troubleshooting rogue media incidents.

You might also like

Ready to simplify the hardest parts of IT?
×

See NinjaOne in action!

By submitting this form, I accept NinjaOne's privacy policy.

NinjaOne Terms & Conditions

By clicking the “I Accept” button below, you indicate your acceptance of the following legal terms as well as our Terms of Use:

  • Ownership Rights: NinjaOne owns and will continue to own all right, title, and interest in and to the script (including the copyright). NinjaOne is giving you a limited license to use the script in accordance with these legal terms.
  • Use Limitation: You may only use the script for your legitimate personal or internal business purposes, and you may not share the script with another party.
  • Republication Prohibition: Under no circumstances are you permitted to re-publish the script in any script library belonging to or under the control of any other software provider.
  • Warranty Disclaimer: The script is provided “as is” and “as available”, without warranty of any kind. NinjaOne makes no promise or guarantee that the script will be free from defects or that it will meet your specific needs or expectations.
  • Assumption of Risk: Your use of the script is at your own risk. You acknowledge that there are certain inherent risks in using the script, and you understand and assume each of those risks.
  • Waiver and Release: You will not hold NinjaOne responsible for any adverse or unintended consequences resulting from your use of the script, and you waive any legal or equitable rights or remedies you may have against NinjaOne relating to your use of the script.
  • EULA: If you are a NinjaOne customer, your use of the script is subject to the End User License Agreement applicable to you (EULA).