Tuesday, October 11, 2011

Enable Autorun for Removable Media

How to do it?

Autorun can be enabled or disabled for all Removable media types, such as a floppy or Zip disk. Windows systems are configured to enable CD Notification, other removable media are by default disabled.
The System Properties User interface only exposes the CD Enable or Disable selection. The setting reflected in this dialog makes an entry in the System Registry. It is in this same location that other media types are configured.

Notes:
1. Modifying the Registry is not for the inexperienced user.
2. The modifications made in this case use Hex not Decimal numbers. If you are unfamiliar with the Registry or the characteristics of base numbering and Hex, studying these topics prior to making these modifications is advisable.

To Modify these Registry Settings, Use Regedit and navigate to the following Key:
HKEY_CURRENT_USER Software Microsoft Windows CurrentVersion Policies Explorer "NoDriveTypeAutoRun"
The default value for the setting is 95 0 0 0. Change the first byte to 91. Restart the computer to make the new setting take effect. You may have to right-click on the floppy and choose AutoPlay from the menu to see the AutoPlay behavior.

Additional Technical Info

The first byte defines which drive types to EXCLUDE from Autorun behavior. The hex value of the byte is the sum of all of the drive type values to exclude + 128.
  1. DRIVE_UNKNOWN 1 
  2. DRIVE_NO_ROOT_DIR 2 
  3. DRIVE_REMOVABLE 4 (floppy disks and removable cartridges) 
  4. DRIVE_FIXED 8 (hard disks) 
  5. DRIVE_REMOTE 16 (network drives) 
  6. DRIVE_CDROM 32 (CD-ROMs) 
  7. DRIVE_RAMDISK 64
The default configuration excludes UNKNOWN (1), REMOVABLE (4) and REMOTE (16) which would be 16 + 4 + 1 + 128 = 149, which is hex 95. If you take out REMOVABLE you get 16 + 1 + 128 = 145, which is hex 91.

You may have to restart for the system to recognize a floppy or Zip as an Autoplay drive. If your floppy drive does not show a custom icon or AutoPlay in the menu when right-clicked, double-click on the icon for your computer on the desktop and press F5 to refresh the information in the Explorer window. 

Note: Zips and floppies will not autolaunch when media is inserted. You must double-click their icon or right-click and choose AutoPlay from the menu.


No comments:

Post a Comment