How to Remove PC Viruses Using CMD – Guide

There are many viruses, malware, and trojans that can damage your computer. These files can get into your computer through internet browsing, USB drives, installation of invalid or unknown software and phishing email links. Not only infected files can damage important operating system files. System files are the most important for an operating system and associated installed programs.

The lack of these files means that the programs can’t run as an operating system. Some viruses are able to steal your personal information and credit card details. If the loss is great, it’s important to protect your computer from such disasters. However, we all install antivirus software or use standard Windows security (in Windows OS) on our system to protect PC from these viruses. The antivirus scans the system for malicious files in real time and immediately notifies you when it finds these files to take action.

How to remove virus from computer using CMD

Cmd + R will open the Run dialog box and type “cmd” in the text field.

If you are in any other drive, like C:Users, then use the DOS command “cd ..” until you get “C:>”.

Please enter a valid code.

Now just type “attrib -h -r -s autorun.inf” and then press Enter. If there is no virus there, it will display “File not found -autorun.inf”, if there is any virus present, just type “del autorun.inf” and press Enter. Follow the same procedure for all other drives and finally, scan the computer for viruses. ..

Final note

This guide will show you how to remove PC viruses using the Command Prompt. If you have any questions or concerns, feel free to ask us in the comments below. Additionally, please share this guide with your friends so they can learn how to remove PC viruses too! ..