How to Disable Autorun Functionality in Windows Using Registry Editor?

Whenever you insert a USB drive, CD/DVD, etc into your system, Windows automatically launches an Autorun dialog box which allows you to select an action from the given list. You can browse the content, play media files, etc using Autorun dialog box.

Sometimes you might find the Autorun functionality annoying and might want to disable it permanently. Today in this tutorial, we are going to share a small registry method to disable Autorun functionality in Windows.

This method works in almost all Windows versions including XP, Vista and 7.

Advertisement

1. Type regedit in RUN or Start Menu searchbox and press Enter. It’ll open Registry Editor.

2. Go to following key:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer

If the above key doesn’t exist, create it.

3. In right-side pane, create a new DWORD value NoDriveTypeAutoRun and set its value to any of following according to your requirements:

FF – To disable AutoRun on all drives
20 – To disable AutoRun on CD-ROM drives
4 – To disable AutoRun on removable drives
8 – To disable AutoRun on fixed drives
10 – To disable AutoRun on network drives
40 – To disable AutoRun on RAM disks
1 – To disable AutoRun on unknown drives

Disable_Autorun_Functionality.png

Advertisement

4. If you want to disable Autorun on a combination of drives, you’ll need to calculate sum of the values. For example, if you want to disable Autorun on CD-ROM drives and removable drives, you’ll need to set the value to 20+4=24.

5. If you want to restore the Autorun functionality, simply delete the NoDriveTypeAutoRun DWORD value created in Step 3 Or you can set the default value which is given below:

Windows 2000: 95

Windows XP: 91

Windows Server 2003: 95

Windows Vista, Server 2008 and 7: 91

6. If you want to disable Autorun functionality for all users in your system, use the “HKEY_LOCAL_MACHINE” instead of “HKEY_CURRENT_USER” mentioned in Step 2.

PS: If you are not very familiar with Registry and want a ready-made registry script to do the task automatically, simply download following ZIP file, extract it and run the desired REG file. It’ll ask for confirmation, accept it:

Download Registry Script

Also Check:

AutoRun Disabler: Free Portable Utility to Disable Autorun Functionality in Windows

Autorun Manager: Portable Utility to Configure Autorun Functionality in Windows

Published in: Troubleshooting Guides, Windows 7, Windows Vista, Windows XP

About the author: Vishal Gupta (also known as VG) has been awarded with Microsoft MVP (Most Valuable Professional) award. He holds Masters degree in Computer Applications (MCA). He has written several tech articles for popular newspapers and magazines and has also appeared in tech shows on various TV channels.

Comments

NOTE: Older comments have been removed to reduce database overhead.

  1. How to disable Windows7 taskbar thumbnail?
    Don’ warry here’s trick.

    1st -open RUN box & type REGEDIT
    2nd – Goto this Subkey (HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\)
    In right panel create a DWORD value,
    Value name is EXTENDEDUIHOVERTIME
    Value 4000000000

    In current Subkey
    (HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\)
    See a DWORD value TASKBARGLOMLEVEL
    change value & type 2

    Then Goto this Subkey
    (HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Taskband\)
    in right panel see this DWORD value FAVORITES change his value and type f (or 00)

    logoff or reboot pc.

    thats it…

    Vinay

  2. Hey thank you for this “How TO” stop autorun.

    I don’t like “autorun” stating what so ever, since it promts the install of generic drivers for USB sticks / flash drives.

    And with a paid for the machine user wants say, Samsung drivers rather than what ever junk the gates gang dumps on user, than “autoplay has to be OFF.
    OR the gates garbage drivers are installed OVER the really wanted and needed operating user defined drivers.

    This is MY computer and I want what I want on and in it, not according to Micosoft.

    Thanks again for the how to stop the gate’s gang’s garbage.

    Now if I can get rid of that “Scanning USB Drives” before continue thingy…… heaven.

  3. Thanks
    This is very useful and I’ve tried all of those steps and successful. I do this way because My PC has been being infected by Sality virus and Autorun.ini

  4. I followed these steps. They were easy and helpful and I was hopeful. I’m running Windows 7 64-bit home edition. I use my computer as a guest, not as an administrator, but I logged in as an administrator to follow these steps. Logging back in as a guest I saw in the registry the values had been changed from FF to 95. Back to administrator to change back to FF. Even as administrator, they were quickly changed back to 95. Could something be attacking my registry?

    Thank you!

Leave a Comment

Your email address will not be published. Required fields are marked *

NOTE: Your comment may not appear immediately. It'll become visible once we approve it.