Jump to content

What are all the different settings for NoDriveTypeAutoRun?


Recommended Posts


Here's what I use to totally disable AutoRun:

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
"NoDriveTypeAutoRun"=dword:000000b5

As for other settings - don't know if this particular registry key changes, but try changing drive autorun settings with TweakUI and see what registry settings change.

Link to comment
Share on other sites

According to Microsoft, there is two values under HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer to control Autorun settings : NoDriveAutoRun (to disable/enable autorun on specified drive letters) and NoDriveTypeAutoRun (to disable/enable autorun on specified class of drives).

NoDriveAutorun is stored as a REG_DWORD in which each bit set disable autorun for the correspondig drive. Use the calculator in scientific mode to convert from binary to hex. Example to diable autorun on drives A, B, C, D, I, R and W :

------ZY XWVUTSRQ PONMLKJI HGFEDCBA

00000000 01000010 00000001 00001111

=> set the value to 0x0042010F

(to disable all drives : 0x03FFFFFF ; to enable all drives : 0x00000000 or delete the value)

NoDriveTypeAutorun is stored a a REG_DWORD or 4-byte REG_BINARY, and it's very unclear how to use it...

Microsoft says :

Bit Number   Bitmask Constant   Description
0x04 DRIVE_REMOVEABLE Disk can be removed from drive (such as a floppy disk).
0x08 DRIVE_FIXED Disk cannot be removed from drive (a hard disk).
0x10 DRIVE_REMOTE Network drive.
0x20 DRIVE_CDROM CD-ROM drive.
0x40 DRIVE_RAMDISK RAM disk.

But nearly every other source i found says that "bit numbers" are wrong (see for example this one, well explained)

TweakUI only controls DRIVE_REMOVEABLE and DRIVE_CDROM here...

Common values found here & there :

0x91 => enabled for CD & removeable (default for XP)

0x95 => enabled for CD (default for every other windows)

0xB5 => disabled for CD (used by most tweaking apps to disable autorun)

i hope all this geek stuff will enlighten you ;)

Link to comment
Share on other sites

Just remove the comments from either Line3 or Line4 and any one of the "NoDriveTypeAutoRun" lines

REGEDIT4

