On Windows 11, DirectX is part of the operating system and is serviced through Windows itself, not by reinstalling with the legacy web installer. After a reset with “Cloud download,” the correct DirectX version should already be present.
Because sfc /scannow and DISM /Online /Cleanup-Image /RestoreHealth report no issues, and the DirectX web setup fails, the most reliable way to repair a broken DirectX component such as DXDIAGN.DLL on Windows 11 is to repair or reinstall Windows using the built‑in recovery options rather than trying to manually replace DirectX files.
Recommended sequence:
- Ensure all Windows updates are installed using Windows Update (DirectX is updated this way on Windows 11).
- If problems persist, use the Windows recovery options:
- First try Reinstall Windows using Windows Update if available.
- If that does not resolve the issue and other system components are also affected, use Reset this PC with Keep my files. This reinstalls Windows while keeping personal files but removes apps and settings.
- If system corruption is more severe, use Remove everything to perform a full reset, which reinstalls Windows and removes all personal files, apps, and settings.
Before doing any reset, back up important files and, if the device is encrypted, ensure the BitLocker recovery key is available.
After the repair/reset completes, DirectX and dxdiag should function normally again because they are part of the fresh Windows installation.
References: