Virus removal on Windows 11 works best in a fixed order: cut the PC off the network, update Microsoft Defender, run a full scan, then an offline scan that starts before Windows loads. Most infections end there. If the threat keeps coming back, a reset with Keep my files removes the apps and settings it hides in.

Everything below uses free Microsoft tools that are already on your PC or a download away.

Quick Fix — Try This First

  1. Unplug the Ethernet cable or turn on Airplane mode so the malware stops talking to its server (details).
  2. Reconnect only long enough to open Windows Security > Virus & threat protection > Protection updates > Check for updates, then disconnect again.
  3. In Virus & threat protection > Scan options, choose Full scan and let it finish (details).
  4. Back in Scan options, run Microsoft Defender Antivirus (offline scan). Save your work first: the PC restarts (details).
  5. Open Protection history and confirm each threat shows as removed or quarantined.

Check: a second full scan finds nothing, and the pop-ups, redirects or unknown programs are gone after a restart. If the threat still returns, continue with the reset step.

Signs you need virus removal

A browser that suddenly opens on an unfamiliar search page, new toolbars or extensions you never added, and ads appearing on sites that never had them are the classic adware signs. Programs you did not install, a fan running hard with nothing open, or Windows Security switched off without your action are more serious.

A full-screen "Your PC is infected, call Microsoft at…" warning is a scam page, not a Windows alert. Microsoft states that its error and warning messages never include a phone number. Close the browser with Ctrl + Shift + Esc (Task Manager) if the page blocks the close button, and do not call the number.

High processor use alone does not prove an infection. If a process such as an update or indexing service is the cause, the CPU at 100% with no apps open guide is the better starting point.

Diagnosis table

SymptomLikely causeNext action
Browser homepage or search engine changed, extra extensionsAdware or a browser hijacker bundled with a free downloadFull scan, then remove the extension and the program it came with (Step 5)
Full-screen warning with a phone numberTech support scam web pageClose the browser; if you already let someone connect, follow Step 7 and the scam checklist in Step 5
Windows Security turned off or greyed outMalware tampering with protection, or a third-party antivirus taking overCheck which antivirus is registered, then run the offline scan (Step 3)
Files renamed with a new extension and a ransom noteRansomwareStop here and follow the ransomware recovery steps before deleting anything
Same threat detected again after every cleanupA component that loads before Windows, or reinfection from a USB drive or synced browser dataOffline scan, then reset with Keep my files (Step 6)

Safety before you start

The real risk during a cleanup is data loss, not the scan itself. Before Step 6 you will copy personal files to an external drive; copy documents, photos and similar files only, never programs or installers, because an infected .exe copied to a backup reinfects the next PC it touches. Do not type passwords on the infected PC until it is clean.

Remove the virus in seven steps

Step 1: Isolate the PC

Applies to: any Windows 11 PC.

  1. On a desktop, pull the network cable from the port on the back of the case. On a laptop, open Quick Settings (the network, sound and battery icons at the bottom right) and select Airplane mode.
  2. Unplug USB drives and memory cards. Malware that spreads through removable media copies itself onto them.
  3. Leave the PC switched on. Shutting down is fine, but it does not remove anything.

Expected result: the network icon shows no connection. Isolation stops a remote attacker, stops data being sent out, and keeps the infection away from shared folders on other computers in the house.

Step 2: Update Defender and run a full scan

Applies to: Windows 11 with Microsoft Defender Antivirus active. If another antivirus is installed, use its own update and full-scan options instead, or uninstall it to let Defender take over.

  1. Reconnect briefly. Open the Start menu, type Windows Security and open the app.
  2. Select Virus & threat protection > Protection updates > Check for updates. Wait until the security intelligence version updates, then disconnect again.
  3. Return to Virus & threat protection, select Scan options, choose Full scan and start it.
  4. When Defender lists threats, choose the recommended action and apply it.

A full scan reads every file and running program, so it takes far longer than a quick scan. Keep the PC plugged in.

If the Windows Security window refuses to open, run the same scan from an elevated Command Prompt: type cmd in the Start menu, select Run as administrator, then switch to the Defender folder. Microsoft documents that MpCmdRun needs an elevated prompt and is not in the PATH by default.

cd "C:\Program Files\Windows Defender"