;[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
;[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer]

;Disables Autoplay on unknown drives only
;"NoDriveTypeAutoRun"=dword:0x00000081

;Disables Autoplay on removable drives omly
;"NoDriveTypeAutoRun"=dword:0x00000004

;Disables Autoplay on fixed drives only
;"NoDriveTypeAutoRun"=dword:0x00000008

;Disables Autoplay on network drives only
;"NoDriveTypeAutoRun"=dword:0x00000010

;Disables Autoplay on CD-ROM drives only
;"NoDriveTypeAutoRun"=dword:0x00000020

;Disables Autoplay on RAM disks only
;"NoDriveTypeAutoRun"=dword:0x00000040

;Disables Autoplay on all drives (Recommended)
;"NoDriveTypeAutoRun"=dword:0x000000FF

;Disables Autoplay on removable drives and fixed drives
;"NoDriveTypeAutoRun"=dword:0x0000000C

;Disables Autoplay on removable drives and network drives
;"NoDriveTypeAutoRun"=dword:0x00000014

;Disables Autoplay on removable drives and CD-ROM drives
;"NoDriveTypeAutoRun"=dword:0x00000024

;Disables Autoplay on removable drives and RAM disks
;"NoDriveTypeAutoRun"=dword:0x00000044

;Disables Autoplay on removable drives and unknown drives
;"NoDriveTypeAutoRun"=dword:0x00000085

;Disables Autoplay on fixed drives and network drives
;"NoDriveTypeAutoRun"=dword:0x00000018

;Disables Autoplay on fixed drives and CD-ROM drives
;"NoDriveTypeAutoRun"=dword:0x00000028

;Disables Autoplay on fixed drives and RAM disks
;"NoDriveTypeAutoRun"=dword:0x00000048

;Disables Autoplay on fixed drives and unknown drives
;"NoDriveTypeAutoRun"=dword:0x00000089

;Disables Autoplay on network drives and CD-ROM drives
;"NoDriveTypeAutoRun"=dword:0x00000030

;Disables Autoplay on network drives and RAM disks
;"NoDriveTypeAutoRun"=dword:0x00000050

;Disables Autoplay on network drives and unknown drives
;"NoDriveTypeAutoRun"=dword:0x00000091

;Disables Autoplay on CD-ROM drives and RAM disks
;"NoDriveTypeAutoRun"=dword:0x00000060

;Disables Autoplay on CD-ROM drives and unknown drives
;"NoDriveTypeAutoRun"=dword:0x000000A1

;Disables Autoplay on RAM disks and unknown drives
;"NoDriveTypeAutoRun"=dword:0x000000C1

;Disables Autoplay on removable drives, fixed drives and network drives
;"NoDriveTypeAutoRun"=dword:0x0000001C

;Disables Autoplay on removable drives, fixed drives and CD-ROM drives
;"NoDriveTypeAutoRun"=dword:0x0000002C

;Disables Autoplay on removable drives, fixed drives and RAM disks
;"NoDriveTypeAutoRun"=dword:0x0000004C

;Disables Autoplay on removable drives, fixed drives and unknown drives
;"NoDriveTypeAutoRun"=dword:0x0000008D

;Disables Autoplay on removable drives, network drives and CD-ROM drives
;"NoDriveTypeAutoRun"=dword:0x00000034

;Disables Autoplay on removable drives, network drives and RAM disks
;"NoDriveTypeAutoRun"=dword:0x00000054

;Disables Autoplay on removable drives, network drives and unknown drives (Default)
;"NoDriveTypeAutoRun"=dword:0x00000095

;Disables Autoplay on removable drives, CD-ROM drives and RAM disks
;"NoDriveTypeAutoRun"=dword:0x00000064

;Disables Autoplay on removable drives, CD-ROM drives and unknown drives
;"NoDriveTypeAutoRun"=dword:0x000000A4

;Disables Autoplay on removable drives, RAM disks and unknown drives
;"NoDriveTypeAutoRun"=dword:0x000000C5

;Disables Autoplay on fixed drives, network drives and CD-ROM drives
;"NoDriveTypeAutoRun"=dword:0x00000038

;Disables Autoplay on fixed drives, network drives and RAM disks
;"NoDriveTypeAutoRun"=dword:0x00000058

;Disables Autoplay on fixed drives, network drives and unknown drives
;"NoDriveTypeAutoRun"=dword:0x00000099

;Disables Autoplay on fixed drives and CD-ROM drives and RAM disks
;"NoDriveTypeAutoRun"=dword:0x00000068

;Disables Autoplay on fixed drives, CD-ROM drives and unknown drives
;"NoDriveTypeAutoRun"=dword:0x000000A9

;Disables Autoplay on fixed drives, RAM disks and unknown drives
;"NoDriveTypeAutoRun"=dword:0x000000C9

;Disables Autoplay on network drives, CD-ROM drives and RAM disks
;"NoDriveTypeAutoRun"=dword:0x00000070

;Disables Autoplay on network drives, CD-ROM drives and unknown drives
;"NoDriveTypeAutoRun"=dword:0x000000B1

;Disables Autoplay on network drives, RAM disks and unknown drives
;"NoDriveTypeAutoRun"=dword:0x000000D1

;Disables Autoplay on CD-ROM drives, RAM disks and unknown drives
;"NoDriveTypeAutoRun"=dword:0x000000E1

;Disables Autoplay on removable drives, fixed drives, network drives and CD-ROM drives
;"NoDriveTypeAutoRun"=dword:0x0000003C

;Disables Autoplay on removable drives, fixed drives, network drives and RAM disks
;"NoDriveTypeAutoRun"=dword:0x0000005C

;Disables Autoplay on removable drives, fixed drives, network drives and unknown drives
;"NoDriveTypeAutoRun"=dword:0x0000009D

;Disables Autoplay on removable drives, fixed drives, CD-ROM drives and RAM disks
;"NoDriveTypeAutoRun"=dword:0x0000006C

;Disables Autoplay on removable drives, fixed drives, CD-ROM drives and unknown drives
;"NoDriveTypeAutoRun"=dword:0x000000AD

;Disables Autoplay on removable drives, fixed drives, RAM disks and unknown drives
;"NoDriveTypeAutoRun"=dword:0x000000CD

;Disables Autoplay on removable drives, network drives, CD-ROM drives and RAM disks
;"NoDriveTypeAutoRun"=dword:0x00000074

;Disables Autoplay on removable drives, network drives, CD-ROM drives and unknown drives
;"NoDriveTypeAutoRun"=dword:0x000000B5

;Disables Autoplay on removable drives, network drives, RAM disks and unknown drives
;"NoDriveTypeAutoRun"=dword:0x000000D5

;Disables Autoplay on removable drives, CD-ROM drives, RAM disks and unknown drives
;"NoDriveTypeAutoRun"=dword:0x000000E5

;Disables Autoplay on fixed drives, network drives, CD-ROM drives and RAM disks
;"NoDriveTypeAutoRun"=dword:0x00000078

;Disables Autoplay on fixed drives, network drives, CD-ROM drives and unknown drives
;"NoDriveTypeAutoRun"=dword:0x000000B9

;Disables Autoplay on fixed drives, network drives, RAM disks and unknown drives
;"NoDriveTypeAutoRun"=dword:0x000000D9

;Disables Autoplay on fixed drives, CD-ROM drives, RAM disks and unknown drives
;"NoDriveTypeAutoRun"=dword:0x000000E9

;Disables Autoplay on network drives, CD-ROM drives, RAM disks and unknown drives
;"NoDriveTypeAutoRun"=dword:0x000000F1

;Disables Autoplay on removable drives, fixed drives, network drives, CD-ROM drives and RAM disks
;"NoDriveTypeAutoRun"=dword:0x0000007C

;Disables Autoplay on removable drives, fixed drives, network drives, CD-ROM drives and unknown drives
;"NoDriveTypeAutoRun"=dword:0x000000BD

;Disables Autoplay on removable drives, fixed drives, network drives, RAM disks and unknown drives
;"NoDriveTypeAutoRun"=dword:0x000000DD

;Disables Autoplay on removable drives, fixed drives, CD-ROM drives, RAM disks and unknown drives
;"NoDriveTypeAutoRun"=dword:0x000000ED

;Disables Autoplay on removable drives, network drives, CD-ROM drives, RAM disks and unknown drives
;"NoDriveTypeAutoRun"=dword:0x000000F5

;Disables Autoplay on fixed drives, network drives, CD-ROM drives, RAM disks and unknown drives
;"NoDriveTypeAutoRun"=dword:0x000000F9

Hope this helps!

Link to comment
Share on other sites

thanks Yzöwl ! seems like sometimes MS gives the name "bit number" to "constants"... (it makes a confusion with NoDriveAutorun...)

But there's a (very) little mistake : as i said, 0x91 is the default for XP (allowing autoplay for ZIP or USB)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.


×
×
  • Create New...