Windows Antivirus

How to Get Rid of a Virus on PC

All of our content is written by humans, not robots. Learn More
By
&
Aliza Vigderman
Gabe TurnerChief Editor
Last Updated Jan 2, 2024
By Aliza Vigderman & Gabe Turner on Jan 2, 2024

Your PC has slowed down, your email is sending out 100 messages a day, and programs are opening up that you’ve never seen before. It’s pretty obvious: Your PC has a virus, but no, it’s not the end of the world. Here’s how to get your Windows computer back to normal.

How to Get Rid of Viruses and Malware on a PC

If you’re sure that a virus came from a specific file or folder, you can delete the virus manually. Otherwise, use Windows’ built-in antivirus or third-party antivirus software for Windows.

Avast Antivirus - No Viruses or Malware Found
Avast Antivirus – No Viruses or Malware Found

Manually

  1. Right-click on the malicious file or folder in File Explorer.
  2. Select Scan With Microsoft Defender.

Windows Security

Using Windows Security, Microsoft’s included antivirus software, you can perform either a quick scan of virus hotspots or an advanced scan of specific areas you select. Here’s how to run a quick scan:

  1. Open Quick Start.
  2. Click Start.
  3. Click Settings.
  4. Click Update & Security.
  5. Select Windows Security.
  6. Select Virus & Threat Protection.
  7. Under Current Threats, select Quick Scan / Threat History.
  8. Click Scan Now.

For an advanced scan, follow these instructions:

  1. Open Quick Start.
  2. Click Start.
  3. Click Settings.
  4. Click Update & Security.
  5. Select Windows Security.
  6. Select Virus & Threat Protection.
  7. Under Current Threats, select Scan Options / Threat History.
  8. Click Run A New Advanced Scan.
  9. Choose the type of advanced scan you want to run.

You have several options for the type of advanced scan you want to run:

  • Full scan: This type of scan only checks the files and programs that are running on your PC at the time of the scan.
  • Custom scan: This type of scan only covers specific files and folders that you’ve selected.
  • Offline scan: If you think your PC has malware but no other scan has detected it, do an offline scan, which uses the latest threat definitions.1

NOTE: Microsoft Defender Offline scans restart your device and take around 15 minutes, so don’t perform them if you need to use your PC.

Learn more about how to run a virus scan.

Antivirus Software

Windows Security has its limitations, which we detail below. Most PC users will want to use third-party antivirus software to fill in the gaps. If that’s the case:

  1. Open your antivirus app.
  2. Do a full scan. That process will look different depending on the app you use.
  3. Follow the prompts to remove the virus.
  4. Schedule future scans.
AVG - First Scan Invitation
AVG Antivirus – First Scan Invitation

Free Virus Scanner

Maybe you don’t feel like investing money in antivirus software. There are multiple free antivirus programs that you can use to remove a virus on your PC. Here’s how:

  1. Download and install a virus scanner.
  2. Turn off your internet.
  3. Restart your PC in safe mode.
  4. Delete any temporary files.
  5. Run the virus scanner.
  6. If the scanner finds a virus, delete or quarantine it.
  7. Restart your PC normally.

When to Seek Professional Help

Sometimes, antivirus software doesn’t solve your issue. If you’ve gone through the above steps and still have a virus, it’s time to call a professional.2 Like when you get lost driving, there’s no harm in asking for directions!

What Is a Computer Virus?

We know what viruses can do to PCs, but what is a computer virus, really? In sum, a computer virus is a malicious program that attaches itself to legitimate programs, so it can delete or rewrite system files when the user executes the infected program. While that program may continue to function normally, the virus can corrupt or overwrite it in some cases.

How to Tell if Your PC Has a Virus

Not sure if your PC has a virus or not? Look for these key signs.

Signs of a Virus

  • Slowdowns
  • Unresponsive programs
  • Change of homepage
  • Trouble logging in to antivirus or anti-malware sites
  • Odd emails
  • Frequent pop-ups
  • Email account sending emails en masse
  • Random programs you don’t recognize starting up on your computer
  • Passwords changing without your knowledge

Are Other Devices Infected?

Similar to medical viruses, computer viruses can spread from your PC to your other devices, especially if you don’t have a firewall protecting your network.3

Can Your PC Get Viruses Through Emails?

Unfortunately, one way that PCs can get viruses is through emails, along with other areas that we’ll go over below. That’s why it’s important to check emails for phishing, a process that has people give hackers their credentials through social engineering. Phishing emails resemble legitimate emails so that people click on the links or attachments, handing hackers their usernames and passwords. Unfortunately, this is a way that viruses can spread, so your email inbox should include anti-phishing software to block these illegitimate messages.

Tip: One sign that an email is a phishing email is that it doesn’t use your name, but a generic title like Sir or Madam.

