You are on page 1of 3

How To Remove Shortcut & Autorun Virus From Pen Drive

Complete Guide [UPDATED]

Every Computer user has came across a pen-drive that is badly affected by a virus that creates shortcuts in
pen-drive and hides the rest of the file after creating autorun.inf in the root of pen-drive or USB
removable disks. Usually such files are marked with attribute: hidden, read-only, system files.

Also Read How To Prevent Such Virus Forever [BEST WAYS]

The files in root are usually of the names autorun.inf, newfolder.exe, regsvr.exe and more.

To remove such virus follow the steps

1. Open administrative command prompt.


2. Go to your pen-drive drive letter. Suppose your USB disk is G:. Type G: and press Enter
3. Now type the below command to remove system file, hidden read-only attribute
attrib -s -h -r /s /d *.*
4. Delete Autorun.inf from USB – Disk.
5. This makes all files visible and you are now able to delete them. Usually there are hidden folders which
contain your files, cut them and paste at secure location like in your computer and delete those hidden
shortcuts and hidden folders.
6. del *.lnk
7. Now to remove the executable and shortcuts from pen-drive, Check the size of any one such virus file
and search for the files in windows explorer for the files of same type and same size, all be same.
8. Delete suspicious files, on error check task manager for process with same name or any suspicious
process and end it.
9. Open Explorer and right Click on Pen-drive, Click Open.
10. Search with Advance Search for all files of same size in Pen-drive.
11. Select All and Delete

NOTE 1: This is based on your understanding to remove all such files, like sometimes in Windows XP
era file types of .exe .lnk .scr and more were created by the virus . So take a note to delete all such files
by the step 5, step7, step 7.

NOTE 2: Never Open Removable disk by double click, Disable Autorun Of Disks For Your Computer.

NOTE 3: It’s a benefit for Linux user to use such pen-drives without fear as these won’t affect Linux
system since executable of windows and Linux are different, so if you use one such system with Dual
boot or Linux only , prefer opening first on Linux only to avoid infection.

Also Read:

 Cyber World Words


 Hacking 101 : Hacking for Beginners [GUIDE]
 How to grab IP Address of all websites on a URL
 How to Hack Linux root Password ( Part 1 )
 DVWA : Command Execution Vulnerability

You might also like