Disable Autoplay on CD-ROM drives (For All Users).

Click here to run a free scan for registry errors
This tweak lets you disable the Autoplay feature of the removable drive CD-ROM.
Level: Recommended For Experts Only
Description:
Autoplay makes the cds or other devices to play automatically or run a program when a disc is inserted into the drive. This setting disables the autoplay feature of the drives of the type specified. By default, the autoplay is disabled on removable drives, such as the floppy disk drive and network drives but not the cd-rom drive. If this setting is enabled, you can also disable autoplay on cd-rom drives selectively. For this, go to start > run menu, enter regedit and navigate to the registry path listed below. If the subkey \explorer does not exist, create it as explained below. Then, create the dword value nodrivetypeautorun in the right panel. Right-click this value name and modify the value data with 20 to enable the setting. Note: any of these values or a combination of two or more values can be put in as new value. Say, if you want both network drives and cd-rom drives disabled to autoplay, the new value will be (20+10) = 30. However, if you want the default value back, change the value data to 95. This is the sum of 1-unknown types, 80-unknown types, 4-removable drives, and 10-network drives. The changes take effect after a restart or logoff. The values assigned to various drives: <table><tr><td>value</td><td>meaning</td></tr><tr><td>1</td><td>disables autoplay on drives of unknown type.</td></tr><tr><td>4</td><td>disables autoplay on removable drives.</td></tr><tr><td>8</td><td>disables autoplay on fixed drives.</td></tr><tr><td>10</td><td>disables autoplay on network drives.</td></tr><tr><td>20</td><td>disables autoplay on cd-rom drives.</td></tr><tr><td>40</td><td>disables autoplay on ram drives.</td></tr><tr><td>80</td><td>disables autoplay on drives of unknown type.</td></tr><tr><td>ff</td><td>disables autoplay on all types of drives.</td></tr></table> remember: autoplay is also disabled on any drive if it is disabled by the value of nodriveautorun or nodrivetypeautorun in hkey_local_machine or hkey_current_user. But if either of the value name nodriveautorun or nodrivetypeautorun appears in hkey_local_machine, the corresponding entry in hkey_current_user is ignored. When editing the registry it is highly recommended to run a quick scan for optimization, you can test your system now for free.




Screenshots


First, click the 'Start' button, and select 'Run'. In the resulting dialog box, type "regedit".
Go to <b> [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\]</b>, key and create a new key with the name "Explorer" under "Policies".
Now, right-click in the open area to create a DWORD Value with the name "NoDriveTypeAutoRun" in "Explorer" key.
Next, right-click on "NoDriveTypeAutoRun" and click on 'Modify'.
Finally, enter the value "20" (Base Hexadecimal) in the text box and click on 'OK'.


Registry Entries

- back to top

  • Path: [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\]
  • Location: Local Machine
  • Value Name: Explorer
  • Data Type: Key
  • Action Type: Add an Entry
  • Path: [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\]
  • Location: Local Machine
  • Value Name: NoDriveTypeAutoRun
  • Data Type: DWORD (DWORD Value)
  • Enabled Value: 20
  • Action Type: Add an Entry