Anti Phishing Protection
Anti Phishing Protection

How to Protect Your PC From Viruses

Antivirus software isn’t enough on its own to protect your PC from viruses. These are a few digital safety practices that give you the best chance of staying virus-free:

  1. Avoid phishing. Like we said earlier, don’t click on any links, attachments, emails, or messages that seem suspicious.
  2. Back up your files regularly. In case you get a virus that holds your files hostage, like ransomware, be sure to back up your files in encrypted cloud or local storage.
  3. Use a different browser for Java and Flash. Java and Flash are notorious for scams, so if you must use them, we recommend doing so in a dedicated browser.
  4. Block pop-ups. Pop-ups can be a form of adware that sells your data for targeted advertising. Learn how to remove adware.
  5. Turn on SmartScreen. If you use Microsoft Edge as your web browser, be sure to turn on SmartScreen, which protects you from phishing and malware. If you haven’t touched your browser’s settings, SmartScreen should be on by default, but if you have, here’s how to turn it back on:
    1. Open Microsoft Edge.
    2. Select Settings & More.
    3. Click Settings.
    4. Click Privacy & Services.
    5. Scroll to Services.
    6. Turn on Microsoft Defender SmartScreen.
  6. Use firewalls. For additional protection against viruses and computer worms, select antivirus software with a firewall, or purchase one separately.
  7. Turn on UAC. UAC stands for User Account Control, and it means that the administrator account will need to OK any changes to your PC. This will prevent a virus from making any changes without your knowledge or consent. To turn on UAC:
    1. Swipe up from your PC’s right-hand side.
    2. Click Search.
    3. In the search box, type in “uac.”
    4. Click Change User Account Control Settings.
    5. Turn on UAC.4
  8. Clear your browsing history and cache. If you’re not using a VPN, which hides your browsing history, clear your browsing history and cache manually. You should do this even if you use incognito mode, which merely hides your browsing history on your PC itself (compare VPNs vs. incognito mode here to learn more). Nevertheless, here’s how to delete your web history on a PC:
    1. Open Internet Explorer.
    2. Click Tools.
    3. Click Safety.
    4. Click Delete Browsing History.
    5. Select what you want to delete.
    6. Click Delete.5
  9. Update software automatically. Updates to your PC contain the latest security patches and database additions, so set them to occur automatically at certain times that you select. Again, automatic updates are the default on Windows, but if you turned them off previously, turn them back on manually:
    1. Click Start.
    2. Click Run.
    3. Type in “wscui.cpl.”
    4. Click OK.
    5. Click Automatic Updates.
    6. Choose Automatic.
    7. Select the day and time you want the updates installed.
Kaspersky Antivirus App Home Screen
Kaspersky Antivirus App Home Screen

How Viruses Get on PCs

Emails aren’t the only way that viruses can get on PCs. They can also travel through:

  • Email and text attachments
  • Social media scam links
  • Internet file downloads
  • App downloads

What About Windows Defender?

Let’s talk more about Windows’ built-in protection against viruses, Windows Defender (also called Microsoft Defender Antivirus or Windows Security). Windows Defender provides protection against:

This includes detection within cloud storage, web browsers, apps, and email services and comes standard on all Windows 10 machines. However, Windows Defender isn’t a one-stop shop for protection against viruses. It lacks endpoint protection and response plus automated investigation and remediation, so many pair it with either Microsoft Defender for Endpoint or antivirus software from a third party.

Recap

Now that you know everything about removing PC viruses, you can learn more about antivirus software in general, including how antivirus works, how much antivirus costs, and whether you still need antivirus. Getting rid of viruses on your PC should only take a few minutes, so you can have your computer running normally in no time.

Frequently Asked Questions

We’re not done just yet! Here are the questions we get the most about removing viruses from your PC and beyond.

  • How do you take viruses off your computer?

    To take viruses off your computer:

    1. Open your antivirus app.
    2. Click Scan.
    3. Follow the prompts; the antivirus app should remove or quarantine the infected files from there.
  • How do I get rid of a virus on Windows 10?

    To get rid of a virus on Windows 10:

    1. Click Start.
    2. Click Settings.
    3. Select Update & Security.
    4. Select Windows Security.
    5. Select Virus & Threat Protection.
    6. Under Current Threats, click Scan Options / Threat History.
    7. Run a Microsoft Defender Offline Scan.
    8. Click Scan Now.
  • How can I detect a virus on my computer?

    To detect a virus on your computer, you can use either your computer’s built-in antivirus software or third-party antivirus software.

  • What happens if you leave a virus on your computer?

    If you leave a virus on your computer, a few things could happen:

    • You could be spied on.
    • Your personal information could be stolen.
    • Your computer might slow down.
    • Your computer might show you pop-up ads.
    • Your computer might prevent you from accessing your files, holding them for ransom.