|

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

QuestionMicrosoft’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

  1. Open Microsoft’s Safety Scanner download page on Microsoft Learn.
  2. Choose the 64-bit download for a 64-bit PC, or the 32-bit download for a 32-bit PC.
  3. 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

  1. Open the file you downloaded.
  2. Select Next on the first screen.
  3. Under Scan Type, select the type of scan you want, then select Next.
  4. 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

  1. Type %systemroot%\debug in the Start search box.
  2. 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 codeCauseFix
0x80508019The scan destination file or drive does not existChange the scan destination with a Customized scan
0x8050800CSystem state prevents the scan in that user contextRestart the computer and try again
0x80508024A full scan is needed firstRun a Full Scan, then retry
0x80508026The item is inside a container such as an archiveIdentify the archive and remove the file by hand
0x80508007Low system memoryDownload the scanner again
Signature or engine codes such as 0x8050A005, 0x8050A002, 0x80508001Signature database or engine problemDownload 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.

PointWhat Microsoft says
PurposeA post-infection removal tool that targets specific prevalent malware such as viruses, worms and Trojan horses; it does not remove spyware
DeliveryGenerally released on the second Tuesday of each month through Windows Update, or as a standalone download
InstallerNone; it does not use an installer
Admin accountYou must sign in with an account in the Administrators group, otherwise the tool exits
Full scanRuns 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

SwitchWhat it does
/Q or /quietRuns without a user interface
/?Lists the switches
/NDetect only: reports malware without removing it
/FForces an extended scan
/F:YForces 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

Leave a Reply

Your email address will not be published. Required fields are marked *