• Linkedin
  • Reddit

Summary :

USB virus removal

It is annoying that the USB flash drive is infected by virus. Fortunately, you can remove the USB virus through some methods. Here, MiniTool offers you several USB virus removal guides and shows you how to recover missing or hidden data because of viruses.

Quick Navigation :

USB flash drive, a kind of portable data storage device, is widely used because of its tiny and light features. It is often used to store data, back up files, and transfer files. It is vital in the operations like making the installation media, creating Chromebook Recovery Utility, or creating Windows 10 Recovery Drive.

Therefore, it would be very confusing if the USB flash drive gets infected. After a USB drive is infected, multiple issues will occur. What are they? The section below will explore the question.

What Will Virus Do to the USB Drive

The virus is a self-replicating program, which can spread to other devices by attaching itself to other applications. A USB flash drive can be infected if it is connected to an infected computer.

Computer viruses are software codes that can’t physically damage computer hardware. Though the USB device can be used as a virus transmission media, the USB port itself won’t be affected by the virus.

Note: The virus won’t spread if you just plug the infected USB drive into a device. To spread the virus, the system needs to be turned on and the virus needs to be on the system.

The USB port hardware isn’t damaged or altered physically by the virus, but it hurts the computer’s capability of utilizing USB ports. Some viruses contain malicious codes that attack computer files and functionality.

The computer virus usually makes your computer act in an unexpected manner. In addition to that, it can drag your PC down, erase important files, encrypt files, hide files, change file extension to .locky or .encrypt, or even give hackers access to personal information.

Further reading:

Shortcut virus is one of the most common types of USB viruses. It comes in two forms.

  1. Computer virus: It can replace the folders on the desktop and the file icons on the device with shortcut icons that won’t lead you to the actual file.
  2. USB flash drive virus: It takes all your files and attributes them as hidden or puts them in a hidden folder. It also generates a shortcut.exe application file. Once you open this file, the virus will be released and activated into the computer that the USB drive is connected to.
best duplicate file finder thumbnail
9 Best Duplicate File Finders Help You Find Duplicate Files

Duplicate files can consume much disk space, which may lead to low disk space error. Well, there are 9 best duplicate file finders to detect and remove them.

Read More

USB Virus Removal Methods

In this section, several methods to remove USB virus will be illustrated. You can delete virus from the USB drive with Windows built-in programs or third-party USB virus removal tools.

Method 1: Remove USB Virus via CMD

Command Prompt is an embedded program in Windows 10 that can help you remove viruses from the USB flash drive. It is a free USB virus remover. With Command Prompt, you can delete viruses just with some command lines.

Step 1: Connect the infected USB flash drive to your computer.

Step 2: Run Command Prompt as administrator.

  • Type cmd in the search box.
  • Right-click on Command Prompt under Best match.
  • Click on Run as administrator in the pop-up menu.

run command prompt as administrator

Step 3: In the elevated window, type L and hit Enter. The L stands for the drive letter of your USB flash drive that can be found in the Disk Management or File Explorer.

Step 4: Type dir /w/a and press Enter. By doing so, a list of files inside the USB drive can be opened. You can find any unfamiliar files from the list. Most viruses have names like “svchost.exe”, “Ravmon.exe”, as well as “Autorun.inf” and “Heap41a”.

Note: The method to remove different viruses varies. To remove the shortcut virus from USB drive, you can execute the following commands. If the steps below don’t work, replace the autorun.inf with another virus extension or try other methods to remove the USB virus.

Step 5: Type del *.lnk or del autorun.inf and hit Enter.

Step 6: Type attrib -h - r -s  /s /d L:\*.* and hit Enter. Likewise, you are also required to replace L with your USB drive letter.

Method 2: Run a Virus & Threat Scan

You can run a virus & threat scan via Settings. This is also a Windows-embedded virus cleaner. It is very easy to remove viruses via this tool.

Step 1: Open Settings by pressing Windows and I keys, and then navigate to the Update & Security section.

