How to Disable Autorun and Autoplay in Windows 10 & 11

Windows tries to run plugged-in drives automatically. If you don’t like that behavior, follow these steps to disable autorun and autoplay in Windows.

Though most don’t know, Windows has a neat built-in feature called autoplay, also known as Autorun. It helps you launch programs, files, and drives as soon as you plug them in.

However, autorun popups can be a bit annoying. This is especially true if you plug in a lot of removable drives, like in professional environments. In addition to that, many computer viruses and malware take advantage of the autoplay feature to automatically execute and infect the system.

The good thing is that you can easily disable AutoPlay in Windows 10 and 11. In fact, there are multiple ways to turn off autoplay in Windows.

So, without further ado, let me show you how to disable autoplay in Windows 10 & 11 operating systems.

Table of contents:

Disable autorun from Settings

The PC Settings app in Windows 10 and 11 give you an excellent option to disable autorun. The settings app even allows you to set autorun on a per-device basis. For example, if you often connect your mobile phone to Windows, you can set a specific autorun behavior while disabling all the other USB autoruns.

Windows 11

  1. Open the Settings app.
  2. Click on “Bluetooth & devices.”
  3. Go to the “AutoPlay” page.
  4. Turn off the “Use AutoPlay for all media and devices” option.
  5. Close the Settings app.
  6. With that, AutoPlay and Autorun is disabled in Windows 11.
disable autorun and autorun in Windows 11

Windows 10

  1. Open the Settings app.
  2. Click on “Devices.”
  3. Go to the “AutoPlay” page.
  4. Turn off the “Use AutoPlay for all media and devices” option.
  5. Choose “Take No Action” from all dropdowns.
  6. Close the Settings app.
  7. With that, AutoPlay and Autorun is disabled in Windows 10.

Steps with more details:

Open the PC Settings app by pressing the keyboard shortcut Win + I or searching for it in the start menu.

After opening it, go to “Devices > AutoPlay.” On the right panel, toggle the switch under “Use AutoPlay for all media and devices” to the “Off” position.

Next, select the “Take No Action” option from all the dropdown menus.

Win10 disable autorun - turn off autoplay

That is it. You’ve disabled autoplay in Windows 10.

Change Group Policy to disable autorun

If you want to disable autoplay permanently and don’t want users to turn it on again, you can disable autorun from the Group Policy Editor.

Group policy is only available to Pro and Enterprise version users.

  1. Launch the Start menu.
  2. Search and open “Edit Group Policy.”
  3. Go to the below folder.
    Computer Configuration -> Administrative Templates -> Windows Components -> AutoPlay Policies
  4. Double-click the “Turn off AutoPlay” policy.
  5. Choose the “Enabled” option.
  6. Press “Ok.”
  7. Close the Group Policy Editor.
  8. Reboot Windows.
  9. With that, AutoPlay is disabled in Windows 10 and 11.

Steps with more details:

Search for “gpedit.msc” or “Edit Group Policy” in the Start menu and open Group Policy Editor. Alternatively, you can also use gpedit.msc run command.

Win10 disable autorun - open group policy

All the policies in the group policy editor are neatly divided into their own folders for better accessibility. On the left panel, go to the following folder.

Computer Configuration -> Administrative Templates -> Windows Components -> AutoPlay Policies

Find and double-click on the “Turn off AutoPlay” policy on the right panel.

Win10 disable autorun - open policy

In the policy settings window, select “Enabled” and click the “Apply” and “Ok” buttons to save the changes.

Win10 disable autorun - set policy

Finally, reboot Windows, and the policy changes are applied on the next reboot. With that, the autorun is completely disabled in Windows 10.

Disable autorun from Registry

If you are using the Home edition, you need to edit Registry to disable autoplay in Windows 10 and 11. The good thing is that it is pretty straightforward.

Back up the registry before making changes. The backup helps in restoring the registry if something goes wrong.

  1. Press the Start key.
  2. Search and open “Registry Editor.”
  3. Go to the following folder.
    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies
  4. Right-click on the “Policies” folder.
  5. Select “New > DWORD Value.”
  6. Set the new name as “NoDriveTypeAutorun.”
  7. Double-click the new value.
  8. Type “FF” in the “Value Data” field.
  9. Press “Ok.”
  10. Close the Registry Editor.
  11. Reboot Windows.
  12. With that, Autorun is disabled in Windows 10 & 11.

Steps with more details:

Open the start menu, search for “Registry Editor,” and open it. You can also use the regedit run command to open Windows Registry Editor.

Win10 disable autorun - open registry

Once the registry editor is opened, copy the below path, paste it into the address bar, and press Enter. You will be taken to the folder where we need to create a new registry value.

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies
Win10 disable autorun - go to key

Right-click on the “Policies” folder and select the “New -> DWORD (32-bit) Value” option. Name the value as “NoDriveTypeAutorun”.

Win10 disable autorun - create and name value

Double-click the newly created value, type “FF” in the value data field, and click on the “Ok” button.

Win10 disable autorun - set value data

Close the registry editor and reboot Windows. Once you reboot, the autoplay is disabled, and no drives or devices will autorun in Windows 10 and 11.

That is all. It is that simple to disable autorun in Windows 10.

I hope this simple and easy Windows how-to guide helped you.

If you are stuck or need some help, send an email, and I will try to help as much as possible.

Scroll to Top