How to Remove Malware From a Windows PC (2026)
Sudden pop-ups, a browser homepage you never chose, a fan that spins when nothing is running — sooner or later many Windows PCs pick up something unwanted. The word "virus" covers a whole zoo of malware: adware, browser hijackers, trojans, spyware, ransomware. Whatever the flavor, the cleanup routine below handles the vast majority of cases using tools already built into Windows. Work through the steps in order, and resist the urge to skip straight to the drastic ones.
Signs You Actually Have Malware (and When You Don't)
Real warning signs: a homepage or search engine that changes itself, new toolbars or programs you did not install, pop-ups outside the browser, files that suddenly will not open, friends receiving messages you never sent, or security tools that refuse to launch. Less alarming: a generally slow PC (usually just startup bloat or a failing drive), one weird ad inside a sketchy website (that is the site's problem, not your infection), or a dramatic web pop-up claiming your PC is infected — real antivirus alerts never arrive as browser pop-ups asking you to call a phone number.
Step 1: Update Before You Scan
Malware often dodges outdated protection, so start by updating. Open Settings → Windows Update and install everything pending. Then open Windows Security (search for it in the Start menu), go to Virus & threat protection → Check for updates, and update the security intelligence. It takes minutes and noticeably improves the scan's catch rate.
Step 2: Run a Full Scan With Windows Security
In Windows Security → Virus & threat protection, click Scan options and choose Full scan rather than the quick scan — it checks every file and typically takes one to three hours. Let it finish and quarantine whatever it finds. For a second opinion on stubborn machines, Microsoft's free Microsoft Safety Scanner (download it from microsoft.com) runs alongside Defender and catches things a sabotaged antivirus might miss.

Should you disconnect from the internet? Only in two cases: ransomware is actively encrypting files, or you have concrete reason to believe data is being stolen right now. Otherwise stay connected so the scanner can pull the latest definitions — a disconnected scan is a weaker scan.
Step 3: Check What's Installed and What Starts With Windows
Scanners miss some adware because it hides as a "helpful" utility. Open Settings → Apps → Installed apps, sort by install date, and uninstall anything you do not recognize — especially browser "assistants", free PDF converters, and driver updaters you never deliberately installed. Search the exact name before removing; a few odd-looking entries are legitimate Windows components. Then open Task Manager (Ctrl + Shift + Esc) → Startup apps and disable suspicious entries so they cannot relaunch at boot. This is also the moment to uninstall any "PC cleaner" or "booster" programs — they usually cause more problems than they solve.
Step 4: Boot Into Safe Mode and Rescan
If problems return after cleaning, run the full scan again from Safe Mode, where most malware cannot start. Hold Shift while clicking Restart from the power menu, then choose Troubleshoot → Advanced options → Startup Settings → Restart and press 4. Safe Mode loads a minimal Windows with no third-party startup items; run another full scan from there and repeat the installed-apps review while you are in it.
Step 5: Clean Up Your Browser
Browser hijackers often survive PC-level scans because they live inside your browser profile, not in Windows. In each browser you use:
- Extensions: Remove everything you did not install yourself (menu → Extensions in both Chrome and Edge).
- Search engine and homepage: Reset them in settings — hijackers love replacing the default search with an obscure site that pays them per click.
- Reset as a last resort: If the browser stays broken, use its built-in reset (Chrome: Settings → Reset settings). It keeps your bookmarks and passwords but removes extensions and resets startup behavior.
Step 6: Assume Passwords Are Compromised
Spyware exists to steal credentials, so after any confirmed infection, treat your passwords as leaked. From a different, clean device — or after the cleanup is fully complete — change the passwords that matter most: your email account first, since it can reset everything else, then banking, then shopping and work accounts. Turn on two-factor authentication wherever it is offered; a stolen password paired with 2FA is nearly worthless to an attacker. Then keep an eye on bank and card statements for a few weeks.
If the Malware Keeps Coming Back
Persistent reinfection usually means one of three things: a leftover scheduled task or account restoring the payload, a second device on your network that is itself infected, or rootkit-level persistence. Create a new local user account and see whether the problem follows you there. Scan the other PCs and phones that share your network. If it still returns, the clean-slate option is Settings → System → Recovery → Reset this PC with Remove everything — time-consuming, but it erases every software-level infection in one pass. Back up your files first, and scan the backups before restoring them onto the fresh system.
What About Paid Antivirus?
Windows Security (Defender) has earned strong independent test scores for years and covers the malware most home users will ever meet. Paid suites add extras — password managers, VPNs, firewall controls, identity monitoring — that some people genuinely value, but they are not required for a clean PC, and the cleanup above works the same either way. If you do use a third-party antivirus, do not run two real-time scanners at once; they fight over the same files and slow each other down. Pick one, keep it updated, and let it do its job.
Keeping It Out for Good
- Let Windows Update and Defender run automatically. Most infections exploit bugs that were patched months ago.
- Skip cracked software and "free" activation tools. They are the single biggest malware delivery channel on home PCs.
- Read installer screens. Uncheck the bundled toolbars and offers that ride along with free software.
- Work in a standard user account instead of an administrator account, so malware needs an explicit approval prompt to change system settings.
- Keep backups on an external drive. It turns ransomware from a disaster into an annoyance.
The pattern that works: update, full scan, review what starts with Windows, clean the browser, change key passwords. In that order — and the machine is almost always clean by step five.
Malware cleanup is rarely dramatic; it is a checklist, and Windows gives you every tool on it for free. Run the steps above at the first weird sign, and the pop-up zoo moves out before it unpacks.
Signs You Actually Have Malware, and When You Don't
Before scanning, establish whether there is anything to find. Most "my computer is infected" reports are one of four things, and only one of them is malware.
| Symptom | Usual real cause | Malware? |
|---|---|---|
| Pop-ups on every page | An extension, a notification permission, or a hijacked homepage | Usually not |
| Redirects to a different search engine | A hijacking extension or a browser policy | Sometimes |
| The computer is slow | Startup load, a failing drive, or thermal throttling | Rarely |
| Antivirus shows a detection | It may be a false positive on a cracked installer or a PUP | Read the name carefully |
| Unknown programs, browser changes, files encrypted, a strange device in the device list | Actual compromise | Yes |
| Your account password was changed, or you were locked out of email | Credential theft followed by account takeover | Treat as malware until proven otherwise |
One specific case worth naming: a sudden flood of browser notifications. It is almost always sites that were granted notification permission, not malware. See our pop-up guide for that case.
Step 1 in Detail: Why Updating Comes Before Scanning
Scanning with out-of-date definitions is close to useless. Open Windows Security → Virus & threat protection and check for updates, and let Microsoft Defender update itself. Also update your browser and any extensions you have installed, because a large share of malicious extensions are only malicious in their new version and are removed once updated.
Do this from a clean boot if you suspect the machine is badly compromised, since a compromised system can silently block updates.
Step 2 in Detail: Choosing Between Quick, Full, and Custom
Microsoft Defender has three scan options, and the default is the wrong one for most situations:
- Quick scan — checks the most common locations. Takes minutes. Good for a routine check.
- Full scan — checks every file and every drive. Takes hours on a large disk, and it slows the machine to a crawl while it runs. This is the one to run when you have symptoms.
- Custom scan — lets you pick a specific drive or folder. The right choice if you have an external drive you suspect, or if you want to scan a particular location without waiting for the whole disk.
Run the full scan, and let it finish. Do not stop it when the CPU is pinned — that is the scan working. When it finds something, read the threat name and the action before clicking through. If it offers to "restore" a quarantined file, do not; that is the wrong choice for anything it found.
Step 3: Check What Is Installed and What Starts With Windows
Open Task Manager → Startup apps and read every entry. Anything with a strange name, a generic name like "Update" or "Service Host", or a path pointing somewhere unexpected, deserves a look. Right-click and choose Open file location — legitimate programs live in Program Files, Program Files (x86), AppData or Windows. A startup item running from C:UsersPublic or a random folder in your user profile is a strong signal.
Then open Settings → Apps → Installed apps and sort by Date installed. Malware and unwanted software tend to arrive all at once, so a cluster of unfamiliar programs with identical install dates is a pattern worth noticing. Uninstall them properly rather than deleting folders.
Also check Task Manager → Processes for a process using high CPU or network with a name you do not recognise, and check Settings → Accounts → Sign-in options → Additional settings for anything unusual under the AutoConnect and AutoRun tabs.
Step 4 in Detail: Why Safe Mode Finds What a Normal Scan Misses
Some malware loads before Defender does and hides from a normal scan. Safe mode starts Windows with almost nothing, so the scanner can see what the malicious software was hiding behind.
To reach it: hold Shift while clicking Restart on the power menu, then choose Troubleshoot → Advanced options → Startup Settings → Restart, and pick a numbered option — 4 for Safe Mode, or 4 + F4 for Safe Mode with networking. The full procedure, including what to do inside Safe Mode, is in our Safe Mode guide.
Once in Safe Mode, run a full scan again. If something is found and removed, restart normally and run a third scan, because removing one component often reveals another.
Step 5: Use a Second Opinion Scanner
No single scanner catches everything. Two free, reputable options complement Defender rather than replacing it:
- Microsoft Safety Scanner — an on-demand scanner from Microsoft that runs alongside Defender and can find things Defender misses. It is a standalone download, it does not install permanently, and it is the first thing to run after a full scan comes back clean but symptoms persist.
- ESET Online Scanner — a free on-demand scan from ESET. It is the standard second opinion in most malware-removal guides for good reason: it uses different detection logic, so it finds things others miss.
Run one, let it finish, and note what it reports. If both scanners find nothing but the behaviour continues, the cause is more likely a browser extension, a hijacked homepage, or a scheduled task — not malware.
Afterwards: Close the Door
- Change passwords — from a different device, and change your email password first, since email is the account used to reset everything else.
- Turn on two-factor authentication on your email, Microsoft and Google accounts. See our 2FA guide.
- Revoke active sessions in each account's security settings.
- Audit extensions in every browser on the machine, and remove any you do not recognise.
- Enable Controlled Folder Access under Windows Security → Virus & threat protection → Manage settings → Ransomware protection, which blocks unauthorised writes to your documents and pictures.
Part of a collection
This guide belongs to our Windows fixes collection (16 guides on the same problem).
Editorial review
- First published
- Last reviewed
- Applies to
- Windows 11 22H2 and later
- Reviewed by
- The TechFix Guide editorial team
Added the Microsoft Defender Offline scan and refreshed the Microsoft Safety Scanner download reference.
Menu paths, option names and file paths in this guide were checked against the version named above. We do not claim to have tested every brand of hardware, so if your build shows something different, tell us and we will correct the page. How we check our guides · Report an error