How to Remove a Virus or Malware From a Windows PC

Windows Security app showing a full virus scan in progress

A virus or malware infection rarely announces itself. More often you notice a PC that suddenly runs slowly, browser tabs you never opened, a homepage you did not choose, or an antivirus that has switched itself off. This guide shows you how to remove malware from Windows 10 or 11 in a safe order, using only free tools, and how to check that the infection is really gone.

Windows 10 note: Windows 10 reached end of support on October 14, 2025, so it no longer gets free security updates and is more exposed to malware. The steps below work on Windows 10, but consider moving to Windows 11 or enrolling in Extended Security Updates.

Signs your PC may be infected

  • The PC is slow even right after a restart, or the fans are loud with nothing open.
  • Task Manager shows high CPU, disk or network use from programs you do not recognize.
  • Pop-up ads appear outside the browser, or the browser opens pages by itself.
  • Your homepage or search engine changed, or there are extensions you did not install.
  • Programs appear that you did not install.
  • Windows Security is turned off and will not turn back on.
  • Files are renamed or locked and a message asks for payment.

Slow performance alone does not prove malware. If nothing else on the list applies, rule out other causes first with our guide on how to diagnose a slow PC.

Before you start

What you need

  • A USB drive or external disk to back up your personal files
  • A second, clean device (phone or another PC) to change passwords
  • Microsoft Defender (built into Windows) and a second scanner such as Malwarebytes Free or Microsoft Safety Scanner
  • Time for a long session, because the scans can take a while

Safety first

  • If a message demands payment to unlock your files, do not pay and do not call any phone number shown in a pop-up. Disconnect the PC from the network and follow the steps below. The No More Ransom project (nomoreransom.org) lists free decryptors for some ransomware, so check it before giving up on your files.
  • Pop-ups claiming ‘Your PC is infected, call this number’ are scams. Close the browser from Task Manager (Ctrl + Shift + Esc) instead of clicking them. Our article fake virus warning pop-up: what to do, step by step covers that case in detail. Before you install any cleaner that promises to fix this, see how to judge PC cleaner software before you install it.
  • Do not log in to banking or email on the infected PC until it is clean.

Step-by-step: remove the malware

Step 1: Disconnect from the internet and back up your files

Turn off Wi-Fi or unplug the Ethernet cable so the malware cannot send data or download more files. Pause cloud sync (OneDrive, Google Drive) so infected files are not uploaded. Copy your documents and photos to the external drive. Back up personal files only, not programs, and scan the backup before you open anything from it later.

Step 2: Restart in Safe Mode with Networking

Safe Mode loads only the essential Windows services, so many malware programs do not start.

  • Windows 11: open Settings > System > Recovery, choose Restart now next to Advanced startup.
  • Windows 10: open Settings > Update & Security > Recovery, choose Restart now under Advanced startup.
  • After the restart choose Troubleshoot > Advanced options > Startup Settings > Restart, then press 5 (or F5) for Safe Mode with Networking.

We reconnect to the internet only now, because the scanners need to download their latest threat definitions. Safe Mode keeps many malware programs from starting, which makes this the safest time to be online. If you would rather stay offline, download the scanner on a clean device first and copy it over on a USB drive.

Step 3: Run a second-opinion scanner

Install and run Malwarebytes Free, or download Microsoft Safety Scanner from Microsoft (it expires 10 days after you download it, so download a fresh copy each time), and run a full scan. Quarantine or remove everything it finds. If a scanner refuses to run in Safe Mode, run it after the normal restart in the next step. A general PC cleaner does not replace these scanners, so see PC cleaner vs. antivirus for what each tool does.

Step 4: Restart normally and run Microsoft Defender

  1. Restart the PC normally.
  2. Open Windows Security > Virus & threat protection and check for protection updates.
  3. Under Scan options choose Full scan and select Scan now. A full scan can take a long time, so leave the PC running until it finishes.
  4. When it finishes, apply the recommended actions to remove or quarantine the threats.
  5. Run Microsoft Defender Antivirus (offline scan) from the same Scan options screen. The PC restarts and scans before Windows loads, which helps catch malware that hides while Windows is running.

If Windows Security is turned off, will not open or the scan will not start, malware may have switched it off. See Windows Security turned off or won’t turn on, and run the offline scan from a Windows installation USB if you must. If the app itself will not open, our guide to Windows Security will not open covers the likely fixes.

Step 5: Remove suspicious programs and startup items

  • Open Settings > Apps > Installed apps and sort by install date. Uninstall anything you do not recognize that was installed around the time the problems started.
  • Press Ctrl + Shift + Esc, open the Startup apps tab and disable unknown entries.

If malware stops Task Manager from opening, you cannot use it for the steps above. Follow this guide to Task Manager that will not open first, then continue. The Registry Editor can be blocked too: see Regedit says registry editing is disabled for that case. Malware can also block script tools, so if Windows Script Host is disabled, see our guide to Windows Script Host disabled. If Command Prompt is blocked as well, see our guide to Command Prompt has been disabled by your administrator.

Step 6: Clean up your browser

  • Remove extensions you do not recognize.
  • Reset the browser: in Chrome or Edge open Settings > Reset settings and restore the defaults.
  • Check the notification permissions list and remove sites you do not know. Malicious sites use browser notifications to show ads.

Step 7: Change your passwords from a clean device

On your phone or another PC, change the passwords for email, banking and any account you used on the infected PC. Turn on two-factor authentication where it is offered. Once the PC is clean, follow these clean-up steps after virus removal for the rest of the recovery.

Step 8: Check that the PC is clean

  • Restart and leave the PC idle for a few minutes. Task Manager should show low CPU use.
  • Run another full Defender scan the next day.
  • If the same symptoms return, the infection is still there. Go to the next section.

If the scans find nothing but the symptoms continue

A clean scan lowers the chance of malware but does not prove there is none. Try these in order:

  1. In Task Manager, right-click the process that uses the most CPU or network and choose Open file location. A program in an odd folder with no publisher name is worth searching for by name before you do anything. If you are not sure a file is safe, you can test a suspicious file in Windows Sandbox before you run it.
  2. Microsoft’s free Autoruns tool (Sysinternals) lists everything that starts with Windows. Turn on Options > Hide Microsoft Entries, and untick (do not delete) entries you do not recognise. Restart and see if the symptoms stop. For signs of malware in the registry, see signs malware left in the registry.
  3. Check Settings > Network & internet > Proxy for a proxy you did not set, and your browser’s search engine and startup pages.
  4. If none of this helps, go to the last resort.

Last resort: reset Windows

If malware keeps coming back, back up your files and open Settings > System > Recovery > Reset this PC. Choose Remove everything. Reinstall programs only from the official websites, and scan your backup before restoring files.

How to avoid reinfection

  • Keep Windows Update and Microsoft Defender turned on.
  • Do not install cracked software or key generators, which commonly carry malware.
  • Download programs from the official site, and decline bundled ‘optional’ offers during setup.
  • Use a standard (non-administrator) account for daily use.

FAQ

Can Microsoft Defender remove viruses on its own? It handles most common malware. If symptoms continue after a full and offline scan, a second scanner gives you another opinion.

Do I need to reset Windows? Usually not. Reset only if the problems return after the steps above.

Should I change my passwords? Yes, always, and do it from a clean device.

If the problem is annoying software rather than a virus, see potentially unwanted apps in Windows 11.

For other problems, search by symptom in the PC repair guides on PC Repair Atlas.