Advertisement

Disable AutoPlay for All Drives in Windows 10

AutoPlay is a special feature of the shell which allows the user to quickly pick a desired action for various media types you have connected or attached to your computer. You can configure it to open your favorite image viewer app when you insert a disk with photos, or launch a media player app automatically for your drive containing media files. It saves your time, since the required app starts automatically every time you connect your device or insert your disk.

Advertisеment

In Windows 10, there are a number ways to enable or disable AutoPlay. It can be done using Settings, the classic Control Panel or the Registry. Also, there is a special Group Policy option that can be used to force enable or force disable the AutoPlay feature for all drives in Windows 10. Today, we will see how to configure it.

The policy can be applied to all user accounts registered on your computer, or to the current user account only.

To disable AutoPlay for all drives in Windows 10, do the following.

  1. Open Registry Editor.
  2. Go to the following Registry key:
    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer

    Tip: See how to jump to the desired Registry key with one click.

    If you do not have such a key, then just create it.

  3. Here, create a new 32-bit DWORD value NoDriveTypeAutoRun. Note: Even if you are running 64-bit Windows, you still need to use a 32-bit DWORD as the value type.
    Set it to 255 in decimals to disable AutoPlay for all drives.Windows 10 Disable Autoplay For All Drives CU Tweak
  4. To make the changes done by the Registry tweak take effect, you need to sign out and sign in again to your user account.

Later, you can delete the NoDriveTypeAutoRun value to unblock the AutoPlay feature.

You are done.

Disable AutoPlay for All Drives for All Users

To disable AutoPlay  for all drives for all users, ensure that you are signed in as Administrator before proceeding.

  1. Open Registry Editor.
  2. Go to the following Registry key:
    HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer

    Tip: See how to jump to the desired Registry key with one click.

    If you do not have such a key, then just create it.

  3. Here, create a new 32-bit DWORD value NoDriveTypeAutoRun. Note: Even if you are running 64-bit Windows, you still need to use a 32-bit DWORD as the value type.
    Set it to 255 in decimals to disable AutoPlay for all drives.Windows 10 Disable Autoplay For All Drives Tweak
  4. Restart Windows 10 to apply the restriction, and you are done.

Download Ready-to-use Registry files

To save your time, I made the following ready-to-use Registry files. You can download them here:

Download Registry Files

The undo tweak is included.

Disable AutoPlay for All Drives with Gpedit.msc

If you are running Windows 10 Pro, Enterprise, or Education edition, you can use the Local Group Policy Editor app to configure the options mentioned above with a GUI.

Do the following.

  1. Press Win + R keys together on your keyboard and type:
    gpedit.msc

    Press Enter.Windows 10 run gpedit

  2. Group Policy Editor will open. Go to User Configuration\Administrative Templates\Windows Components\AutoPlay Policies. Enable the policy option Turn off AutoPlay and set it to All Drives.Windows 10 Disable Autoplay For All Drives

Disable AutoPlay for All Drives For All Users with Gpedit.msc

 

  1. Press Win + R keys together on your keyboard and type:
    gpedit.msc

    Press Enter.Windows 10 run gpedit

  2. Group Policy Editor will open. Go to Computer Configuration\Administrative Templates\Windows Components\AutoPlay Policies. Enable the policy option Turn off AutoPlay and set it to All Drives.Windows 10 Disable Autoplay For All Drives

Articles of interest:

Support us

Winaero greatly relies on your support. You can help the site keep bringing you interesting and useful content and software by using these options:

If you like this article, please share it using the buttons below. It won't take a lot from you, but it will help us grow. Thanks for your support!

Advertisеment

Author: Sergey Tkachenko

Sergey Tkachenko is a software developer who started Winaero back in 2011. On this blog, Sergey is writing about everything connected to Microsoft, Windows and popular software. Follow him on Telegram, Twitter, and YouTube.

Leave a Reply

Your email address will not be published.

css.php
Using Telegram? Subscribe to the blog channel!
Hello. Add your message here.