How to Repair DirectX on Windows
sfc /scannow to fix system file corruption. Then install the DirectX End-User Runtime from the official Microsoft website. Finally, update your GPU drivers. DirectX 12 itself is repaired through Windows Update — it cannot be reinstalled separately.Step 1: Run System File Checker
SFC (System File Checker) scans and repairs corrupt Windows system files including DirectX DLL files.
- Press Windows + S, search for cmd.
- Right-click Command Prompt and select Run as administrator.
- Type the following command and press Enter:
Wait for the scan to complete. It takes several minutes. If it finds and fixes corrupt files, restart your PC and test the game again.
Step 2: Run DISM
If SFC cannot fix the issue, DISM can repair the Windows component store that SFC draws replacement files from.
This command connects to Windows Update to download verified replacement files. Allow it to complete, then run sfc /scannow again.
Step 3: Install DirectX End-User Runtime
If a game shows errors about missing d3dx9 or d3dx10 files, install the DirectX End-User Runtime from the official Microsoft page:
DirectX End-User Runtime Web Installer (microsoft.com)
This adds the legacy D3DX libraries that Windows 10 and 11 do not include by default.
Step 4: Update GPU Drivers
Outdated or corrupt GPU drivers cause many DirectX errors. Download the latest driver from your GPU manufacturer:
- NVIDIA: nvidia.com/Download
- AMD: amd.com/en/support
- Intel: intel.com download center
Step 5: Run Windows Update
DirectX 12 updates are delivered through Windows Update. Open Settings → Windows Update → Check for updates. Install all available updates and restart your PC.
Check DirectX Status with DXDiag
After running these steps, open DXDiag (Windows + R, type dxdiag) and check the Notes sections on the System and Display tabs. If all sections show No problems found, your DirectX installation is healthy.