How To Remove Virus From Computer Using CMD

Sponsored Links:

How To Remove Virus From Computer Using CMD

You can remove virus from your computer using CMD.

CMD is very useful, and it can even help you get rid of computer viruses. here’s how to remove computer virus using Command prompt

The word ‘virus’ always sounds painful, a virus is something that infects your computer. Virus can enter your computer from various sources like USB/Flash drives, external media and through the internet. There are many software available on the internet which claims to protect your computer against major virus attacks.

What if I tell you that you can actually remove computer virus without installing any antivirus solution? This is possible, thanks to the command prompt. CMD is very useful, and it can even help you get rid of computer viruses. Most of us grapple with the virus like autorun.inf, newfolder.exe, randomname.ext, etc.

How To Remove Virus From Computer Using CMD

Viruses can hide itself from you and it can be found inside files, programs and almost anything that you download from the internet. Therefore, here is an easy trick that will help you to remove computer virus using Command prompt.

 

1) Open CMD (Command Prompt) on your windows computer and run it as an administrator (Right Click on CMD and then Run as Administrator)

CMD (Command Prompt)

CMD (Command Prompt)

2) Now type the name of the drive, for example, you need to scan drive D: then type D: and press enter.

CMD (Command Prompt)

CMD (Command Prompt)

Sponsored Links:

3) Users need to type ‘attrib‘ and then hit enter. This will list all the files inside the current drive, in the below image you can see the autorun.inf virus listed

CMD (Command Prompt)

CMD (Command Prompt)

4) Here users need to type in the following command ‘attrib -r -a -s -h *.*‘ and then press Enter. This command basically removes the Read Only, Archive, System and hidden file attribute from all the files

CMD (Command Prompt)

CMD (Command Prompt)

-r is for removing the read-only files
-a is for removing the archive file
-s is for removing the system file
-h is for removing the hidden file
*.* for all the files with all different types of file extensions

5) After removing the attributes, it’s time to remove the file. Now type in del autorun.inf and then hit Enter.

CMD (Command Prompt)

CMD (Command Prompt)

This is how you can remove the virus using a command prompt if you want to remove a virus from USB drive, then just follow the same procedure, but make sure to change the name of a drive as mentioned in number 2 step.

Hope you like the article, share with others also.

Join The Forum, Refer A Friend And Get Free #10,000 Per 15 Friends Referred By You...
JOIN NOW

Ads:

About Abuku Orode 663 Articles
My name is Abuku Orode, I am a full time blogger and article writer. I make research on the best, possible and legal way to enhance your tech life, finance and other survival tips and make them available here on Cashrange. My goal is to show you what works for me in the hope that it will work for you too. Best Regards [Cashrange]

Be the first to comment

Leave a Reply

Your email address will not be published.


*


Comment moderation is enabled. Your comment may take some time to appear.