Skip to content

How-ToOS

How to Use Microsoft Safety Scanner to Check a Windows PC for Malware

Microsoft Safety Scanner is a free, portable second-opinion malware scanner for Windows. We explain what it is and isn't, how to download the right version, choose a quick, full or customised scan, read msert.log, run it from the command line and remove it afterwards.

By , Systems & Technical Editor

4 min read

How to Use Microsoft Safety Scanner to Check a Windows PC for Malware

If you suspect something nasty has got onto your PC, or your usual antivirus seems to be missing something, Microsoft offers a free second opinion that needs no installation: Microsoft Safety Scanner. It's a single portable file, msert.exe, that you download, run, and then delete. Microsoft describes it as "a scan tool designed to find and remove malware from Windows computers" that will also try to reverse changes made by the threats it finds.

This guide is based on Microsoft's Safety Scanner download page on Microsoft Learn, its Windows Malicious Software Removal Tool and Defender Offline documentation, and Windows Central's step-by-step walkthrough of the tool's scan options, all checked on 2 December 2026.

What Safety Scanner is (and isn't)

A few points from Microsoft's own page are worth knowing before you start:

  • It only scans when you run it. "Microsoft Safety Scanner only scans when manually triggered." There's no background protection.

  • Each download expires. "Safety Scanner expires 10 days after being downloaded." Microsoft recommends that you "always download the latest version of this tool before each scan", so don't keep an old copy on a USB stick and reuse it months later.

  • It doesn't install. It's a portable executable that doesn't appear in the Start menu or as a desktop icon, so note where you saved it.

  • It doesn't replace antivirus. Microsoft points you to Microsoft Defender Antivirus for real-time protection with automatic updates. If you're weighing up your everyday protection, see our Microsoft Defender vs paid antivirus comparison.

Microsoft lists Windows 11, Windows 10, Windows 8.1, Windows 8 and Windows 7, plus several Windows Server versions, as supported. The tool is exclusively SHA-2 signed, so very old, unpatched Windows 7 installs need SHA-2 support before it will run.

Step 1: download the right version

Go to Microsoft's Microsoft Safety Scanner Download page on Microsoft Learn (linked in the sources below) and pick Download Microsoft Safety Scanner (64-bit) or the 32-bit version. Most modern PCs run 64-bit Windows; if you're not sure, open Settings > System > About and check the system type under Device specifications.

Only download it from Microsoft. A malware scanner offered on a random download site is exactly the sort of file you shouldn't trust when you already suspect an infection.

Step 2: run msert.exe and choose a scan

Open the file you downloaded (msert.exe by default). After you tick the box to accept the licence terms and click Next, you choose a scan type. Windows Central's walkthrough describes the three options like this:

Scan type

What Windows Central says it does

Quick scan

Scans the areas most likely to contain malware but doesn't remove infections; you're prompted to run a full scan instead

Full scan

Scans the entire system for malware and removes infections

Customized scan

Runs a quick scan and also scans a folder you choose

A sensible approach:

  1. Start with a quick scan for a fast check.

  2. Run a full scan if the quick scan finds anything, or if you have good reason to think the PC is infected. A full scan can take a long time on large drives, so leave the PC to it.

  3. Use a customised scan to check a particular folder, such as Downloads or a USB drive you've plugged in.

Step 3: read the results and the log

When the scan finishes, Safety Scanner shows its results on screen. For more detail, Microsoft says to "view the log at %SYSTEMROOT%\debug\msert.log". On a standard install that's C:\Windows\debug\msert.log, which you can open in Notepad. The log is useful if you need to look up a detection name or show it to someone helping you.

If something was removed, restart the PC when prompted and run a fresh scan with your normal antivirus afterwards.

Step 4: delete the tool

Microsoft's instruction is simple: "To remove this tool, delete the executable file (msert.exe by default)." Because each copy expires after 10 days anyway, there's no reason to keep it. Download a fresh one next time.

Running it from the command line

Windows Central also shows the tool accepting command-line switches. Search Start for Command Prompt, choose Run as administrator, use cd to move to the folder where you saved msert.exe, then run, for example, msert /f:y for a scan with automatic cleaning, msert /q for a quiet scan without the visual interface, or msert /f /q for a quiet full scan. Most home users won't need these, and the on-screen wizard is easier to follow.

If Safety Scanner can't fix it

Some threats are hard to remove while Windows is running. Microsoft says Microsoft Defender Offline runs "from outside the normal Windows kernel" so it can target malware such as rootkits that hide from normal scans. Our guide to running a Microsoft Defender Offline scan covers that, including the need to have your BitLocker recovery key to hand. For other free second-opinion tools, see our best free malware scanners roundup, and for how this tool differs from the one Windows Update runs every month, read Microsoft Safety Scanner vs MSRT.

The bottom line

Microsoft Safety Scanner is a free, no-install second opinion for a PC you think might be infected: download a fresh copy from Microsoft, start with a quick scan, run a full scan if anything turns up, check msert.log for details and then delete the file. It won't protect you in real time, so keep Microsoft Defender or another up-to-date antivirus running, and turn to an offline scan if the scanner can't finish the job.

Sources

  1. 01Microsoft Learn, Microsoft Safety Scanner Download
  2. 02Microsoft Support, Remove specific prevalent malware with Windows Malicious Software Removal Tool (KB890830)
  3. 03Microsoft Learn, Run and review the results of a Microsoft Defender Offline scan
  4. 04Windows Central, How to remove malware using Microsoft Safety Scanner on Windows 10

About the author

Marcus Thorne

Systems & Technical Editor

Marcus writes Forge PC's step-by-step build, troubleshooting and system optimisation guides. His background spans Windows kernel and power-state diagnostics, UEFI/BIOS configuration, NVMe storage arrays, ATX 3.1 power delivery and running local AI and LLM workloads on consumer graphics cards.

More from Marcus Thorne

Read next

How to Run the Windows Malicious Software Removal Tool (MSRT)

How-To

How to Run the Windows Malicious Software Removal Tool (MSRT)

Windows Update runs Microsoft's Malicious Software Removal Tool every month, but you can also run it yourself. We explain what MSRT can and can't remove, how to download and run it, what its results mean, where mrt.log lives and which command-line switches Microsoft documents.

Marcus Thorne4 min