PDF download Download Article PDF download Download Article

Autorun is a feature of Windows in which a predetermined action is taken when certain types of media such as a CD, DVD, or USB flash drive is inserted in a computer. Most commonly, autorun will launch or install a new program on the media.[1] Disabling Autorun in Windows will help prevent accidental installation of viruses and other malware. You can disable AutoPlay on Windows 10 Settings menu, the Group Policy editor, or using the Registry editor. This wikiHow teaches you how to disable autorun.

Method 1
Method 1 of 3:

Using Windows Settings

PDF download Download Article
  1. This opens the AutoPlay Settings menu for Windows.
    Advertisement
  2. This ensures that Windows does not open a folder or automatically run any files when a removable drive, such as a CD-ROM or USB flash drive is inserted.
  3. This ensures that Windows will not automatically open a memory card or automatically run any files when a memory card is inserted.
  4. Advertisement
Method 2
Method 2 of 3:

Using Group Policy Editor

PDF download Download Article
  1. This launches a program called "Run." You can also click the Run icon in the Windows Start menu.
  2. Use the field in the center of Run to enter "Gpedit.msc." Then click Ok or press Enter. This launches the Group Policy Editor.
    • If asked to enter an administrative password, enter the admin password and click Allow.
  3. "Administrative Templates" can be found under both "User Configuration" and "Computer Configuration" Click the one under "User Configuration" to expand the Administrative Templates menu.
  4. This displays the administrative template folders listed under "Windows Components."
  5. This opens the folder containing AutoPlay administrative templates.
  6. This opens the administrative template that allows you to disable AutoPlay and Autorun.
  7. It's at the top of the template on the left-hand side of the Window. When this template is enabled, AutoPlay and Autorun will be disabled on all drives, including removable USB drives, disk drives.
  8. It's in the lower-right corner of the window. This applies to the new settings.
  9. This closes the Group Policy Editor. [2]
  10. Once you apply the new setting, restart your computer to ensure the new settings take effect.
  11. Advertisement
Method 3
Method 3 of 3:

Using Registry Editor

PDF download Download Article
  1. This launches a program called "Run." You can also click the Run icon in the Windows Start menu.
  2. Use the field in the center of Run to enter "Regedit.exe." Then click Ok or press Enter. This launches the Registry Editor.
    • If asked if you want to allow the Registry Editor to make changes to your system, click Yes.
  3. It's in the menu to the left of Registry Editor. Double-click this option to expand it.
  4. It's below "HKEY_CURRENT_USER." This expands the Software folder.
  5. It's in the Software folder. This expands the Microsoft folder.
  6. It's in the Microsoft folder. This expands the Windows folder.
  7. It's in the Microsoft folder. This expands the CurrentVersion folder.
  8. It's in the CurrentVersion folder. This expands the Policies folder.
  9. It's in the Policies folder. This expands the Explorer folder.
    • The full path in the Registry Editor is "Computer\HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer"
  10. It's the only option under "Explorer." This allows you to change the policy with regards to Autorun in Registry Editor.
  11. Each of the following values affects Autorun in a different way. Enter one of the following values of your choice in the "Value data" field. The values are as follows:
    • "FF:" This disables Autorun on all drives.
    • "20:" This disables Autorun on the CD-ROM only.
    • "4:" This disables Autorun on all removable drives.
    • "8:" This disables Autorun on all fixed drives.
    • "10:" This disables Autorun on all network drives.
    • "40:" This disables Autorun on the RAM disk only.
    • "1:" This disables Autorun on all unknown drives.
    • "91:" This sets Autorun to function as normal.
  12. This saves the new value and setting for Autorun.[3] [4]
  13. Advertisement

Expert Q&A

Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
Advertisement

Tips

Submit a Tip
All tip submissions are carefully reviewed before being published
Name
Please provide your name and last initial
Thanks for submitting a tip for review!

You Might Also Like

Enable Autorun in Windows 10 Enable AutoRun & AutoPlay in Windows 10/11
Block an Application or .EXE from Running in WindowsBlock an .exe Running in Windows
Disable Write ProtectionA Guide to Disabling Write Protection
Turn Off Automatic Updates in Windows 10 Disable Automatic Updates in Windows 10: 5 Easy Ways
Remove Shortcut Virus on Windows Remove Shortcut Virus from a Windows PC or Laptop
Remove the Read‐Only State from a USB Drive6 Easy Ways to Fix a USB Drive That is Stuck in Read-Only Mode
Remove a Flash Drive from a Windows 10 ComputerSimple Ways to Remove a Flash Drive from a Windows 10 Computer
Change the Icon of Removable DrivesChange the Icon of Removable Drives
Eject the CD Tray for Windows 10 Eject the CD/DVD Tray on a Windows 10 PC
Block Apps on PC or MacBlock Apps on PC or Mac
Play a CD on a Desktop ComputerPlay a CD on a Desktop Computer
Remove Write Protection from a USB Drive Remove Write Protection from a USB Pen Drive
Turn Off Windows Defender in Windows 10Turn Off Microsoft Defender in Windows 10: Temporarily or Permanently
Remove a Virus From a Flash DriveRemove a Virus From a Flash Drive
Advertisement

About This Article

Travis Boylls
Written by:
wikiHow Technology Writer
This article was co-authored by wikiHow staff writer, Travis Boylls. Travis has been a tech writer at wikiHow for more than 10 years. He has also worked in technical support for Dish Network and AT&T Wireless. He studied graphic design and web design at Pikes Peak Community College. He specializes in Windows, macOS, Linux, Android, iOS, and video game consoles. Travis has had a fascination with computers and technology that goes all the way back to childhood. He is proficient in all manner of software and computer operating systems. This article has been viewed 23,429 times.
How helpful is this?
Co-authors: 3
Updated: May 3, 2025
Views: 23,429
Categories: Windows
Article SummaryX

1. Click the Windows Start menu.
2. Type "AutoPlay Settings" and press Enter.
3. Click the toggle switch to turn AutoPlay off.
5. Select "Take No Action" in the menu below "Removable Drive."
6. Select "Take No Action" in the menu below "Memory Card."

Did this summary help you?

Thanks to all authors for creating a page that has been read 23,429 times.

Is this article up to date?

Advertisement