Nowadays the major cause of my system getting infected with virus is from the USB drives.When the USB drives are plugged into a computer previously infected with a virus then these viruses are automatically copied to the drives along with autorun.inf file.The virus infects all executable files in my flash drive, then creates a hidden autorun.inf file at the roof of the pendrive.
The autorun.inf file is useful only when an installer can automatically start the installation of the setup program when a disc is inserted.Turning off the autoplay also doesn't prevent the autorun file from executing.
Raymond has found out a registry hack which will allow you to to globally block autorun.inf from automatically executing.Open notepad and copy the code below and save it as AutorunHack.reg file instead of .txt file.
REGEDIT4
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\IniFileMapping\Autorun.inf]
@="@SYS:DoesNotExist"
Open this AutorunHack.reg file and click Yes if you’re asked “Are you sure you want to add the information in AutoRunHack.reg to the registry?”.Next time you insert a USB drive into your system then Windows will not execute the information in any autorun.inf file that may be present.
Related: Recover deleted files from corrupt USB Drives
If you like this post then please Tweet this or Subscribe to the latest updates on this post through Email by CLICKING HERE.




damn good work dude
yeah
good one
Hi. When I click 'Yes" to access the registry it says I can't access the registry.