How To Remove Computer Viruses Using CMD

Posted by
 newToday Virus can penetrate in our computer through numerous ways like through Internet Browsing, From USB devices and also by installing some infected software.

These viruses make our computer operate slow and also some of the dangerous viruses can steal our data. These viruses can also contaminate our operating system too. So the better choice is to remove these viruses as soon as possible.

There is the unconventional method to remove a virus from a computer system which includes antivirus programs and firewalls etc. But today we are discussing here a method by which you can easily Remove Computer Viruses Using Cmd. The method is simple and straight. Just read out the below post to proceed.

How To Remove Computer Viruses Using CMD

Actually, the command prompt is a utility program that has an access to reconstruct all the system files, and in this method, we will be using the same access of cmd. This method works on attributes removing which can be one reason of virus. As the most probable reason for the virus to come into your computer is through USB device. So this method works perfectly on USB to remove its viruses and secure your computer.

Steps To Remove Computer Viruses Using Command Prompt:

Firs of all click on Start and type cmd. Now right click on a the cmd icon and select run as administrator. Now command prompt window will open, now select your drive which you want to remove a virus.

Let the drive be D. So now type “dir D: attrib -s -h /s /d *.*” Now type  then press enter.

Now the command prompt will explore your selected drive and will load all the files on your drive.

Now if you notice and unusual file.exe and any of autorun.inf then rename it with the command(rename filename.extension new filename)

That’s it now you can access your drives without affecting from viruses.

So above is the-the method for How To Remove Computer Viruses Using CMD Command Prompt. By this method, you can easily remove even malicious viruses that can corrupt your operating system too. This method is very cool and efficient and doesn’t require any software just only a simple utility program of your system and simple cmd tricks. 

Posted by Shubham ;)


  1. Hi man my father came with a laptop and it have another admin and it have a password and he don’t know I said shall I reset and he said no what should i do


  2. man just a quick one im trying the cmd one for deleting the viruses
    but the cmd seems to freak out because it just keeps on loading hundreds of files and never stops
    im not sure what to do please help me ive got windows seven thanks man and thanks for all your awesome stuff on your website


  3. Is there a short way to just serching the “autorun.inf” or something like that, when i try your way the cmd keep searching untill one drive and cmd can’t keep all the text so some ( allmost everything, depends on used space on drive ) of the text is can’t be seen again


  4. Bro i have very dangerous virus which automatically installed avast antivirus. After few days of installation the laptop starts to show black screen with just the pointer on it. I tried various methods to start the laptop one of them also works so i started removing the virus with the avast. I have not read the infected files. I just deleted all the infected files and now i was trying to use your method to remove virus using command prompt and then i noticed that the cmd prompt is not opening and then it shows that the command prompt is uninstalle.

    I need urgent help!!
    Its very urgent!!



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.