An internal system function failed
System code caused an error while running an internal Windows function. The usual causes are faulty drivers (very often graphics drivers), antivirus software and damaged system files.
Why it happens
- A faulty or outdated graphics or other driver.
- Antivirus or programs that install drivers (VPNs, game anti-cheat, motherboard utilities).
- Damaged Windows files.
- Less often, failing RAM.
How to fix it
- Check whether the blue screen says «What failed:» followed by a file ending in .sys: that is the driver that caused the error. Search for that name to find out which device it belongs to (for example, nvlddmkm.sys is the NVIDIA graphics driver) and update or reinstall that driver.
- Reinstall the graphics driver: download the latest stable version from NVIDIA, AMD or Intel (on laptops, preferably from the laptop maker), uninstall the current one from Settings › Apps and install the new one.
- Update the graphics, chipset, network and storage drivers from the support page of your PC or laptop maker. If the problem started after updating one, roll it back: Device Manager › right-click the device › Properties › Driver › Roll Back Driver.
- If you use an antivirus other than Windows Security, uninstall it with its maker's removal tool and run a few days with Windows Security only.
- Repair Windows files: open Command Prompt as administrator (search for «cmd», right-click › Run as administrator) and run
DISM /Online /Cleanup-Image /RestoreHealthand thensfc /scannow. Restart when it finishes. - Test the RAM: press Windows + R, type
mdschedand choose «Restart now and check for problems». If you have two sticks, also try with one at a time.
Meaning based on Microsoft's official documentation. The steps are general guidance: if you are not sure, ask a technician for help.