Tuesday, July 27, 2010

How to selectively disable specific Autorun featuresHow to selectively disable specific Autorun features

How to selectively disable specific Autorun features
To selectively disable specific Autorun features, you can either use Autorun Settings or you must change the NoDriveTypeAutoRun entry in one of the following registry key subkeys:

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

The following values shows the settings for the NoDriveTypeAutoRun registry entry.

ValueMeaning
0x1 or 0x80Disables AutoRun on drives of unknown type
0x4Disables AutoRun on removable drives
0x8Disables AutoRun on fixed drives
0x10Disables AutoRun on network drives
0x20Disables AutoRun on CD-ROM drives
0x40Disables AutoRun on RAM disks
0xFFDisables AutoRun on all kinds of drives


The value of the NoDriveTypeAutoRun registry entry determines which drive or drives the Autorun functionality will be disabled for. For example, if you want to disable Autorun for network drives only, you must set the value of NoDriveTypeAutoRun registry entry to 0x10.

If you want to disable Autorun for multiple drives, you must add the corresponding hexadecimal values to the 0x10 value. For example, if you want to disable Autorun for removable drives and for network drives, you must add 0x4 and 0x10, which is the mathematical addition of 2 hexadecimal values, to determine the value to use. 0x4 + 0x10 = 0x14. Therefore, in this example, you would set the value of the NoDriveTypeAutoRun entry to 0x14.

The default value for the NoDriveTypeAutoRun registry entry varies for different Windows-based operating systems:

Operating systemDefault value
Windows Server 2008 and Windows Vista0x91
Windows Server 20030x95
Windows XP0x91
Windows 20000x95

No comments:

Post a Comment