It is very easy to Remove autorun virus from your pen drive or from your PC. In this tutorial, I am going to cover possible methods to Remove autorun virus.
What is Autorun.inf file?
You may see autorun.inf file in your pen drive or in your PC drives. It is not actually virus. This file has auto executable setup file and some other information related to your device. When you insert pen drive into usb slot, windows first execute this autorun file. Windows works according to the guidance given by the autorun file. You can find autorun.inf file in your ‘C’ drive also. For example your CD/DVD drive software must contain autorun file to execute functions automatically.
Windows first execute autorun.inf file. Because of this reason, attackers place virus in this file, so that they can spread virus easily to entire system. mostly attackers place worm virus in autorun.inf file.
Can I delete autorun.inf file?
Yes. You can delete autorun.inf file. Nothing will happen to your pen drive or PC, if you delete autorun file. When you delete autorun.inf file from pen drive, Windows will not open pen drive automatically. Of course, you can access pen drive files by going in to my computer. It is good practice to remove autorun.inf file from pen drive.
How to Remove autorun virus from pendrive or PC
You can not remove autorun virus manually. Because autorun.inf file may contain system, hidden, archive and read-only attributes.
When you want to delete any file which has any one of these four attributes, first you need to remove those attributes from the file. You can change file attributes by using command prompt.
Here I am going to show you possible methods to remove autorun virus from pen drive or PC.
Method 1 : Create Duplicate autorun.inf file
This method may work for older versions of Windows. It will not work in latest versions. If you have latest version, you can skip this method.
Insert your pen drive into usb slot. Open pen drive. Right click on space. Create a new empty text document with the name “autorun.inf”. Save the document, it will ask you to replace existing autorun file. Click yes. Now you have replaced virus autorun file with empty autorun.inf file. You don’t have virus now.
Latest version of Windows will not overwrite the existing file, instead it creates file with file name autorun(2).inf.
Method 2 : Remove autorun virus by using command prompt
It is the best method to remove any type of virus including autorun.inf file.
Insert pen drive in to usb slot. Just go to my computer and note down your pen drive’s drive letter (C or D or E or F or G). Just see below screenshot, here ‘G’ drive is my pen drive’s drive letter.
Run command prompt as administrator. You can see How to run cmd as admin in windows 8 and windows 10. For older version of Windows, follow below procedure.
Go to start -> Go to Run -> Type cmd and hit OK -> Right click on Command Prompt and select “Run as Administrator. You will see command prompt window. Type,
Type G: and press enter
Type attrib -h -s -r -a *.* and press enter
This command removes hidden, system, read only and archiv attribute from all the files in ‘G’ drive. You can also use attrib -h -s -r -a autorun.inf to remove those attributes only from autorun.inf file.
Now type del autorun.inf and press enter it will delete the file. You can also manually delete the autorun file.
If you get any problem in this method, you can try the next method.
Method 3 : Delete autorun file in safe mode
Some times you may get “access denied” error after trying “attrib” command.
To solve this problem, just restart your system in safe mode. If you don’t know how to start system in safe mode,
Open your pen drive. Delete the autorun file. You can easily delete the file in safe mode. If you can not delete the file. Right click on autorun.inf file -> Click “Properties” -> Go to “Security” -> and Edit access permissions to “EVERYONE”.
Now restart your PC in normal mode and apply attrib and del command shows that in method 2.
Still if you see problem, then go for next step.
Method 4 : Use winrar and sdformatter
Open your pen drive with winrar. Copy all files from pen drive to your computer by leaving autorun.inf in the pen drive. Format the pen drive. You can use sdformatter to format pen drive instead window format option. Because this software even clears virus from your pen drive.
- Read : How to format USB | Tip to remove virus completely
- 2 Simple methods to remove adware from PC, chrome & mozilla
- How to remove malware from a computer with a free tool
Thanks for reading my tutorial about Remove autorun virus from pendrive or PC. If you like it do me favor by sharing it with your friends.