Unwanted software can show pop-ups, change your browser's home page or search engine, or slow the PC down. Windows already includes everything you need to deal with it: the Windows Security app and its Microsoft Defender Antivirus. Work through the fixes in order and stop when the scans come back clear and the odd behavior has gone.

Fix 1: Run a quick scan

5 to 15 minutesSafe

A quick scan checks the places where unwanted software usually hides, such as programs that start with Windows. It is fast and often enough to find and deal with the problem.

  1. Select Start, type Windows Security and open the app.
  2. Select Virus & threat protection.
  3. Under Current threats, select Quick scan.
  4. Wait for it to finish. If it finds something, Windows Security usually deals with it by itself or asks you to choose an action. Fix 4 explains the choices.

Did that fix it?

No, try fix 2

Fix 2: Run a full scan

1 to 3 hoursSafe

A full scan checks every file and program on the PC, not only the usual hiding places. It takes much longer, but it can find things a quick scan misses.

  1. In Virus & threat protection, under Current threats, select Scan options.
  2. Choose Full scan, then select Scan now.
  3. You can keep using the PC, but it may be slower. Close other apps if you can, and plug a laptop into power.

Did that fix it?

No, try fix 3

Fix 3: Run a Microsoft Defender Offline scan

about 15 minutes, plus restartsSafe

Some unwanted software hides while Windows is running, or reinstalls itself as soon as the PC restarts. The offline scan restarts the PC and scans before Windows loads, so that kind of software has a much harder time hiding.

  1. In Virus & threat protection, select Scan options.
  2. Choose Microsoft Defender Antivirus (offline scan). On some PCs, especially those running Windows 10, it is called Microsoft Defender Offline scan.
  3. Select Scan now, then Scan. Select Yes if Windows asks for permission.
  4. The PC restarts and the scan runs on a plain screen. It takes about 15 minutes, then the PC restarts again into Windows.
  5. To see what it found, open Windows Security and select Protection history.

Did that fix it?

No, try fix 4

Fix 4: Check Protection history and act on what it found

5 minutesChanges settings

Protection history lists what Microsoft Defender Antivirus has found and what it did about it. Most items need nothing from you, but some wait for your decision.

  1. Open Windows Security and select Protection history. You need to be signed in with an administrator account to see the details.
  2. Select an item to open it. A red marker means it needs attention now; yellow means check it when you can.
  3. If an item says Threat found - action needed, open Actions and choose Quarantine.
  4. If an item says Threat quarantined, the file is locked away where it can't run. Choose Remove to delete it for good.
  5. If an item says Threat blocked, it has already been stopped and nothing more is needed.

Avoid Restore and Allow on device unless you are certain the file is safe, for example a program you wrote or installed on purpose from a source you trust. The list only keeps the last two weeks of events.

Did that fix it?

No, try fix 5

Fix 5: Make sure real-time protection is on

5 minutesChanges settings

Real-time protection checks files as they are opened or downloaded, so unwanted software is stopped before it runs. Some unwanted software tries to turn it off. Up-to-date protection files also help the scans recognize the newest threats.

  1. In Virus & threat protection, under Virus & threat protection settings, select Manage settings.
  2. Make sure Real-time protection is On. Leave Cloud-delivered protection and Tamper protection on as well.
  3. Go back, and under Virus & threat protection updates, select Protection updates, then Check for updates.

If another antivirus app is installed, Windows Security shows its name on this page and Microsoft Defender Antivirus switches its own real-time protection off. That is normal.

Did that fix it?

No, try fix 6

Fix 6: Remove apps you don't recognize

10 minutesChanges settings

Unwanted software often arrives bundled with a free download and installs itself as an ordinary app. Removing it stops it coming back after a scan.

Windows 11

  1. Open Settings, then Apps, then Installed apps.
  2. Set Sort by to Date installed, so the newest apps are at the top.
  3. For an app you didn't install on purpose, select More (the three dots) next to it, then Uninstall, and confirm.

Windows 10

  1. Open Settings, then Apps, then Apps & features.
  2. Set Sort by to Install date, so the newest apps are at the top.
  3. Select an app you didn't install on purpose, then select Uninstall, and confirm.

Leave alone anything from your PC maker or with a hardware maker's name, such as graphics, audio or touchpad software. If you aren't sure what something is, leave it and let the scans decide.

Did that fix it?

No, try fix 7

Fix 7: Reset your browser settings

5 minutesChanges settings

Unwanted software often changes the browser's home page, search engine or startup pages, and those changes can survive a scan. A browser reset puts them back, turns off extensions and clears cookies, but keeps your favorites, history and saved passwords.

  1. In Edge, select Settings and more, then Settings, then Reset settings, then Restore settings to their default values, then Reset.
  2. In Chrome, select More, then Settings, then Reset settings, then Restore settings to their original defaults, then Reset settings.
  3. Afterwards, turn back on only the extensions you know and use.

Did that fix it?

Change your passwords afterwards

Once the scans come back clear, change the passwords you use on this PC, starting with your email, because it can reset your other accounts. Then change banking and shopping passwords. If you think anything was watching what you typed, change them from another device you trust. Turn on two-step verification wherever it is offered.

Last resort: Reset this PC

If the problem keeps coming back after every step above, Reset this PC reinstalls Windows. It removes every app, including any unwanted software.

Windows 11

  1. Open Settings, then System, then Recovery.
  2. Next to Reset this PC, select Reset PC.
  3. Choose Keep my files or Remove everything, then Cloud download for a fresh copy of Windows, and follow the steps on screen.

Windows 10

  1. Open Settings, then Update & Security, then Recovery.
  2. Under Reset this PC, select Get started.
  3. Choose Keep my files or Remove everything, then Cloud download for a fresh copy of Windows, and follow the steps on screen.

After the reset, reinstall your apps only from places you trust, such as the Microsoft Store or the maker's own website.