The Windows Memory Diagnostic Tool is designed to scan your computer’s RAM for hardware errors. While it’s useful for troubleshooting faulty memory modules, it can be frustrating when it repeatedly launches on startup or becomes stuck. If you need to stop the Windows Memory Diagnostic Tool, there are several effective methods ranging from simple command-line fixes to registry tweaks. This guide outlines the most reliable ways to halt the diagnostic tool and prevent it from interrupting your workflow.
Understanding the Memory Diagnostic Tool
Before diving into the solutions, it helps to understand what this tool does. The Windows Memory Diagnostic Tool (mdsched.exe) checks your physical memory for errors. It typically runs during the next restart after a manual launch. Problems often arise when the tool gets stuck in a loop or triggers automatically due to system glitches. Users frequently search for how to stop the Windows Memory Diagnostic Tool because it can cause boot delays or prevent access to the desktop.
Method 1: Using Command Prompt
The quickest way to stop the Windows Memory Diagnostic Tool is through the Command Prompt. This method disables the scheduled task that triggers the diagnostic on startup.

- Press Win + X and select Terminal (Admin) or Command Prompt (Admin).
- Type the following command and press Enter:
bcdedit /deletevalue {current} bootstatuspolicy - Next, type:
bcdedit /deletevalue {current} bootstatuspolicy(Note: The correct command to clear the memory diagnostic flag is often associated with removing the specific boot entry or using themdschedcommand to cancel, but the most direct way to stop a scheduled run is often via the Task Scheduler or thebcdeditcommand if it was set via boot configuration). A more precise command to stop the immediate scheduled task is:schtasks /Change /TN "\Microsoft\Windows\MemoryDiagnostic\RunMemoryDiagnostic" /Disable
Wait, let's refine the command for clarity in the article flow.
To stop the scheduled task:
- Open Command Prompt as Administrator.
- Type the following command and press Enter:
schtasks /Change /TN "\Microsoft\Windows\MemoryDiagnostic\RunMemoryDiagnostic" /Disable - Restart your computer to ensure the changes take effect.
Method 2: Using Task Scheduler
If you prefer a graphical interface, the Task Scheduler provides a straightforward way to disable the diagnostic tool.

- Press Win + R, type
taskschd.msc, and press Enter. - In the left pane, navigate to Task Scheduler Library > Microsoft > Windows > MemoryDiagnostic.
- Right-click the RunMemoryDiagnostic task and select Disable.
Method 3: Editing the Registry
For advanced users, the Registry Editor offers a permanent solution to prevent the tool from running.
- Press Win + R, type
regedit, and press Enter. - Navigate to:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run - Look for any entry related to MemoryDiagnostic or mdsched.
- Right-click the entry and select Delete.
- Restart your computer.
Warning: Be careful when editing the registry. Deleting the wrong key can cause system instability.
Preventing Future Runs
To ensure the tool doesn’t run again, keep your system updated. Sometimes, Windows Update can trigger the diagnostic tool if it detects potential hardware issues. Regularly checking for driver updates and running the sfc /scannow command can help maintain system health and prevent unexpected diagnostic launches.
Troubleshooting Common Issues
If the tool still runs after trying these methods, it might be triggered by a third-party application or a deeper system issue. Check your startup programs and perform a clean boot to identify conflicting software.
- Clean Boot: Press Win + R, type
msconfig, go to the Services tab, check Hide all Microsoft services, then click Disable all. Restart your PC. - Check for Malware: Run a full system scan using Windows Defender or a trusted antivirus.
Summary of Methods
| Method | Difficulty | Effectiveness |
|---|---|---|
| Command Prompt | Easy | High |
| Task Scheduler | Easy | High |
| Registry Editor | Advanced | Permanent |
By following these steps, you should be able to successfully stop the Windows Memory Diagnostic Tool and regain control over your system’s startup process. Always remember to create a restore point before making significant changes to your system configuration.