Vista Registry - NoDriveTypeAutoRun and AutoPlayVista Registry - NoDriveTypeAutoRun and AutoPlayThis registry hack will control what happens to AutoPlay when you put a CD into the drive caddy. Researching NoDriveTypeAutoRun, reminds me of a tip that I was given for playing chess; when you find a good move, look for an even better one. Previously I had known about plain AutoRun, but now I have found a more flexible registry setting, NoDriveTypeAutoRun. Topics for NoDriveTypeAutoRun
Background to AutoPlayMedia Change Notification (MCN) messages from the CD-ROM driver, trigger the AutoPlay behaviour of the CD. However, if these messages are suppressed then the CD will not automatically start playing. You can disable AutoPlay by configuring the appropriate value of NoDriveTypeAutoRun (or NoDriveAutoRun) in the registry. The benefit of using NoDriveTypeAutoRun, rather than NoDriveAutoRun, is that you can fine-tune which drives you wish to disable. For example, you can disable all network and all unknown drives from running AutoPlay, but allow CD-ROM drives to run AutoPlay, and thus start automatically. Possible Values for NoDriveTypeAutoRunHere below, is a table of the hex values to control AutoPlay on a variety of drives. The entries are a bitmapped value. To disable AutoPlay on a particular type of drive, set the bit representing that type of drive to 1. If you want to disable more than one type of drive, sum the hexadecimal values of the representative bits. In XP, the default value for NoDriveTypeAutoRun is 0x95 (149). You calculate the figure by summing: 0x1 (unknown types), 0x80 (unknown types), 0x4 (floppy drives), and 0x10 (network drives). In Vista the default is 0x91 (145). Similar to XP, but without the floppy drive setting.
Registry Instructions for NoDriveTypeAutoRunOne interesting feature of NoDriveTypeAutoRun is that you can set the value in either HKLM** or HKCU. If you go overboard and configure both, then the Local_Machine over-rides the Current_User.
. Key Learning Points
** HKLM is an abbreviation of HKEY_LOCAL_MACHINE, and HKCU is shorthand for HKEY_CURRENT_USER. These acronyms are so well known that you can even use them in .reg files, Vista will understand and obey the registry instruction. Creating a .Reg File This page explains how to create, and then edit .reg files for your computer. As it's easy to import the contents of a .reg file into the registry, do take extra care with procedures. Example NoDriveTypeAutoRun .reg file.
Watch a Vista Training Video Demo. Windows Vista Registry Tweaks:
^
|
|||||||||||||||||||||