How to Remove Autorun.inf virus Completly from System & Flash Drives using CMD

Photobucket

Is your PC a victim of the Autorun.inf virus? How to Remove Autorun.inf completely explains the simple way of removing Autorun.inf virus by using Autorun.inf Eater software.  Deleting autorun.inf is effective only if the computer you are using is clean otherwise the autorun.inf will simply bounce back.

Photobucket Pictures, Images and Photos

Using CMD to Remove Autorun.inf Virus from the System & Removable Drives


First Method

  • Open command line (CMD) and write the following:

del /a:rhs [driveletter]:autorun.inf

  • Simply Replace  [driveletter] with your drive. If the virus is on the D drive the commad will be

del /a:rhs D:autorun.inf

  • Restart the computer & Done.

Second Method

Genreally when you refresh the windows explorer view a bounded virus process recreates this file. This file is attached to many events of windows explorer including OPEN, REFRESH, etc.
You must close opened explorer windows.

1. Open up a command prompt (i.e. cmd.exe) >> to load it go to Run, type cmd, enter.
2. Now to remove virus’s attributes (in order to delete it type following line by line and execute them pressing enter.

F:
F:attrib -s -r -h *.*

If there are any malicious EXE files those are now visible so if unnecessary delete them too.

F:del autorun.inf

3. After finishing above, quickly remove the pendrive as soon as posible (just after executing del command).
4. Now your pen is without virus activation config. file. Now you can safely delete unnecessary EXE files on it.

Third Method

  • Download Flash_Disinfector.exe from here and save it to your desktop.
  • Double-click Flash_Disinfector.exe to run it and follow any prompts that may appear.
  • The utility may ask you to insert your flash drive and/or other removable drives including your mobile phone.
  • Please do so and allow the utility to clean up those drives as well.
  • Wait until it has finished scanning and then exit the program.
  • Reboot your computer when done.

Note: Flash_Disinfector will remove any autorun.inf files, create a hidden folder named autorun.inf in each partition and every USB drive plugged in when you ran it. Don’t delete this folder. It will help protect your drives from future infection.

Find that interesting. Suscribe us & Follow us on Twitter to get more tips & information.

Related Posts with Thumbnails

Related Posts

Leave a comment ?

80 Comments.

  1. Excellent article… its very very useful for me….
    Thanks

  2. THANK YOU!! I really appreciate your help! I was desperately trying to find a solution to this problem and the use of flash disinfector simply helped me to get rid of it in just a few seconds!!

  3. Thank You. I have tried other methods on other websites, but, your 3rd one helped me and get rid of it. THANKS A LOT ONCE AGAIN.

  4. Great tips! I'm sure it will help someone. :)

  5. Thanks a lot man, this saved me a whole lot of issues, and made my Monday

  6. Nice tips.
    bOOkmarked this page who knows when will my pc next get infected.
    thnx

  7. thank u man………

  8. i just didnt work for me…huhu T_T

  9. but i cant able to delete it from my sd card….

    • In Sd Card Autorun.inf is a requirement itself. Why do you want to remove it? It cant be removed as it is need to autoplay automatically when use din the SD device.

      • But the same happens to me, in my SD Card, Autorun.inf is detected as a threath, and I cant delete nor reformat my card…what does this mean?

  10. OMG thanks so much! I've been having problems with the autorun worm..i'm so happy it's all ok now thanks to this article! :)

  11. thanxxxxxxxxxxxxxxxxxx a lot,it helped me!!!!!!!!!!!

  12. Nice post to be safe from usb virus

    • follow my instructions to protect your pendrive or removable forever from autorun.inf
      1st open notepad and type @echo off
      del *.inf
      2nd save this in the infected directory(directory containing autorun) as something.bat
      3rd on saving start it once.
      4th then as quick as possible open notepad again and type: [Autorun]
      open=
      ACTION=
      5th save this in with the previous file(save this file as autorun.inf)

      DONE—-now autorun virus will never infectthat drive ever.

      3rd

  13. When executing “del autorun.inf” command I get a message: “The process cannot access the file because it is being used by? another process”. However, after killing Explorer.exe process in task manager the file can be deleted. BUT… Each time I insert a pendrive into my PC a new copy of the virus is placed on it. Apparently this virus created a backup somewhere on the system and it's not in the root directories.

    • That can be a reason, a backup copy of autorun.inf is replicating itself to your pendrive. Use latest antivirus like Avast's Boot time Scan. Its the best I have ever seen.

  14. Wow! It's done by 3rd method. Thanks!

  15. I took some stuff to printing and when I cam home I discovered two new files on my pendrive: autorun.inf and a folder that looks like recycle bin. These were hidden by I always keep the option to see hidden files enabled. When you click on the folder you just get to your recycle bin and see the files you have deleted, nothing more. But if you rar the folder and open the archive you can see that it contains an exe file and Desctop.ini file. I noticed that when I stick the pendrive into USB csrss.exe process appears in task manager for a moment under my user name. csrss.exe shoulb appear only as a system process and be located at system32 directory, otherwise it's a virus. So I made a search for csrss.exe and besides the legit one I found another at C:/ Documents and Settings/ My username directory. It's a little bit different type of autorun virus. That's how you deal with it:
    1. Open Run
    2. Open CMD
    3. Terminate explorer.exe process in task manager. This virus uses explorer's process therefore you won't be able to delete it as long as explorer is running.
    3. Navigate to pendrive and use “del autorun.inf” command.
    4. Navigate to C:/ Documents and Settings/ Your username directory and use “del csrss.exe” command
    5. Restore explorer by typing explorer.exe in RUN, go to the pendrive and delete the recycle bin folder.

    To prevent pendrive viruses in the future download a free program called “Autorun Eater”.

  16. THank you team,

    It is very useful for all IT Guys.

  17. hey… i have already tried deleting autorun through command prompt using erase command, but either it shows could not find autorun.inf…and if my antivirus detects and deletes it …it is back as soon as i connect my pendrive next time to my computer,…
    hey can u tell me something to get rid of it permanently…

  18. Oliver Muller

    Thanks soooo much!! that .inf virus kept pissing me off, now its done for, thanks to you guys!!! you do good work.. thanks again..

  19. wow!
    was aware of the first two methods, but to no avail
    but the third method really worked!
    nice post dude

  20. thanks a lot dude
    the third method is just so simple
    the virus was driving me crazy and flash_disinfector removed it in seconds
    even avast wasn't able to do that
    thanks a ton

  21. Just use linux mint 8

  22. how can i save autorun.inf, when the exist autorun.inf can,t be access??? help me!!!

  23. When I double click the Flash_Disinfector it doesn't do anything….

  24. thanks a lot…….it was great…….

  25. hmmm thanksssss

  26. Swarupgraphics

    Thanks to 3 rd options works !!!!!! great!

  27. What is the name of this virus so far? I mean, everybody names it “autorun.inf” It should have a “more formal” name like “W32somthing” (for example as Symantec Co. names viruses ). I'd like to remove this from the system, not a mere USB, the virus keeps respawning.

  28. Thanks for solving my headache. My USB often has autorun.inf.

  29. Very thorough post which has no doubt helped many people already. Thanks.

  30. well this is nice, it helped me. get rid of those unwanted autorun

  31. Thank you, very much.

  32. hea simple method to protect USB..open notepad-> save it as “autorun.inf” in desktop..a icon display in desktop..copy the icon n paste in USB..it ask replace option..click YEs..n now ur USB is safe,,get enjoy

    • Thanks, Juju for sharing this here , but it will not work in most of the cases where Hard drives or the system is infected with autorun.inf. But one can try this for sure.

  33. thanx buddy could you tel me same to remove from pc..

  34. try this command as well it shud work
    open command prompt and type
    del c:autorun.* /f/s/q/a and hit enter .Simultaneously replace c with the drive letter correspondingly.

  35. Contact Hemanth

    actually the easiest way is to stop explorer.exe from taskmanager, then ” x:/ del autorub.inf ” will solve the pblm.

  36. I do all this manual process but a message showing “Access is denied”. I cant do. how can i solv this

  37. Thank' for your tips brother :D

  38. Thanks for the help, it worked in winows 7 ultimate 64 bit N as well. Thanks

  39. thnks sir,,,,it is good method ever for me

  40. Nice one. Method Third helped me indeed!

  41. first two method's won't work for me !!!

  42. Thanks for this you would be suprised how many people wont let you use a memory stick if it has even the slightest sign of infection even though you know it is harmless which this autorun one seems to be. i decided enough was enough when my new 32GB Lexar flash drive. I cannot afford to have it keep happening i have now blasted the git to oblivion and now i can use my memory stick anywhere without the worry of it being rejected by people that need to take things from it.

  43. It Doesn't work I tried them all but the autorun can't be deleted it is overprotected or the program is currently in use

  44. Finally I got rid of autorun.inf virus…. thank you so much for this article.
    G Jethwa.

  45. thnks sir

  46. thnks sir

  47. It’s really working i also want to do this kind of job i really want any can help me i want to make most powerfull and pure antivirus so no ones pc get infected…

  48. Thank you so much i used the second method :)

    removed autorun.inf off my 1TB external hard drive

    now in the process of scanning the external hard drive to confirm this

    thanks again :)

  49. Try by accessing as an Administrator. It seems that you don’t have proper rights to access those drives.

  50. Virus Autorun.inf « Jendela Web - pingback on January 18, 2011 at 2:45 PM
  51. Thanks. The problem is that Flash_disinfector does not work for Windows 7.

  52. to unhide files you can also try this:
    go to:
    1.) start
    2.) run
    3.) type: cmd
    4.) cd
    5.) attrib f:*.* -a -r -h -s /s /d
    takenote: you can change (f:) to any drive that you want the files to be showed.. :) )

  53. you guys rock! thank you so much.. i wish all sites will be this informative, honest, and helpful… thanks again!

  54. Thanks a lot, the third method worked like a charm for me 

  55. I m always try to remove autorun virus but every time no any solution plz tell hows possible plz tell me with cmd
     

  56. Are this cmd working or try my software will help you

    Autorun Virus Remover v2.3 + Serial

    copy this link ; http://www.filesonic.com/file/2689381341

  57. Thanks a lot.. it totally worked for me.. :D

  58. need help on hidden files - Page 2 - pingback on May 6, 2012 at 11:14 PM

Speak Your Mind


NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Trackbacks and Pingbacks: