Use the CMD command to remove viruses on Windows computers

Today viruses are becoming more "cunning", they can "penetrate" users' computers through Internet browsers, USB devices and even through the installation of applications. and software.

Once it has penetrated the user's computer, the virus can cause a variety of problems such as slowing down the computer operating system, even some viruses can "steal" user data. .

There are many ways to get rid of hateful viruses on your computer, users can use programs, anti-virus software, . Also, many unknown users can use CMD command can also Remove virus on Windows computer.

Use the CMD command to remove viruses on Windows computers Picture 1

Remove the virus on your computer using CMD

In fact, the Command prompt is a utility program that is used to access all system files. Also you can use CMD to remove viruses on your computer.

To remove the virus on your computer using Command Prompt, follow the steps below:

First click on Start, then enter CMD in the Search box, right-click the CMD icon and select Run as admininstrator.

Use the CMD command to remove viruses on Windows computers Picture 2

Now the screen of the Command Prompt window appears, the next step is to select the drive you want to remove the virus from.

Use the CMD command to remove viruses on Windows computers Picture 3

If you want to remove the virus on drive D, enter the following command into the Command Prompt and press Enter:

dir D: attrib -s -h / s / d *. *

Use the CMD command to remove viruses on Windows computers Picture 4

Note:

If you want to remove the virus on another drive, replace drive D with the drive name you want to remove the virus from.

Enter dir to display all content and files on your drive. At this point the Command Prompt will scan the selected drive and load all the files on your drive.

Use the CMD command to remove viruses on Windows computers Picture 5

If you see strange .exe files or any autorun.inf files, rename these files using the command:

(rename filename.extension new filename)

In addition, you can refer to the video tutorial on steps to remove the virus by CMD below:

Refer to some of the following articles:

  1. 9 most effective antivirus software for Windows today
  1. Windows Defender is disabled or inactive, this is a fix
  1. 9 tips to protect your computer safely from virus attacks

Good luck!

5 ★ | 1 Vote

May be interested

  • What to do if your computer has a virus?Photo of What to do if your computer has a virus?
    what should i do when i see the computer being infected? read the article below to learn how to respond when you see the virus message being detected on your computer.
  • 17 clear signs that your computer has been attacked by a virusPhoto of 17 clear signs that your computer has been attacked by a virus
    most users have the same opinion that they have installed anti-virus programs and software on their computers, so viruses can hardly attack their computers. however this is a wrong view. viruses are increasingly sophisticated, and they can invade and attack users' computers in many different ways.
  • Instructions for removing PUP.Tuto4PC virusPhoto of Instructions for removing PUP.Tuto4PC virus
    technically, pup.tuto4pc is not a virus, but it contains a lot of malware such as rootkits that can dig into your operating system, browser hijacking, .... the industry generally refers to pup.tuto4pc as a pup, or unwanted program.
  • How to remove the root virus ExtTag.exe / ExtTags.exePhoto of How to remove the root virus ExtTag.exe / ExtTags.exe
    exttag.exe and exttags.exe are malicious adware programs that are installed in addition to plugins (toolbars, extensions or add-ons) on your web browser to redirect you to other websites without have your permission or to display unwanted ads or popup windows on the website you visit.
  • Viruses transmitted from smartphones to computers appear in VietnamPhoto of Viruses transmitted from smartphones to computers appear in Vietnam
    malicious programs are often written to operate on a certain operating system, however, a newly discovered type of spyware (spyware) is attacking computers from mobile phones.
  • Computer viruses can infect through ... airPhoto of Computer viruses can infect through ... air
    a new study shows that people can transfer data between non-networked laptops via the air by using high-frequency audio signals.