How To Run Microsoft Safety Scanner On Windows 11 (2026)
Microsoft Safety Scanner is a free, portable tool that scans a Windows PC for malware once, when you start it.
It is a second opinion, not a replacement for the antivirus that already protects the PC.
This guide follows Microsoft’s own pages and also covers the related Malicious Software Removal Tool.
Table of Contents
- Quick answer
- Download the right version
- Why you must download it again each time
- Run a scan
- Open the scan log
- Safety Scanner error codes
- Safety Scanner versus Windows Security
- The Malicious Software Removal Tool
- MSRT command-line switches
- Remove the scanner afterward
- Official sources
- More Windows printing and scanning guides
Quick answer
| Question | Microsoft’s answer |
|---|---|
| What is it? | A portable, on-demand malware scan tool that finds and removes malware and tries to reverse changes made by threats it identifies |
| Does it run Windows 11? | Yes, Windows 11 is on the supported list |
| How long does it last? | It expires 10 days after download |
| Where is the result log? | %SYSTEMROOT%\debug\msert.log |
| Does it protect you all the time? | No, it has no real-time protection and no automatic updates |
Download the right version
- Open Microsoft’s Safety Scanner download page on Microsoft Learn.
- Choose the 64-bit download for a 64-bit PC, or the 32-bit download for a 32-bit PC.
- Save the file where you can find it again.
Microsoft says the scanner is a standalone executable that does not appear in the Start menu or on the desktop.
Its default file name is msert.exe.
The tool is signed only with SHA-2, so the PC must support SHA-2 code signing to run it.
Download it only from Microsoft’s own page, and download a fresh copy before every scan.
Why you must download it again each time
Microsoft says the scanner expires 10 days after you download it.
To scan with current anti-malware definitions, download and run it again.
Microsoft recommends getting the latest version before each scan.
An old copy left in the Downloads folder is therefore not a good way to check a PC.
Run a scan
- Open the file you downloaded.
- Select Next on the first screen.
- Under Scan Type, select the type of scan you want, then select Next.
- Wait for the scan to finish and read the result on screen.
Microsoft’s download page tells you to select the type of scan you want to run but does not list the types.
Its troubleshooting page names Full Scan and Customized scan, and the Customized scan lets you choose a folder or drive.
The scanner runs only when you start it, and it never scans in the background.
Open the scan log
- Type
%systemroot%\debugin the Start search box. - Open the folder and double-click the file named msert.
The folder is usually C:\Windows\debug, because %systemroot% is usually C:\Windows.
Error codes in the log usually start with 0x.
Safety Scanner error codes
| Error code | Cause | Fix |
|---|---|---|
| 0x80508019 | The scan destination file or drive does not exist | Change the scan destination with a Customized scan |
| 0x8050800C | System state prevents the scan in that user context | Restart the computer and try again |
| 0x80508024 | A full scan is needed first | Run a Full Scan, then retry |
| 0x80508026 | The item is inside a container such as an archive | Identify the archive and remove the file by hand |
| 0x80508007 | Low system memory | Download the scanner again |
| Signature or engine codes such as 0x8050A005, 0x8050A002, 0x80508001 | Signature database or engine problem | Download the scanner again |
For any code not on Microsoft’s list, the advice is also to download the scanner again.
For 0x80508019, start the scanner, select Next, choose Customized scan, select Choose Folder, pick another folder or drive, then select OK and Next.
Safety Scanner versus Windows Security
Microsoft says Safety Scanner does not replace your anti-malware product.
For real-time protection with automatic updates on Windows 11, use Microsoft Defender Antivirus, which is part of Windows Security.
Its own quick, full and offline scans are explained in how to scan Windows 11 for malware with Windows Security.
If a scanner will not run because protection blocks it, do not switch protection off for a file you did not download from Microsoft.
The Malicious Software Removal Tool
The Malicious Software Removal Tool, also called MSRT, is a separate Microsoft tool that removes specific prevalent malware.
| Point | What Microsoft says |
|---|---|
| Purpose | A post-infection removal tool that targets specific prevalent malware such as viruses, worms and Trojan horses; it does not remove spyware |
| Delivery | Generally released on the second Tuesday of each month through Windows Update, or as a standalone download |
| Installer | None; it does not use an installer |
| Admin account | You must sign in with an account in the Administrators group, otherwise the tool exits |
| Full scan | Runs a quick scan first, then scans all fixed and removable drives, but not mapped network drives, and can take several hours |
It runs in quiet mode unless it finds an infection, and then a notification appears the next time an administrator signs in.
If it finds infected files, you can clean specific files or all of them, and Microsoft warns that some data loss is possible.
MSRT command-line switches
| Switch | What it does |
|---|---|
/Q or /quiet | Runs without a user interface |
/? | Lists the switches |
/N | Detect only: reports malware without removing it |
/F | Forces an extended scan |
/F:Y | Forces an extended scan and cleans infections automatically |
Microsoft’s page describes running the downloaded package and does not describe opening it through the Run box, so use the standalone download from Microsoft or Windows Update.
Remove the scanner afterward
Microsoft says to remove Safety Scanner by deleting the executable.
The Malicious Software Removal Tool has no uninstaller, and a leftover temporary folder that contains Mrtstub.exe can be deleted by hand with no adverse effect.
Official sources
- Microsoft Safety Scanner download (Microsoft Learn)
- How to troubleshoot an error when you run the Microsoft Safety Scanner (Microsoft Support)
- Windows Malicious Software Removal Tool, KB890830 (Microsoft Support)
More Windows printing and scanning guides
- How To Uninstall ScanSnap Home On Windows Or Mac (2026)
- How To Install ScanSnap Home On Windows Or Mac (2026)
- How To Install The Rollo USB Printer Driver On Windows (2026)
- How To Install The Xerox Global Print Driver On Windows (2026)
- Turn Off Windows Protected Print Mode For Lexmark Printers (2026)
- Brother Printer Not Connecting Via USB In Windows 11 (2026)