How to Remove a Computer Virus (Step-by-Step Guide)

How to Remove a Computer Virus (Step-by-Step Guide)

TLDR: To remove a computer virus, disconnect from the internet, boot into Safe Mode, run a full system scan with antivirus software, and quarantine or delete any flagged files. This guide walks you through how to remove a computer virus step by step for both Windows and Mac, and tells you exactly when it's time to call a professional instead.

If you are not yet sure whether you have an infection, our guide on how to determine if your computer has a virus covers what to look for before you start removing anything. It is worth checking first, because running removal tools unnecessarily can occasionally affect files you want to keep.

Is Your Computer Infected With a Virus?

A computer virus is malicious software that replicates itself, damages files, and can steal your personal data. The warning signs are usually hard to miss:

  • Sluggish performance with no clear cause

  • Unexpected pop-ups appearing constantly

  • Programs opening or closing without your input

  • Unknown applications you didn't install

  • Unusual network activity or spikes in data usage

  • Your antivirus tool has been disabled

According to the U.S. Census Bureau, 95.5% of U.S. households own a computer, making virus protection a near-universal concern. Two or more of these symptoms is a strong indicator; continue to the steps below.

What You'll Need Before You Start

Before you eliminate a virus from your computer, gather a few things so you don't get stuck mid-process.

Prerequisites:

  • A trusted antivirus or anti-malware tool. Windows users can use Windows Defender (built-in) or a free option like Malwarebytes. Mac users have built-in security tools, but a third-party scanner adds a second layer.

  • A stable internet connection to download the latest virus definitions before you disconnect.

  • An external drive or cloud backup to protect your files before scanning.

  • Administrator access to your computer.

Warning: Before you begin, take a moment to backup your data safely. Virus removal can occasionally affect files, and losing something important mid-process is avoidable.

How to Remove a Computer Virus: Step-by-Step

Complete these steps in order. Skipping ahead can let the virus stay active.

How to Remove a Virus from a Windows Computer

  1. Disconnect from the internet. Unplug your Ethernet cable or turn off Wi-Fi. This stops the virus from communicating with outside servers or spreading further.

  2. Boot into Safe Mode. Restart your PC, hold Shift, and click Restart. Navigate to Troubleshoot > Advanced Options > Startup Settings > Restart, then select Safe Mode with Networking.

    1. Common mistake: Don't skip Safe Mode. Running a scan in normal mode lets the virus stay active and fight back against removal tools.

  3. Delete temporary files. Open Disk Cleanup from the Start menu and clear temp files to speed up the scan and remove malware that hides in temporary folders.

  4. Run a full system scan. Open Windows Defender or your chosen antivirus tool and run a complete scan. As Microsoft notes, "Your first step should be to discover whether or not you do really have a virus, by running a full scan."

  5. Quarantine or delete flagged files. Quarantine first. This isolates the file without permanently deleting it, so you can recover it if flagged by mistake. Delete only once you've confirmed it's malicious.

  6. Restart and scan again. Reboot normally and run a second full scan to confirm the virus is gone.

How to Remove a Virus from a Mac

The steps mirror Windows closely. Boot into Safe Mode by holding Shift during startup on Intel Macs, or by holding the power button until startup options appear on Apple Silicon Macs. Use Activity Monitor to spot suspicious processes consuming unusual CPU or memory. Clear your cache manually through Finder, and run a full scan using built-in security tools or a trusted third-party scanner. Quarantine flagged items before deleting.

macOS includes several built-in layers of protection including Gatekeeper, XProtect, and the Malware Removal Tool, all of which run automatically in the background. These provide a solid baseline but do not replace active scanning when you suspect an active infection. According to Apple's security documentation, these tools are updated regularly by Apple to address new threats, but a manual scan is still warranted when symptoms are present.

If your results differ from what is described here, PC Laptops can walk you through Mac-specific support at any of our seven Utah locations.

When to Stop and Call a Professional

Some infections are beyond what standard tools can handle. If any of the following applies to you, stop the DIY process and contact professional PC repair services instead.

  • The virus keeps returning after removal

  • Safe Mode won't load

  • Your operating system is visibly corrupted

  • Ransomware has encrypted your files

  • Multiple scans produce conflicting results

Trying to remove a virus yourself when rootkits or ransomware are involved can cause more damage than the infection itself. Malware like rootkits and bootkits embed at the system level, and a professional technician has access to enterprise-grade tools, can recover your files before a full system wipe, and has experience diagnosing rare infections that standard scans miss.

PC Laptops offers professional computer support at seven Utah locations and in-home service, with a Lifetime Service Guarantee on parts, labor, and support that big-box retailers don't match.

How to Protect Your Computer After Virus Removal

Completing virus removal and keeping your system clean requires a few more steps. Once your machine is clean, take these steps immediately:

  1. Update your operating system and all software.

  2. Change passwords for every account you accessed on the infected machine.

  3. Enable automatic updates for your antivirus program and only download software from verified sources.

  4. Turn on your firewall if it is disabled.

Understanding how a virus gets into your computer helps you avoid repeat infections. Viruses typically arrive through phishing emails, infected downloads, and malicious ads. Microsoft provides tools and resources to help you avoid or remove malware going forward.

If your computer is still acting up after following these steps, the team at PC Laptops can diagnose and fix the problem fast. With a Lifetime Service Guarantee on parts, labor, and support, and custom-built computers designed in Utah, we're not your typical repair shop. Visit any of our seven Utah locations, or contact us to schedule in-home support today.

This post was written for general informational purposes and reflects best practices for virus removal on consumer Windows and Mac devices. PC Laptops recommends consulting a certified technician before attempting removal of complex threats such as rootkits or ransomware.

Back to blog