The Microsoft Malware Removal Tool (MSRT) is a free scanner from Microsoft that removes a short list of prevalent malware from Windows 11 and Windows 10. Run it in under a minute from the Run dialog. This guide shows you how to run it, read its log, use its switches, and run it in Safe Mode.
What Is the Microsoft Malware Removal Tool?
The Microsoft Malware Removal Tool is a post-infection removal tool, not an antivirus. It removes specific prevalent malware from a PC that is already infected. It doesn’t protect your PC in real time, it doesn’t block a new infection, and it doesn’t remove spyware. It only looks for malware that is actively running, and only for the families in that month’s list.
“Prevalent malware” means the families Microsoft sees most often: viruses, worms, and Trojan horses. The list is small on purpose. Microsoft releases a new version every month, generally on the second Tuesday. The latest version is v5.147, released on 10 November 2026, and it covers families like SteamRock, PeterPoll, CosmicPulse, and RedFlick.
If Windows Update has been running normally, MSRT has already been running quietly once a month. It runs in Quiet mode and only shows a message when it finds an infection. That is why most people have never seen it, even though it is already on their PC.
There is nothing to install. The tool has no installer and leaves no Start menu entry. Each run unpacks into a randomly named temporary folder, which Windows deletes after the run or the next restart.
To check your version, run mrt and look at the title bar of the welcome screen. Or open mrt.log and read the version at the top of the latest entry. If the tool is more than 215 days (7 months) out of date, it shows a dialog box that recommends you download the latest version.
How to Run the Microsoft Malware Removal Tool
You can run the Microsoft Malware Removal Tool in under a minute. You need an administrator account. The tool must run with local administrator privileges.
- Press Windows + R to open the Run dialog.
- Type
mrtand press Enter. - If Windows asks for permission, select Yes.
- Select Next on the welcome screen.
- Choose a scan type: Quick scan, Full scan, or Customized scan.
- Select Next and let the scan run.
- When the scan finishes, read the result on the final screen, then select Finish.
Quick scan checks the parts of the system where malware most often hides. It’s fast, but it doesn’t scan the whole drive. Full scan checks every file on every fixed and removable drive, so it can take several hours. Customized scan adds a Choose Folder button, so you can scan one folder only.
If the scan finds malware, the tool shows what it found and removes it. Removing files can lose data, so back up anything important first. A full scan also checks removable drives, but not mapped network drives.
If Windows Update is turned off or behind, download the latest package from the Microsoft Download Center instead. Microsoft’s own MSRT support page (KB890830) has the full details.

How to Run MSRT from the Command Line
The Microsoft Malware Removal Tool has command-line switches for unattended and scripted runs. Open an administrator Command Prompt, type the command, and press Enter. The tool opens its wizard and runs the scan you asked for.
| Switch | What it does |
|---|---|
mrt /q | Runs the tool in quiet mode, with no user interface |
mrt /? | Lists the available command-line switches |
mrt /n | Detect only: reports what it finds but removes nothing |
mrt /f | Forces an extended (full) scan |
mrt /f:y | Forces an extended scan and automatically cleans any infections it finds |
The two switches most people need are mrt /f and mrt /f:y. Use mrt /f when you want to watch the scan and decide what to do with anything it finds. Use mrt /f:y when you want the tool to clean what it finds without asking you first. That helps when you’re fixing a family member’s PC and won’t be there to click through the prompts.
Use mrt /n when you only want a report: it scans and tells you what it found, but it changes nothing. Use mrt /q when you want the scan to run silently in the background, for example from a scheduled task.
In a batch file, put start /wait before the command. That makes the script wait for the scan to end. Then read %errorlevel% for the return code. The return codes are listed in the log section below.