Download the latest security intelligence (needs a connection for a minute):

MpCmdRun.exe -SignatureUpdate

Start a full scan; -ScanType 2 is Microsoft's value for a full scan, and threats found are reported in the window:

MpCmdRun.exe -Scan -ScanType 2

Check: Protection history lists each detection with the action taken. If Defender reports that it could not remove a threat, or the same file is detected again on a second scan, go to Step 3.

Step 3: Run the offline scan

Some malware hides while Windows is running. The offline scan boots into the Windows Recovery Environment and checks the disk before that code can start.

  1. Save and close everything.
  2. Open Windows Security > Virus & threat protection > Scan options.
  3. Select Microsoft Defender Antivirus (offline scan) and start the scan.
  4. The PC restarts, runs the scan outside Windows and restarts again on its own when finished. Do not switch it off during this time.

Check: after Windows loads, open Protection history; Microsoft shows the offline scan's results there. If that history is empty and the symptoms remain, the threat may not be something Defender classifies as malware, which is what Step 4 and Step 5 handle.

Step 4: Get a second opinion

Microsoft Safety Scanner is a free, portable scanner that only runs when you start it. It does not install anything and does not replace your antivirus.

  1. On a clean device or after reconnecting briefly, download Microsoft Safety Scanner (64-bit for nearly every Windows 11 PC) from Microsoft Learn.
  2. Run the file, named msert.exe by default, accept the terms and choose the full scan type.
  3. Read the results on screen. The full log is saved to %SYSTEMROOT%\debug\msert.log.
  4. Delete msert.exe when done. It expires 10 days after download, so fetch a fresh copy for any later scan.

Windows Update already runs the Malicious Software Removal Tool once a month, normally on the second Tuesday. Its standalone version accepts /F:Y for an extended scan with automatic cleaning; it targets only a list of widespread malware families, so treat it as a complement to the full scan, not a substitute. Paid security suites can also serve as a second opinion, but nothing in this cleanup requires one.

Check: Safety Scanner reports no infection. If it finds and removes threats that Defender missed, restart and run one more Defender full scan.

Second-opinion scanners worth knowing

All three below are free and run alongside Microsoft Defender without replacing it. Use one at a time, never two real-time antivirus products together.

ToolTypeWhat to know
Microsoft Safety ScannerPortable on-demand scanner from MicrosoftNothing to install; the download expires 10 days after you get it
Malwarebytes FreeOn-demand scannerStrong on adware and potentially unwanted programs; after the trial of the paid edition ends, the free version only scans when you run it
ESET Online ScannerOne-time scanner for WindowsRuns a full scan and can be uninstalled afterwards; useful when you want a second engine without a subscription

Download each tool only from its maker’s own website, from a clean device if the infected PC’s browser redirects you.

Step 5: Remove what the scanners leave behind

Antivirus tools often leave "potentially unwanted" programs alone because you technically accepted them during an installer. Remove them by hand.

  1. Open Settings > Apps > Installed apps. Sort by install date and uninstall anything you do not recognize that appeared around the time the problem started, such as "PC optimizer" or "search helper" tools.
  2. Open Settings > Apps > Startup and turn off unknown entries. Task Manager shows the same list on its Startup apps tab, with a publisher column that helps spot impostors.
  3. In each browser, open the extensions page, remove extensions you did not add, then reset the home page and default search engine.
  4. If you let a "support agent" connect after a scam call or pop-up, Microsoft's checklist applies: remove every app they asked you to install (remote-access tools included), run a full scan, change affected passwords, consider resetting the PC, and call your card issuer if you paid.

Check: restart, open the browser and confirm the start page and search engine stay as you set them. If they revert after a restart, a program or synced browser profile is still restoring them; continue with Step 6.

Step 6: Reset Windows with Keep my files

