Click Start>Settings>Control Panel>System to access the System Properties Dialog.
Click the Device Manager tab.
Expand the CD-ROM list.
Click on the entry for your primary CD-ROM drive.
Click Properties.
Click the Settings tab.
Enable or Disable the Auto insert Notification.
Click OK.
Click OK.
Enabling or Disabling Autorun (Windows NT/2000)
Click Start>Run.
Type regedt32.exe in the Run field.
Browse to HKEY_LOCAL_MACHINE/System/CurrentControlSet/Services/Cdrom .
Change the Autorun value to 1 to enable autorn, and 0 to disable autorun.
Close RegEdit.
Enabling Disabling Autorun (Windows XP)
Open Windows Explorer by pressing Windows + e.
Right-click the desired CD-ROM and click Properties.
Click the AutoPlay tab.
Select each item from the dropdown list and for the action to perform, click the Take no action icon to disable autorun, or pick the apporpriate action to take if enabling autorun.
Click OK.
Using a Group Policy
Click Start>Run.
Type GPEDIT.MSC in the Run field.
The Group Policy Microsoft Management Console appears. On left panel:
Double-click Computer Configuration to open submenu.
Double-click Administrative Templates to open submenu.
Double-click System to open submenu
Double-click Turn autoplay off.
Set to Not Configured to enable Autorun, or Enabled to disable Autorun.