Step 2: Click on Windows Defender and Open Windows Defender Security Center.

Open Windows Defender Security Center

Step 3: In the next window, click Virus & threat protection.

Virus and threat protection

Step 4: Click the Advanced scan button.

Advanced scan

Step 5: Click on the Custom scan and Scan now options to continue.

Scan now

Step 6: In the prompted window, choose your USB drive and click Select Folder.

Select Folder

Step 7: Then you can view the scan process. You just need to wait patiently until the process ends. After that, follow the on-screen instruction to finish the USB virus removal operation.

view the scan process

Also read: Thumb Drive VS Flash Drive: Compare Them and Make a Choice

Method 3: Run Microsoft Safety Scanner

Microsoft Safety Scanner can also scan USB drive for viruses. It can detect and remove USB viruses including spyware and other potentially unwanted software on your PC. Here’s how to run it.

Tip: Microsoft Safety Scanner is SHA-2 signed exclusively since November 2019. To run Safety Scanner, your device must be updated to support SHA-2.

Step 1: Connect USB drive to your PC and then click here to move to the official website of Microsoft Safety Scanner.

Step 2: Click a link based on your computer specs to download Safety Scanner.

download Safety Scanner

Step 3: After the download finishes, open the setup file. Accept the license agreement and click Next.

accep all the terms of the preceding license agreement

Step 4: Click Next.

Click Next

Step 5: In this next window, choose the Customized scan option and click Choose Folder. In the pop-up window, select your USB drive and click Select Folder. Click Next in the Scan type window to begin the process.

choose a Scan type

Step 6: Now, Microsoft Safety Scanner scans your USB drive for the virus.

scan the chosen device

Method 4: Use Third-Party Anti-Virus Software

You can make use of third-party anti-virus software to remove USB virus as well. When you search USB virus removal tool online, you will find a list of programs. Among them, Shortcut Virus Remover, USBFix Free, USB Virus Remover, and Shortcut Virus Fixer are highly recommended.

You can download and install one of these programs on your PC and then scan for USB viruses.

Method 5: Format the Infected USB Flash Drive

Formatting the USB drive can remove all the existing content including personal data, viruses, and malware from the drive. Then you will get a clean and virus-free USB drive. Though the formatting process causes data loss, you can recover files from a formatted hard drive after removing the USB virus.

Tip: What does formatting a hard drive do? To obtain more details, please read this post.

MiniTool Partition Wizard can format devices like external hard drive, SD card, and USB flash drive into file systems including FAT32, exFAT, NTFS, EXT2/3/4, or Linux Swap. Download and install MiniTool Partition Wizard, and then follow the steps below to format USB drive.

Free Download

Step 1: Connect the USB drive to computer.

Step 2: Run MiniTool Partition Wizard to enter its main interface.

Step 3: Right-click on your USB flash drive and click Format.

click format

Step 4: In the elevated window, set partition label, file system, and cluster according to your demands. Then click OK to save the changes you’ve made.

Step 5: Finally, click Apply to execute the operation.

format USB drive via MiniTool Partition Wizard

Method 6: Create a BAT File

The shortcut virus in the USB drive can be removed by running the BAT file. How to create and run the BAT file? The following steps will show you how.

Step 1: Insert the USB drive into your PC.

Step 2: Launch Notepad on your computer.

Step 3: Copy and paste the codes below into the Notepad.

Note: You should replace H with your USB drive letter.

@echo off
attrib -h -s -r -a /s /d H:*.*
attrib -h -s -r -a /s /d H:*.*
attrib -h -s -r -a /s /d H:*.*
@echo complete

Step 4: Save the file with an appropriate name and end the file text with .bat.

Step 5: Double-click the .bat file on the desktop and wait for the finish of the process. Now, the shortcut virus on your USB drive should be removed.

Method 7: Delete Suspicious Keys via Registry Editor

Deleting suspicious keys can also remove USB viruses. Here’s how to do that.

