One of the best ways of getting your computer infected is by sharing an actively infected Pen Drive or Memory Stick. When you insert a Memory stick or a CD, windows loks for the file called “Autorun,ini” in the device’s root directory. If it is found, it tries to execute it. A malware can easily create this file and help in its replication. Windows registry holds this setting whether to read the file autorun.ini or not. To change the setting,
Save this content in a .reg file and execute.
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
"NoDriveTypeAutoRun"=dword:00000095
Now, after inserting this information to the registry, windows does not check for autorun.ini when you insert a device. Conversely, If you double-click the drive letter from “My Computer”, the “autorun.ini” still executes.






