Change the Autorun value in the following registry key:
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\CDRom
To disable the Autorun feature, change the Autorun value to 0. To enable the Autorun feature, change the Autorun value to 1.
Restart the computer.