Windows Memory Diagnostic tests RAM before Windows loads, helping investigate crashes caused by memory instability, though a clean result does not guarantee fully stable RAM.
Windows Memory Diagnostic is a built-in Windows tool that writes test data to RAM, reads it back and checks for errors in a dedicated environment before the operating system starts. Running outside the usual Windows environment prevents regular drivers, services and the Windows kernel from affecting the test, and can help when instability makes Windows difficult to boot.
The tool can be launched from Windows with mdsched.exe or scheduled from Windows Recovery Environment through Windows Boot Manager. Its default Standard test uses two passes with Cache set to Default; users can press F1 to choose an Extended test or configure more passes, although longer tests can take several hours.
Test results appear on screen and can later be reviewed in Event Viewer under Windows Logs > System by searching for MemoryDiagnostics-Results. In one troubleshooting case, the test helped identify an overly aggressive tREFI setting of 65535; lowering it to 32768 fixed the crashes. Other possible causes include faulty memory modules, unstable EXPO settings, aggressive timings, motherboard problems and overclocking. A clean result is not conclusive, so tools such as TestMem5, y-cruncher and MemTest86 can provide additional testing.