Removing Virus From Pen Drive Permenently
As for AutoRun, it will run an executable file
instructed by autorun.inf file. There’s no chance for you to Cancel autorun at all.
Microsoft way of disabling autorun is editing the NoDriveTypeAutoRun value from
registry. However, this is hard to do in practice. First, it’s a per-user key, which
in a corporate environment is harder to manipulate reliably than a per-PC key.
Secondly, there are several bugs known for it. And thirdly, a little-known registry
key called MountPoints2 contains cached information about every memory stick or
other removable device which your PC has ever seen, and that overrides the
NoDriveTypeAutoRun value if you insert a volume which the PC already knows about.
Here is the registry key that you should use to globally block autorun.inf. Open
notepad or any text editor, copy the text below and save it as NoAutoRun.reg. Make
sure the extension is .reg and not .txt. Run it and click Yes if you’re asked “Are
you sure you want to add the information in C:\NoAutoRun.reg to the registry?”
REGEDIT4
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\IniFileMapping\Autorun.inf]
@="@SYS:DoesNotExist"