Skip to content

How-ToOS

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.

By , Systems & Technical Editor

4 min read

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

If you've ever scrolled through your Windows Update history, you've probably seen "Windows Malicious Software Removal Tool" listed month after month. That's MSRT, a small Microsoft clean-up tool that Windows Update runs for you in the background. You can also download it and run it yourself, which is handy if you want to check for some of the most widespread malware families on demand.

This guide is based on Microsoft's MSRT support article (KB890830), its enterprise deployment article (KB891716) and its Microsoft Safety Scanner page, all checked on 2 December 2026.

What MSRT does, in Microsoft's words

Microsoft is clear that MSRT is a narrow tool. Its support article says the MSRT "does not replace an antivirus product. It is strictly a post-infection removal tool." It lists three ways it differs from antivirus:

  • It removes malware from an already infected PC, rather than blocking it from running in the first place.

  • It "removes only specific prevalent malicious software", which Microsoft calls "a small subset of all the malicious software that exists today".

  • It focuses on active malware that's currently running; Microsoft says "The tool cannot remove malicious software that is not running."

Microsoft also notes that it targets viruses, worms and Trojan horses, and "does not remove spyware". The support article keeps a long table of covered malware families, updated with each release; the newest entries are from the November 2026 release (version 5.147).

Option 1: let Windows Update run it

The easiest way to use MSRT is to do nothing. Microsoft says it "generally releases the MSRT on a monthly cadence as part of Windows Update", usually on the second Tuesday of the month, and that with automatic updates turned on you receive the tool automatically. It runs quietly in the background, and if it finds nothing you won't see anything at all. If it does find an infection, a notification appears the next time an administrator signs in.

On Windows 11, open Settings > Windows Update and select Check for updates to make sure you're current. Microsoft notes that the version delivered through Windows Update runs only one time each month.

Option 2: download and run it yourself

To run MSRT whenever you like, download it from the Microsoft Download Center. Microsoft's KB890830 article links to an x64 package for 64-bit Windows and an x86 package for 32-bit systems; at the time of checking, it gave the latest release date as 10 November 2026. Unlike the Windows Update version, Microsoft says the Download Center copy "displays a user interface when it runs".

  1. Download the x64 package from the link in Microsoft's KB890830 article.

  2. Run it from an administrator account. Microsoft says you must be signed in with an account in the Administrators group; otherwise the tool exits.

  3. Follow the on-screen steps to start a scan.

  4. Act on any prompts. If the tool finds malware, Microsoft says it may suggest a full scan, which "can take several hours to complete because it will scan all fixed and removable drives", though mapped network drives aren't scanned. It may also ask to clean infected files, restart the PC or carry out manual steps.

Microsoft warns that "some data loss is possible" when infected files are cleaned, and that the tool may not be able to restore every file to its pre-infection state, so back up anything important first if you can.

An old copy will nag you to update: one section of Microsoft's article says the tool recommends the latest version once it's more than 215 days (7 months) out of date, while its FAQ mentions a reminder after 60 days. Either way, grab a fresh copy each time.

Understanding the results

Microsoft lists four main results MSRT can report:

Result

What to do

No infection was found

Nothing, but it only checks a limited list of threats

At least one infection was found and was removed

Restart if asked, then run a full scan with your antivirus

An infection was found but was not removed

Use an up-to-date antivirus product, as Microsoft advises

An infection was found and was partially removed

Finish the job with an up-to-date antivirus product

For the detail, Microsoft says MSRT writes its results to %windir%\debug\mrt.log, usually C:\Windows\debug\mrt.log. You can open it in Notepad.

Command-line switches

Microsoft documents these switches for MSRT:

Switch

What it does

/Q or /quiet

Quiet mode, with no user interface

/?

Lists the switches

/N

Detect-only mode: reports malware but doesn't remove it

/F

Forces an extended scan

/F:Y

Forces an extended scan and automatically cleans infections

The detect-only /N switch is a useful way to see what MSRT would do before you let it change anything.

Cleaning up afterwards

MSRT doesn't install anything. Microsoft says it usually creates a randomly named temporary folder on the root drive containing a file called Mrtstub.exe, which is normally deleted after the run or the next restart. If it's left behind, Microsoft says "you can manually delete this folder, and this has no adverse effect on the computer."

When MSRT isn't enough

Because MSRT only looks for a short list of widespread malware, a clean result doesn't mean your PC is clean. Microsoft itself recommends Windows Defender Offline or Microsoft Safety Scanner "for comprehensive malware detection and removal". Our guides to using Microsoft Safety Scanner and running a Microsoft Defender Offline scan explain both, and Microsoft Safety Scanner vs MSRT compares the two tools side by side. To keep Defender itself from being switched off by malware, turn on Tamper Protection.

The bottom line

MSRT already runs once a month through Windows Update, so most people never need to touch it. If you want an on-demand check, download the latest copy from Microsoft, run it from an administrator account, try the /N detect-only switch if you're cautious, and read mrt.log for details. Just remember it only targets specific prevalent malware, so a clean result is not an all-clear: pair it with an up-to-date antivirus and a fuller scan.

Sources

  1. 01Microsoft Support, Remove specific prevalent malware with Windows Malicious Software Removal Tool (KB890830)
  2. 02Microsoft Support, Deploy Windows Malicious Software Removal Tool in an enterprise environment (KB891716)
  3. 03Microsoft Learn, Microsoft Safety Scanner Download

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 Use Microsoft Safety Scanner to Check a Windows PC for Malware

How-To

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.

Marcus Thorne4 min