Disable autorun/autoplay property


Disabling Autorun Property

To disable autorun using Group Policy Editor
Start » Run » gpedit.msc
Go to Computer Configuration » Administrative Templates » System
Double-click
Turn off Autoplay
Select
Enabled
Turn off Autoplay on = All Drives

Start » Run » Regedit
Go to HKEY_CURRENT_USER » SOFTWARE » Microsoft » Windows » CurrentVersion » Policies » Explorer » NoDriveTypeAutorun
Set the following value
NoDriveTypeAutorun = FF (Hexadecimal) or 255 (Decimal) Disables AutoRun on all kinds of drive

To disable autorun of CD drive
Start » Run » Regedit
Go to HKEY_LOCAL_MACHINE » System » CurrentControlSet » Services » CdRom
Set following values
AutoRun = 0 (to disable autorun on CDs)
AutoRun = 1 (to enable)

Hold on SHIFT key while inserting CD in CDROM