How to Read the MSRT Log (mrt.log)
Every run of MSRT appends its results to a log file at %windir%\debug\mrt.log, usually C:\Windows\debug\mrt.log. The file is in English only, and the newest entry is at the bottom. Scroll to the end to see the latest run.
To open it, press Windows + R, type %systemroot%\debug, and open mrt.log in Notepad. The log tells you which version ran, when it ran, what it scanned, and what it found. If it found something, the log names the family and says whether the file was removed.
The return code at the end of each entry is the fastest way to read the result:
| Return code | What it means | What to do |
|---|---|---|
| 0 | No infection found. None of the families in this release are on the PC. | Nothing |
| 6 | Threat detected and removed. | Run a full scan with your antivirus to catch anything MSRT does not cover. |
| 8 or 9 | Removed, but manual steps are needed. | Follow the instructions in the latest log entry or the notification. |
| 10, 11 or 13 | Removed, but a restart is needed to finish. | Restart the PC. |
| 12 | Removed, but both manual steps and a restart are needed. | Do the manual steps, then restart. |
| 7 | Infection found, but errors occurred. | Look up the 0x8050xxxx code in the troubleshooting section of the log. |
| 2 | Not running as an administrator. | Run it again from an administrator account. |
| 3 or 4 | Unsupported Windows, or the scanner failed to start. | Download a fresh copy of the tool. |
Return code 0 is the result you want, but it only means none of the families in this month’s list are on the PC. It doesn’t mean the PC is clean. Return code 6 means the tool removed at least one infection, so run a full Defender scan afterwards. Return codes 8 to 13 mean the removal is not finished yet, so follow the manual steps, restart, or both, as the table says.

How to Run MSRT in Safe Mode
Run the Microsoft Malware Removal Tool in Safe Mode when normal mode cannot finish the job. For example, when the malware restarts itself after every removal, or when the same threat comes back after a normal scan. Safe Mode loads only the drivers and services Windows needs, so the malware cannot start and defend itself.
Microsoft confirms the tool can run in Safe Mode. The copy you need is the one Windows Update left at %windir%\system32\mrt.exe. So the tool needs one normal run before you restart into Safe Mode.
- Open Settings, go to System, then Recovery.
- Next to Advanced startup, select Restart now.
- In Windows RE, select Troubleshoot, then Advanced options, then Startup Settings, then Restart.
- Press 4 or F4 for Enable Safe Mode (or 5 / F5 for Safe Mode with Networking if you need to download the latest package).
- Sign in with an administrator account and open File Explorer.
- Go to
C:\Windows\System32and double-clickmrt.exe, then run a Full scan. - Restart normally when the scan ends.
If BitLocker protects your system drive, have your BitLocker recovery key ready before you open Startup Settings. Windows may ask for the key when you restart, and without it you can’t get back into Windows. If you don’t know the key, check your Microsoft account at account.microsoft.com first.

