Setting the registry key

(Special how to for Windows Secrets readers)

http://support.microsoft.com/default.aspx?scid=kb;en-us;967715

 

After the patch for 967715 has been applied you will see the following in your registry:

This patch will put two registry settings in place:  HonorAutoRunSetting under HKEY_Local_Machine\Software\Microsoft\Windows\CurrentVersion\policies\Explorer

The other setting will be under HKEY_Current_User\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer

If you get USB media from unknown sources, consider the following settings:

You may wish to set it to Decimal value of "4"

Change the value to

Hex      Decimal          Meaning
0x1          1                Disables Autoplay on drives of unknown type.
0x4          4                Disables Autoplay on removable drives.
0x8          8                Disables Autoplay on fixed drives.
0x10      16               Disables Autoplay on network drives.
0x20      32               Disables Autoplay on CD-ROM drives.
0x40      64               Disables Autoplay on RAM drives.
0x80     128              Disables Autoplay on drives of unknown type.
0xFF     255              Disables Autoplay on all types of drives
 

To adjust, click on the start button and click on the run box

In the open box, type in regedit and click OK

Find the registry key under HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer

Double click on the entry NoDriveTypeAutoRun, click on the Decimal button and determine what value you wish to enter per the list below:

Disable only unknown type -- Click on the Decimal button and enter in a 1

It should look like this when complete:

 

Disable Autoplay for removable drives -- click on the decimal button and enter in a 4

It should look like this:

 

Disable Autoplay for fixed drives -- click on the decimal button and enter in an 8

It should look like this:

 

 

Disable Autoplay for network drives -- click on the decimal button and enter in a 16

 

It should look like this:

 

Disable Autoplay for CDrom drives -- click on the decimal button and enter in a 32

It should look like this:

 

 

Disable Autoplay for RAM drives -- click on the decimal button and enter in a 64

It should look like this:

 

Disable Autoplay for unknown type -- click on the decimal button and enter in a 128

It should look like this:

 

Disable Autoplay for all -- click on the decimal button and enter in a 255

It should look like this:

 

Annoyances.org - How to Disable the Autorun Dialog (Windows XP Discussion Forum):
http://www.annoyances.org/exec/forum/winxp/1182376024

 

"So, if you want to disable autorun for all but CD ROM insertion, add  decimal 1+4+8+16+64+128
(skipping 32 for CD ROM), to get a total of 221 decimal or DD hex.   Enter DD in
hex as your value for the DWORD "NoDriveTypeAutorun" you created above.  This will
allow the installer CD ROMs you insert to still autorun, but will eliminate that
annoying dialog that would otherwise come up when you connect a USB drive.

To disable autorun for ALL drives including CD ROM, enter the value of 255 decimal or FF hex (all bits set)."

 

Disable auto run for everything "but" cdroms:

It will look like this:



 

If you do the setting "255" your system will no longer do this:

 

-------------------------------------

On Vista the location of the registry key is under HKEY+Local_Machine