Autorun occurs when a CD or DVD is inserted into a Windows computer. When this happens, Windows looks for a file called autorun.inf. If the file exists on the CD/DVD, the instructions in the file will be followed – generally to run a .exe or other installer type file.
There is malicious software out there that relies on the autorun feature in order to execute and infect computers, so many users these days are turning the autorun feature off. You will have slightly better security with it turned off, but you will then have to manually run the contents on the CD/DVD.
To disable the autorun, you will need to edit the Windows registry. Always be careful when editing the registry and you do so at your own risk.
Click start -> run, type “regedit” to fire up the registry editor:
Browse to the location:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
If “NoDriveTypeAutoRun” does not exist, Right click on the “Explorer” folder, select New -> DWORD value. Call the key “NoDriveTypeAutoRun”.
Set the value of this key to B1. To turn it back on, set the value to 91.
Vista and Autorun
In Windows Vista you will be prompted with a dialog asking you what you want to do. You can either choose to run the file or you can set the defaults. When you choose to set the defaults you will see the following options. (these options can also be accessed via the control panel)

So for each type of media, you can choose whether it autoplays or whether you should be prompted. For things like software it is a good idea to be prompted everytime. You never know what might be lurking on a CD/DVD.
Related posts:
