Destroy the autorun virus in USB or on PC with 4 simple ways
What is Autorun.inf file?
Users may have caught the autorun.inf file in USB flash drives or on a computer drive. This is not really a virus. This file has an automatic executable installation file and some other information related to the user's device. When plugging the USB flash drive into the USB slot, Windows will first execute this autorun file. Windows works according to the instructions of the autorun file. In addition, users also see these files in the computer C drive. For example, the CD / DVD drive software must contain an autorun file to perform the automatic function.
Because Windows will perform these autorun.inf files first, some hackers take advantage of this to install the virus into the autorun file so that it can spread the virus easily to the entire system. Normally they will install the worm virus, or worm, into the autorun.inf file.
- Differentiate viruses, trojans, worms and rootkits
Can autorun.inf files be deleted?
Yes, you can delete the autorun.inf file and not cause any problems with the USB or PC. When removing the autorun.inf file from Windows USB drive, it will not automatically open USB when plugged into the computer. Of course, you can access files in USB by clicking on My computer . This is a good way to remove autorun.inf files from USB.
Users cannot remove autorun virus manually. Because the autorun.inf file can contain system properties, hidden, stored and read-only.
When you want to delete any autorun file that has one of the four attributes, you first need to remove the properties of these files, then change its properties using the Command prompt.
- Instructions for changing file attributes with the Attrib command
How to remove autorun virus from USB or PC
This article will guide you 4 ways to leave the autorun virus from USB or PC.
Method 1: Create a copy of the autorun.inf file
This method may work for older Windows versions, it will not work in the latest versions. If you are using a recent version of Windows like Windows 8 and Windows 10, skip this method.
Plug the USB into the computer slot, then open it and right-click the blank space to create a new blank text document named " autorun.inf ". When saving this file, the system will ask to replace the existing autorun files, click on Yes . You have now replaced the autorun virus file with an empty autorun.inf file and no virus.
The latest version of Windows will not overwrite an existing file, instead it will create a different file than the file name is autorun (2) .inf. So above we note that you do not apply this method to the new Windows version.
Method 2: Remove the autorun virus using the Command Prompt
This is the best method to remove viruses including autorun.inf files. Plug the USB into the computer, then access My computer and record the USB drive letter (C or D or E or F or G). For example, in the USB drive post, the drive letter is G, see the illustration below.
Run Command Prompt with admin rights. You can refer to the article How to Open Command Prompt under Admin on Windows 8 and 10. For older Windows versions, follow the steps below.
Go to Start -> Run to -> type cmd and click OK -> Right click on Command Prompt and select " Run as Administrator" . In the Command Prompt window, type the following line:
Type G: and press enter
Type attrib -h -s -r -a *. * And press Enter .
This command will delete hidden, system, read-only, and archive properties from all files in the 'G' drive. You can also use attrib -h -s -r -a autorun.inf to remove attributes from the autorun.inf file. Now type del autorun.inf and press Enter to delete the autorun files. In addition, users can also delete these files themselves.
If you encounter any problems while executing this method, you can try the next method.
Method 3: Delete the autorun file in Safe Mode
Sometimes, the user may experience an ' access denied ' error after using the "attrib" command.
To solve this problem, you just need to reboot the system in Safe Mode. If you don't know how to boot the system in safe mode, see the articles below:
- Enable Safe Mode in Windows 7
- Enable, use, and disable Safe Mode in Windows 8
- Summary of several ways to start Windows 10 in Safe Mode
Once in Safe Mode, open USB and delete the autorun file. Because they are in Safe Mode, users can easily delete them. In case it is not possible to delete the autorun file. Right-click the autorun.inf file -> Click " Properties " -> access the " Security " -> and adjust the access to " EVERYONE ".
Now restart the computer in normal mode and use the attrib and del command in method 2. If the above method still cannot remove the autorun file, you can consider the final method.
Method 4: Use winrar and sdformatter
Open USB with winrar, copy all files from USB to computer to delete autorun.inf. To format USB, you can use sdformatter to delete all viruses from your USB.
See more:
- Removing shortcut virus on USB has never been this simple
- "Great way" Autorun virus removal by hand
- Use the CMD command to remove viruses on Windows computers
You should read it
- Eliminate autorun virus hidden in USB drive
- Keep your computer safe when attaching USB
- New virus outbreaks occur via USB
- Prevent Autorun.inf from infiltrating your computer via USB
- Small antivirus programs for USB
- Top 10 best USB protection software today
- No need to use an antivirus program, this is how to get rid of the virus on your computer
- How to fix when Facebook is infected with virus
May be interested
- Download SpyBot Search & Destroy 2.8.68.0spybot - search & destroy is a free and powerful anti-spyware tool that helps protect you and your device from online threats.
- Small antivirus programs for USBthe list below is 10 compact antivirus software, specifically designed to prevent any type of usb worm.
- The shortcut virus removal has never been this simpleshortcut virus has become one of the 'popular' problems for computer users. in fact, this is not a virus but a vbs script. when you plug the usb drive into your computer or laptop to open these files and folders, you can see only the shortcut icons that cannot be opened.
- Virus removal shortcut in USBvirus removal shortcut in usb. to destroy the virus creating the shortcut we will use a software called usbfix, this is a famous antivirus software in usb that is quite famous and very safe so you can safely use it.
- Many 'victims' have not been able to kill YM virus properlyalthough the hanoi university of technology bkis network security center insists on updating 9 'made in vietnam' worms into the latest bkav version, many people still cannot destroy them. the reason is that the procedure & quitting has not been done properly
- Revealing a new variant of computer virus can destroy itself when detectedaccording to security researchers at cisco, a new type of malware called rombertik has just been discovered that can destroy itself important data stored in windows system files on the master boot record.
- New malware appeared to take advantage of COVID-19 to wipe out the computer and overwrite the MBRwhile the corona virus is raging all over the world, some hackers have quickly developed malware to destroy infected systems by wiping everything out, or writing on the master boot record (mbr) of the machine. count.
- 17 clear signs that your computer has been attacked by a virusmost users have the same opinion that they have installed anti-virus programs and software on their computers, so viruses can hardly attack their computers. however this is a wrong view. viruses are increasingly sophisticated, and they can invade and attack users' computers in many different ways.
- How to Destroy an Old Computerif you have an old and dusty computer on your hands, you may be looking for a way to destroy it to keep your information safe or to get it out of the hands of you. the way you destroy the old computer will depend on your intentions for it...
- 3 ways to scan Windows 10 system-wide viruses with Microsoft Defenderwindows 10 comes with microsoft defender security software built in. this software regularly checks and periodically scans to detect, prevent and destroy viruses, malware ... from entering your computer.