Monday, April 15, 2013

How to Disable Autoplay of Audio CDs and USB Drives

Disable Autoplay of Audio CDs and USB Drives

I find it very annoying when I go home from work and plug my laptop into my external hard drive… The autoplay window always pops up and asks me what I want to do with the files, which may be fine the first time, but definitely isn’t after a year of that.
To get to the configuration screen for this setting, go to Start Menu \ Run and type in:
gpedit.msc
You will see the Group Policy window. You should select Administrative Templates \ System in the tree view:

You will see an item in the right side pane called “Turn off Autoplay”

Double click the item, and set the radio button to Enabled, and change the “Turn off Autoplay on” to All Drives.

 

Enable/Disable Autorun

How To Enable/Disable Autorun (Windows 95/98/Me)

  1. Access the System Properties Dialog. Using Control Panel: My Computer: Properties or Explorer: My Computer: Properties.

  2. Select the Device Manager tab.

  3. Select the CD-ROM folder.

  4. Select the entry for your CD-ROM drive.

  5. Select Properties.

  6. Select the Settings tab.

  7. Turn on or off the Auto insert notification option.

  8. Select OK.

  9. Select OK

How To Enable/Disable Autorun (Windows NT/2000)

  1. Start RegEdit (regedt32.exe).

  2. Go to HKEY_LOCAL_MACHINE/System/CurrentControlSet/Services/Cdrom.

  3. Edit the Autorun value to '1' to enable autorn, and '0' to disable autorun.

  4. Close RegEdit

How To Enable/Disable Autorun (Windows XP)

  1. Open Windows Explorer by pressing the Windows + "e" key.

  2. Right-click the desired CD-ROM and select Properties from the menu.

  3. Select the AutoPlay tab.

  4. Select each item from the pulldown list and for the Action to perform, select "Take no action" to disable autorun, or pick the apporpriate action to take if enabling autorun.

  5. Select OK.

How To Enable Autorun for Other Removable Media

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. Modifiying the Registry is not for the inexperienced user. Anyone will tell you, be VERY careful.
  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.
DRIVE_UNKNOWN 1
DRIVE_NO_ROOT_DIR 2
DRIVE_REMOVABLE 4 (floppy disks and removable cartridges)
DRIVE_FIXED 8 (hard disks)
DRIVE_REMOTE 16 (network drives)
DRIVE_CDROM 32 (CD-ROMs)
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.
The calculation for this value is 1 + 4 + 16 + 128 = 149. 149 Decimal is 95 Hex
The new calculation is 1 + 16 + 128 = 145. 149 Decimal is 91 Hex
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. 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