How to Get Rid of a Virus on a Windows PC

By: Jonathan Strickland & Desiree Bowie  | 
Learning how to remove viruses from your computer can make alarming error screens a little less scary. Muharrem huner / Getty Images

­We all know malware is out there — applications that spy on you, corrupt your data, destroy your hard drive or give control of your machine to someone thousands of miles away.

Since there are many examples of malware in the wild, it may only be a matter of time before you become the victim of a malware attack. When that happens, you'll need to know how to get rid of a virus or any other type of malicious software that may be infecting your PC.

Advertisement

The most important advice we can give anyone who believes they have a computer with malware on it is this: Don't panic. Also, don't assume that you need to wipe your computer clean and start from scratch. Often, you can remove malware without having to erase everything else. You may lose some data in the process, but you probably won't lose everything.

Detecting a Computer Virus

First, you need to determine if your computer has a virus at all. Sluggish performance is a sign of malicious code. If your web browser suddenly looks different or automatically redirects to an unfamiliar site, that’s a good indication that malicious programs are at play.

Unstable behavior, such as frequent crashes, can also signal a problem. Additionally, if you try to access files and receive messages saying they're corrupted, that's another red flag.

Advertisement

If you suspect your computer has a virus, run antivirus software to identify and remove it.

­Antivirus software is practically a requirement for anyone using the Windows operating system. While it's true you can avoid computer viruses if you practice safe habits, the truth is that the people who create malicious apps and programs are always looking for new ways to infect computer systems.

A few malware variants will try to block you from downloading antivirus software. If that's the case, you may need to download the software on another computer and transfer it to disk or a flash drive.

If you don't have any antivirus software, now's a good time to purchase or download an application. There are several different antivirus programs on the market — some are free and some you have to purchase. Keep in mind that free versions often lack some of the nicer features you'll find in commercial products.

Advertisement

Removing Malware

Assuming your antivirus software is up to date, it should detect malware on your machine. Most antivirus programs have an alert page that will list each and every virus or other piece of malware it finds. Write down the names of each malware application your software discovers. (More on this in a bit.)

Many antivirus programs will attempt to remove or isolate malware for you. You may have to select an option and confirm that you want the antivirus software to tackle the malware. For most users, this is the best option; it can be tricky removing malware on your own.

Advertisement

If the antivirus software says it has removed the malware successfully, shut down your computer, reboot and run the software again. This time, if the software comes back with a clean sweep, you're good to go.

If the antivirus software finds different malware, repeat the previous steps. If it finds the same malware as before, you might have to try something else.

Two's a Crowd

If one antivirus program is good, two is better, right? Wrong. This type of software tends to use up a large percentage of the processing power of your computer system.

Running more than one antivirus program will slow your computer to a crawl and possibly cause it to crash. Not all antivirus programs are compatible with one another, which can make your computer even more unstable.

Advertisement

Advanced Tips for Computer Virus Removal

If you can't access your antivirus software or keep seeing the same malware pop up scan after scan, start your computer in Safe Mode. Many computer viruses store files in your Windows registry folder, which acts like a database of instructions and tells your operating system important information about the programs on your computer.

It can also tell viruses to activate as soon as the operating system loads. Starting your computer in Safe Mode allows you to work with your machine using only the core elements of the Windows OS.

Advertisement

Try running your antivirus software in this mode. If new malware is detected, you may have found a solution. Some malware exists solely to download and install other malware on your machine. Removing all these applications can significantly improve your system's security.

Research the Malicious Software

If your antivirus software can't remove the virus on its own, additional research is needed for manual removal. You've already written down the names of all the malware applications that your software discovered. Now it's time to research each of those files online using the same internet security firm that produced your antivirus software.

Different firms sometimes give the same virus different names, so using the same firm's resources ensures consistency. Most internet security firms list all the files associated with a particular virus and indicate where to find them. You may need to search extensively to locate each file.

Before deleting any files, save a backup copy of your registry folder. Accidentally deleting the wrong file can make it difficult or impossible to run your computer properly.

