The presence of viruses in USB drive are an regular problem, especially when moving files between devices. If you’re thinking how to get rid of viruses from your pendrive You’re not alone. This guide will assist you to identify and eliminate viruses from your pendrive, without harming your data.
It’s an auto-run virus or shortcut virus or malware, use this easy and effective procedure to cleanse your USB device like a professional.
Why Pendrives Get Infected

Before figuring out how to eliminate virus from pendrives be aware of the reason they are infected:
-
Plugging into unprotected systems
-
Files downloaded from unidentified sources
-
Transferring information from cyber cafes or public computers
-
In the absence of anti-virus software
After infection, the pendrive might begin to show documents as shortcuts or hide folders or even corrupted data.
How to remove viruses from Pendrive with 3 proven Methods
1. Using Command Prompt (CMD) – No Software Needed
This method is secure and won’t cause the deletion of the original files.
Steps:
-
Connect your pendrive to the computer
-
Hit Windows + R and enter
cmdand press Enter -
Within the CMD window in the CMD window, select:
blast
attrib: -h -r –s * :\*. *(Replace
F:by your pendrive’s drive’s letter) -
Press Enter
This will allow you to unhide your files, and also remove shortcut virus.
2. Scan Using Antivirus Software
It is possible to use trusted anti-virus tools, like:
Steps:
-
Place the USB drive
-
Open-source antivirus software
-
Select “Scan External Drive”
-
Eliminate or quarantine any threats that are detected.
This technique is perfect for the removal of malware that is deep.
3. Format the Pendrive (Last Resort)
If there’s no solution and the data isn’t crucial you can format your pendrive.
Steps:
-
Right-click the pendrive on “This PC”
-
Click Format
-
Choose FAT32 or exFAT
-
Click Start
Warning: This erases all information. Save important files before formatting.
Bonus Tips – Prevent Future Infections

-
Do not connect USB drives into untested systems
-
Install an live-time antivirus on your computer
-
Always check the your USB prior to opening it.
-
Remove the the autorun feature in Windows settings
Learn More
For more security tips for digital devices, check out our Tech section on ArtKerala.
Also, take a look at the Microsoft official manual to the protection of USB drives..
Final Words
You now are aware of how to eliminate virus from your pendrive efficiently using a variety of secure methods. Pick the one that works best according to the type of virus and the data you need. Remember: Prevention is better than cure in the case of USB malware attacks.

