Protect your computer from viruses by disabling autorun autoplay on all the drives

by Rohit Khurana on August 19, 2008



We have been getting lots of virus problems which infect computers through autorun.inf file as autoplay is enabled on the windows drive by default.


Some of the autorun related virus problems for which we have already posted the solution are

All these problems are caused due to enabled autoplay on windows drive. We need to stop windows from executing instructions in autorun.inf files  



Let’s see how can you disable autoplay on drives


To disable autorun for all the drives on your computer, you will need to configure it through windows registry.


Follow the procedure below to stop autoplay on  windows drives


1. Open Start >> Run or press Window + r

2. Open registry by typing regedit.exe and press enter

3. Navigate to the following path:

HKEY_CURRENT_USER\Software\ Microsoft\Windows\CurrentVersion\Policies\Explorer


4. Double-click the NoDriveAutorun registry key and type the value in Hexadecimal as FF ( or 255 in Decimal).


Note: If their is no NoDriveAutorun registry key, just create it by right-clicking the right side area of the regedit window, then select New >> DWord Value >> type NoDriveAutorun and press enter.


5. Exit registry and restart your computer for changes to come into effect.


This is how you can disable autorun on all your drives and at least will prevent autorun activity of virus infected USB pendrives or CD’s and avoid infection through autorun.inf viruses.

If you like this article or this article helped you, you can +1 to recommend this article on google plus.

You can follow us on Twitter or join our Facebook Fan Page. If you have a question to ask us, submit your question at Answers By Trouble Fixers.

Looking for something else? Search here :

{ 4 comments… read them below or add one }

Pavan Kumar August 20, 2008 at 8:32 am

That’s a great tip… I did not have that value on registry, I just created a dword value with that name and set to ff. I guess hex value of “01” also works….??

Praval Singh August 20, 2008 at 9:54 pm

Hi all!

I have a script which shall run on all windows based machines cleaning up the mess created by famous pen-drive based viruses – AMVO and its variants. This works for sure. Check the user comments for confirmation.

Here is the link:

venkat November 3, 2008 at 6:26 am

You could have mentioned disabling auto run of all devices through Group Policy Editor as well which might be very helpful for beginners and easiest one,beginners mess up with this registry editing.

Leave a Comment

Previous post:

Next post:

© TroubleFixers – All about fixing computer troubles2007-2016 . All Rights Reserved.