How to disable autorun.inf permanently

Help on cleaning Viruses, Trojans, Spyware and Adware
Post Reply
User avatar
Rksk
Major
Major
Posts: 730
Joined: Thu Jan 07, 2010 4:19 pm
Location: Rathnapura, Sri Lanka

How to disable autorun.inf permanently

Post by Rksk » Sun May 16, 2010 9:32 pm

How to disable autorun.inf permanently in windows?? It is the best way to stop autorun virues. I have found some registry keys to stop it. But It seems , they don't work realy. What is the best way to do it???
User avatar
Neo
Site Admin
Site Admin
Posts: 2642
Joined: Wed Jul 15, 2009 2:07 am
Location: Colombo

Re: How to disable autorun.inf permanently

Post by Neo » Sun May 16, 2010 10:01 pm

Copy this code to a file with .reg extension (ex: run.reg) and double click it. This will adjust required entries.
You may also follow Microsoft article for this. Note that registry settings come in to effect only after restart. So make sure you restart your PC.

Code: Select all

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\JSFile\Shell]
@=”Edit”
[HKEY_CLASSES_ROOT\JSEFile\Shell]
@=”Edit”
[HKEY_CLASSES_ROOT\VBEFile\Shell]
@=”Edit”
[HKEY_CLASSES_ROOT\VBSFile\Shell]
@=”Edit”
[HKEY_CLASSES_ROOT\WSFFile\Shell]
@=”Edit”
[HKEY_CLASSES_ROOT\WSHFile\Shell\Edit\Command]
@=”Notepad.exe %1?

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
“DisallowRun”=dword:00000001
“NoDriveAutoRun”=hex:ff,0f,00,00
“NoDriveTypeAutoRun”=dword:000000b5

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\Explorer]
“NoDriveAutoRun”=dword:03ffffff
“NoDriveTypeAutoRun”=dword:00000004

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\IniFileMapping\Autorun.inf]
@=”@SYS:DoesNotExist”
User avatar
Rksk
Major
Major
Posts: 730
Joined: Thu Jan 07, 2010 4:19 pm
Location: Rathnapura, Sri Lanka

Re: How to disable autorun.inf permanently

Post by Rksk » Mon May 17, 2010 8:45 am

Thanz.

I will do something for people in our area who use computers without a good antivirus by using above reg edit.
Mysoogal
Captain
Captain
Posts: 223
Joined: Thu Dec 17, 2009 7:15 am
Location: Planet VPS

Re: How to disable autorun.inf permanently

Post by Mysoogal » Wed Jul 20, 2011 10:38 pm

first thing to do is go into msconfig and startup, disable everything next go into safe mode and scan for virus :geek:
User avatar
Rksk
Major
Major
Posts: 730
Joined: Thu Jan 07, 2010 4:19 pm
Location: Rathnapura, Sri Lanka

Re: How to disable autorun.inf permanently

Post by Rksk » Tue Aug 28, 2012 12:26 am

Mysoogal wrote:first thing to do is go into msconfig and startup, disable everything next go into safe mode and scan for virus :geek:
safe mode doesn't stop all the virus. There are lots of virus which run in safe mode too.
Post Reply

Return to “Viruses, Trojans, Spyware and Adware”