Microsoft Malware Removal Tool vs Safety Scanner vs Defender Offline
Microsoft ships three free on-demand scanners, and they are not interchangeable. Use this table to pick the right one for the job.
| Tool | What it covers | When to use it |
|---|---|---|
| Microsoft Malware Removal Tool | A short list of prevalent families (viruses, worms, Trojans only, no spyware) | Monthly check, or when you suspect one of the prevalent families |
| Microsoft Safety Scanner | A much wider range: viruses, spyware, rootkits, and unwanted software, using the same engine as Defender | When MSRT finds nothing but the PC still misbehaves, or as a second opinion |
| Microsoft Defender Offline | Malware that hides inside Windows itself, including rootkits that infect the boot record | When the same threat returns after every removal, or when you want a scan from outside Windows |
Download Microsoft Safety Scanner from Microsoft, and read the Microsoft Defender Offline documentation before you run the offline scan.
MSRT is the narrowest of the three. But it is also the fastest to start, because it is already on your PC and runs from the Run dialog. Use it first when you want a quick check for the most common families.
If you want the full workflow, read our windows malware removal tool guide. It puts all four tools in order: Defender full scan first, then MSRT, then Safety Scanner, then Defender Offline.
What to Do If MSRT Cannot Clean What It Finds
Sometimes the Microsoft Malware Removal Tool finds malware it cannot fully remove. Return codes 8, 9, and 12 mean manual steps are needed, and return code 7 means errors occurred during the scan. Do these things, in order.
- Follow the manual steps in the log. Open
mrt.logand read the latest entry. It names the file and the folder, and it tells you what to delete or change. Do exactly what it says, then run MSRT again. - Run a Microsoft Defender full scan. Open Windows Security, go to Virus and threat protection, then Scan options, select Full scan, and select Scan now. Defender covers a much wider range of malware than MSRT, so it often catches what MSRT could not clean.
- Run Microsoft Safety Scanner. Download a fresh copy, because each download expires after 10 days. Run a full scan and let it clean what it finds.
- Run Microsoft Defender Offline. If the same threat returns after every removal, restart into the offline scan so the malware cannot defend itself.
- If nothing works, back up your files and reset Windows. A reset is the last resort, but it is the only sure way to remove malware that survives every scanner. After the reset, change your passwords again before you sign in to anything.
When NOT to Use the Microsoft Malware Removal Tool
The Microsoft Malware Removal Tool is the wrong tool in these situations. Knowing when not to use it saves you a wasted scan.
- When you need comprehensive detection. MSRT covers only its own short list of prevalent families. A clean result only means none of those families are on the PC. If you want to know whether the PC is clean, run a Defender full scan.
- When the PC will not boot. MSRT runs inside Windows, so it cannot help if Windows will not start. Use Defender Offline from the recovery environment, or boot from Windows installation media and use the repair options.
- When the infection is ransomware. MSRT doesn’t decrypt files, and it can’t undo encryption. If your files are encrypted, disconnect the PC from the network and don’t pay the ransom. Look for a decryptor for that ransomware family. If your money was stolen, read our guide on how to report cyber crime in India. Report it on 1930 or cybercrime.gov.in first, then tell your bank in writing.
FAQs
Is the Microsoft Malware Removal Tool free?
Yes. The Microsoft Malware Removal Tool is free, and it is already on every supported Windows PC. Microsoft delivers it through Windows Update once a month, and you can also download it free from the Microsoft Download Center. There is no paid version and no subscription.
Is the Microsoft Malware Removal Tool the same as Windows Defender?
No. The Microsoft Malware Removal Tool is a post-infection removal tool. It only runs when you start it, and it covers a short list of prevalent families. Windows Defender Antivirus (Microsoft Defender Antivirus) is a full antivirus with real-time protection, and it covers a much wider range of malware. MSRT doesn’t replace Defender. It works alongside it.
How do I run the Microsoft Malware Removal Tool on Windows 11?
Press Windows + R, type mrt, and press Enter. The same steps work on Windows 11 and Windows 10. You need an administrator account. If the Run dialog doesn’t open the tool, the copy on your PC may be out of date. Download the latest package from the Microsoft Download Center.
Where is mrt.log located?
The log is at %windir%\debug\mrt.log, usually C:\Windows\debug\mrt.log. Press Windows + R, type %systemroot%\debug, and open mrt.log in Notepad. The file is in English only, and the newest entry is at the bottom. The return code at the end of each entry tells you the result. 0 means no infection found. 6 means a threat was detected and removed. 8 to 13 mean manual steps, a restart, or both are still needed.
Does the Microsoft Malware Removal Tool remove spyware?
No. The Microsoft Malware Removal Tool removes viruses, worms, and Trojan horses only. It doesn’t remove spyware. If you suspect spyware, run a Microsoft Defender full scan or Microsoft Safety Scanner instead. Both cover spyware.
Final Words
The Microsoft Malware Removal Tool is a small, focused tool that does one job well. It removes the prevalent malware families Microsoft sees most often, and it does it for free. Run it with mrt, read the result in mrt.log, and use the return code to decide what to do next. When it finds nothing, remember what that result means. None of this month’s families are on your PC, not that the PC is clean. For the rest, run a Defender full scan, and keep your antivirus turned on between scans.