Step 1: Press Windows and R keys to open the Run window, and then input regedit and hit Enter.

open registry editor

Step 2: In the Registry Editor window, navigate to the destination by following the path below.

HKEY_CURRENT_USER > Software > Microsoft > Windows > CurrentVersion > Run

Step 3: Move to the right side of the window and find suspicious keys like odwcamszas, WXXKYz, ZGFYszaas, and OUzzckky from the list.

Step 4: Right-click on the suspicious key and choose the Delete option in the pop-up menu.

click Delete

Recover Missing Data

As mentioned earlier, virus can remove important files and hide files. Moreover, you may suffer from data loss while formatting USB drive. Hence, you need to recover data after removing the USB virus.

The Data Recovery feature of MiniTool Partition Wizard can help you recover missing/deleted/formatted data. This program can recover data on the RAW partition and internal/external hard drives as well.

Free Download

Step 1: After connecting USB flash drive to your computer, launch MiniTool Partition Wizard. Click on Data Recovery on the top bar.

click data recovery

Step 2: In the next window, choose the connected USB drive under the Hard Disk section and click Scan.

choose USB drive and click scan

Step 3: You can view the scan process in this window. After the process ends, click the Show Lost Files tab and choose the files you want to recover. Then, click the Save button to go on.

choose files to recover and click scan

Step 4: You are required to choose a destination for the recovered data. After that, click OK to save changes. Then follow the prompted instruction to finish the operation.

Warning: You’d better not save the recovered data on the original drive. Otherwise, the lost data could be overwritten.

choose a destination

Tips for Preventing Virus from the USB Drive

To keep USB drive from viruses and protect data in the device, you need to take some measures. Several tips on stopping virus from the USB drive are summarized as follows.

  • Write-protect the USB flash drive: A write protecting USB drive indicates that no data can be written to the drive. You can only view files in the drive. You need to note that not all the USB drives have a physical write-protect switch.
  • Keep only one antivirus program: As multiple antivirus tools consume many resources, compete over the virus, kill each other, and even cause performance issues, you are recommended to keep only one USB virus cleaner.
  • Be alert to the unknown websites: You may get a USB drive virus from the Internet or from sharing files and from other PCs. Besides, your USB drive can be infected because you click on random links online or download files from dubious websites.
  • Make a backup of USB files: Last but not the least, back up the files in your USB drive to other places.

If you are seeking for a USB virus removal guide, this post is what you need. It illustrates how to remove USB viruses via several USB virus removers. Additionally, it also shows you how to recover data after the USB virus is removed. Click to tweet

Conclusion

This USB virus removal guide mainly illustrates how to remove USB viruses, recover missing data due to virus attack, and prevent virus from the USB drive. If you don’t know how to get rid of virus from the USB, this full tutorial is strongly recommended.

For any thoughts on USB virus removal, please share with us in the following comment area. You can directly contact us by sending an email via [email protected] if you encounter any issues while using the MiniTool software.

USB virus Removal FAQ

Can a USB have a virus?
The answer is for sure. If you plug a USB drive into an infected computer, it will have viruses too. In addition, the drive will spread the virus onto other PCs if the AutoRun-type feature is enabled on these devices.
Can a virus disable USB ports?
Yes, the USB ports can be disabled by a virus. While the USB port hardware will not physically be damaged or changed by the virus, the computer’s ability to use USB ports could be affected. Virus-infected drivers may have issues or stop working. Fortunately, if the drivers are restored to a virus-free state, the USB ports will work again.
Does formatting a USB remove viruses?
Yes, viruses in the USB drive will be removed by formatting. As you know, formatting USB drive will delete all the existing content in the device like personal data, viruses, or malware.
How to remove virus from USB drive without deleting files?

You can remove virus from USB drive without deleting files with the following methods.

  1. Use CMD to remove shortcut virus.
  2. Create BAT file.
  3. Tweak registry files.
  4. Make use of anti-virus software.
  • Linkedin
  • Reddit

User Comments :