When an infection survives the scans, a reset is faster and more certain than hunting for the last component. With Keep my files, Microsoft says Windows reinstalls and removes apps and settings while keeping documents, photos and other personal data. You will reinstall your programs afterwards.

  1. Copy your personal files to an external drive anyway, following the rule in the safety section. A reset that fails halfway is rare but not impossible. The Windows 11 backup software comparison covers free tools that make this routine.
  2. Open Settings > System > Recovery. Under Recovery options, select Reset PC.
  3. Choose Keep my files. Choose Remove everything instead if you suspect the files themselves, or if you plan to sell the PC.
  4. Choose Cloud download to get a fresh copy of Windows from Microsoft rather than reusing the files already on the disk, then confirm.
  5. The screen can stay black, sometimes for more than 15 minutes. Microsoft warns that restarting the PC yourself during this process can make the reset fail, so leave it alone.
Small USB flash drive plugged into the side of a dark grey laptop
USB flash drive seated in a USB port on the side of a laptop.

Check: after setup, run a full scan before reinstalling programs, then scan the external drive before copying files back. If the same detection appears on a freshly reset PC, the source is outside Windows: a USB drive, a backup or another device on the network.

Step 7: Change passwords from a clean device

Malware that logs keystrokes or steals saved browser passwords has already done its damage before the cleanup. Use a phone or another computer you trust, not the PC you just cleaned.

  1. Change your email password first, since it can reset every other account.
  2. Then change banking, Microsoft account, social media and any password saved in the infected PC's browser.
  3. Turn on two-step verification wherever the service offers it, and sign out of all other sessions if the option exists.
A hand holding a smartphone beside a closed laptop on a desk
Smartphone held next to a closed laptop on a desk.

Check: each service accepts the new password and lists no sign-ins you do not recognize. If one does, report it to that service and use its account-recovery process.

Common mistakes

  • Running two real-time antivirus programs at once. They slow the PC and can block each other's cleanup; keep one active.
  • Downloading a "free virus removal tool" from a pop-up or ad. Fake cleaners are one of the most common ways adware arrives.
  • Restoring a full system image made after the infection started, which brings the malware back with it.
  • Copying the whole Downloads folder to the backup drive, installers included.

Troubleshooting if it still fails

  • Browser sync restores the hijack. A signed-in browser profile can push the bad extension back after a reset. Remove the extension on another device, then sign in again on the cleaned PC.
  • A USB drive or backup reinfects the PC. In File Explorer, right-click each drive, select Show more options > Scan with Microsoft Defender, and wait for a clean result before opening any file on it.
  • Another computer on the network is infected. If several PCs show the same detection, isolate and clean each one; files on shared folders count too.

When to stop and call a technician

Ask for help if files have been encrypted, if the PC holds business or client data, if bank money has moved, or if the same detection survives a Remove everything reset. Give the technician the Windows edition and version (Settings > System > About), the exact threat names from Protection history, when the symptoms started, what you installed or opened just before, and whether anyone had remote access. That list saves an hour of guessing.

A hand sliding a closed laptop across a repair shop counter next to a notepad and pen
Closed laptop on a repair counter beside a handwritten notepad.

Before handing the PC over, the free PC health check on ElectronixLab gives a quick look at the hardware side, useful when part of the slowness turns out to be a failing drive rather than malware.

Frequently asked questions

Is Microsoft Defender enough, or do I need paid antivirus?

For most home users, Defender plus Windows Update and careful downloads is enough, and it costs nothing. A paid suite adds extras such as a VPN or identity monitoring rather than a different cleanup. If you install one, Defender's real-time protection steps aside for it, so make sure the new product is updated before you rely on it.

Can I keep using the PC while the full scan runs?

Yes, but stay offline and avoid opening email, banking or password managers until the scan and cleanup are finished. Light use slows the scan; heavy disk activity, such as copying files, slows it a lot more.

Will a virus on this PC infect my phone?

Windows malware does not run on Android or iPhone, but stolen passwords work on any device. Change passwords from the phone as described in Step 7 and review the phone's installed apps if you sideloaded anything recently.

Should I format the drive instead of using Reset PC?

A clean install from Microsoft's installation media also wipes the partitions, but Reset PC with Remove everything and Cloud download already reinstalls Windows from a fresh copy. Choose a full clean install only if the reset itself fails or a technician finds a threat that survives it.

How do I avoid the next infection?

Install software only from the publisher's site or the Microsoft Store, keep Windows Update on, and treat any pop-up that asks you to call a number or install a cleaner as a scam. Keep one backup copy offline, because ransomware can encrypt drives that stay connected.

Sources

Last updated: November 26, 2026