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:
Start with a quick scan for a fast check.
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.
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.
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.