Go to Home Page


Advance Search

Tell A Friend



Sub Category:


How to remove autorun.inf from USB Drive

Can't Open USB Flash disk

FaqsAnti-Virus1/19/2009Printable Version: 'How to remove autorun.inf from USB Drive'

Delhi, [India]

Spreads by creating a copy of itself and starts by autorun.inf files. It is essential to remove the malicious and autorun.inf files not only from computers but also from the source, and that is the USB Drive. PreciseSecurity have created a procedure to delete the malicious files on infected drives.


• While the computer is still off;

• Plugin the USB Drive

• Insert the Windows XP CD-ROM into the CD-ROM drive. It must be the bootable Windows XP Installer

• Start the computer from the CD-ROM drive. It will start Windows Setup screen

• When the “Welcome to Setup” prompt appears.Press “R” to start the Recovery Console

• If asked “Which Window installation would you like to logon to” select the number. Type “1? then Enter, if only one installation of Windows is present

• Enter the administrator password, press Enter

• It will bring you to command prompt, C:\Windows>

• Proceed with the following command:

- Type d: (This is the drive letter of USB. It can be e: or f: defending on how many hard disk or cd drive is installed)

- Type attrib -h -r -s autorun.inf

- Type “edit autorun.inf” it will open DOS Editor and display contents as follows


Take note on the file that it called to open (in above example it is file.exe)

• Exit DOS Editor and return to command prompt, D:\>

• Delete the file that was called to open on DOS Editor
- Type del /f /a file.exe

• Delete autorun.inf file
- Type del /f /a autorun.inf

• Exit Recovery Console by typing exit.

Related Tags for 'How to remove autorun.inf from USB Drive' Autorun.inf, Recovery Console, USB Drive, Windows-XP, CD-ROM drive, Attrib, Harddisk, Command Prompt DOS Editor, USB Flash disk