Now delete all the infected files associated with the malware on your list. Once that's done, reboot your computer and run your antivirus software again. Hopefully, nothing else will be detected.

Finally, update your login information for your various online accounts. Some malware includes keylogging software that can send your passwords and other information to a remote user. It's better to be safe than sorry.

Give Viruses the Boot (Disk)

Some antivirus software allows you to create a special boot disk. This disk can be invaluable when your computer is infected with particularly stubborn malware that prevents normal operation. The boot disk enables you to start your computer from a clean, secure environment, bypassing the infected operating system.

After creating a boot disk, reboot your computer with the disk in the drive. Your computer will read from the disk, load a limited operating system, and run a virus scan. This method can help you bypass the malware's code and disable it, effectively removing the infection and restoring your system to a functional state.

Advertisement

How to Avoid Computer Viruses

To avoid computer viruses on a Windows computer, follow these simple guidelines that mostly rely on common sense:

  1. Practice e-mail safety. Do not open strange email attachments or click on hyperlinks in e-mails from unknown sources. Virus programmers often use these tactics to distribute malicious software. Only click on hyperlinks if the sender provides a clear description of the link and its destination.
  2. Disable auto-launch. If your email client supports auto-launch, turn it off. This feature can automatically activate a computer virus just by opening an e-mail.
  3. Be cautious with messages. Be wary of hyperlinks in message boards, Facebook messages or instant messages. Pay attention to the source of the message and look for unusual signs like misspellings or odd sentence structures, especially if the sender usually avoids such errors.
  4. Avoid questionable websites. Refrain from visiting websites that are known for hosting malware, such as those related to software, music and video piracy or adult content. Modern web browsers often warn you if you attempt to access such sites — heed these warnings.
  5. Use pop-up vigilance. Pay attention to any pop-up windows while browsing the web. Be cautious of notifications claiming that you need to download the latest video driver or other software to view content. This is a common method for distributing malware.
  6. Perform regular maintenance. Run your antivirus or internet security software at least once a week. Ensure your software and operating system are up to date by regularly downloading updates and patches. Most antivirus programs update at least once a week as security firms add new virus information to their databases.
  7. Clear temporary files. Regularly clear your computer’s temporary files to prevent malware from exploiting them.

Advertisement

Worst-case Scenario

If you cannot delete a malware infection despite trying various methods, it might be time to perform a complete system wipe on the infected computer. This involves formatting your hard drive and reinstalling the operating system.

A complete system wipe is often a last resort because it will delete all of your information, including programs, settings and personal files. Therefore, it is crucial to back up any important, virus-free files before you start. You can use external storage devices or cloud services for this purpose.

Advertisement

Performing a system wipe can be time-consuming, as you will need to reinstall the operating system, update it, reinstall all your applications and restore your data. However, this method ensures that all traces of malware are removed, giving you a fresh start with a clean slate.

After a system wipe, it is essential to immediately install antivirus software and update it to the latest version to protect your newly restored system from future infections.

This article was updated in conjunction with AI technology, then fact-checked and edited by a HowStuffWorks editor.

Advertisement

Lots More Information

  • Academic Computing. "What to do if your computer is already infected with a virus." University of Minnesota. (March. 26, 2009) http://www1.umn.edu/adcs/guides/security/infection_cleanup.html
  • Dittrich, David. "Lifecycle: Preventing, detecting and removing bots." March 20, 2005. (March 19, 2009) http://searchsecurity.techtarget.com/tip/0,289483,sid14_gci1068906,00.html
  • Microsoft Security. "How to remove a computer virus." Microsoft. Dec. 31, 2008. (March 25, 2009) http://www.microsoft.com/protect/computer/viruses/remove.mspx
  • Robertson, Jordan. "How to tell, what to do if computer is infected." AP News. March 15, 2009. (March 17, 2009) http://hosted.ap.org/dynamic/stories/T/TEC_INSIDE_A_BOTNET_CHECKLIST?SITE=ILEDW&SECTION=HOME&TEMPLATE=DEFAULT

Advertisement

Loading...