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.
1. Type regedit in RUN or Startmenu 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

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:
This article was posted by VG in following section: Troubleshooting, Windows 7, Windows Vista, Windows XP.
If you enjoyed this article, subscribe to our RSS feed or free newsletter to get all new articles directly in your Inbox. Also check out our popular articles and archive to read other interesting articles.
Raza
Thx......................
I really needed this type of utility because i use drives almost all the time.....
thank you
Raza
SCBright
Good clue! It is important to remind that also exist the autorun viruses that can infect the computer, incapacitating the autorun you also avoid that danger.
Astitva
hi!
i have a problem in my windows 7...i just installed it a week ago and now it detecting 2 network connections instead of 1.i have got a wired connection and to run net i just have to disable the connection and just troubleshoot it every time i boot in the windows....????my network is a home one but it also detects a public connection too and when it do so i have to do the above thing or the net won't work.....
please help!!
Astitva
hi!
i have a problem in my windows 7...i just installed it a week ago and now it detecting 2 network connections instead of 1.i have got a wired connection and to run net i just have to disable the connection and just troubleshoot it every time i boot in the windows....????my network is a home one but it also detects a public connection too and when it do so i have to do the above thing or the net won't work.....
please help!!
SCBright
@Astitva
I think that this is not the correct place for that subject type, you should try some forum to discuss your problem there. Some problems request discussion with questions and answers that only a discussion forum can offer. ;)
VG, excuse me for interfering.
Ajeet Singh
Nice Thanks :D
Vaibhav Kanwal
Sweet :)
Yatti420
Thanks!..
S-Ripon
It,s a real helpful site_Thank UUUUUUUUUUUUUUUUU..........................
Uewd
If we disabled autorun on all drives, can the computer still boot from the fixed HDD, CD and USB drives?