Fixing the “Unable to Run the Windows Update Diagnostic” Error
This guide will help you troubleshoot and resolve the error message “I’m sorry. I was unable to run the Windows Update diagnostic” on Windows. By following these steps, you will learn how to use several commands to repair Windows update components, ensuring that your system can check for and install updates effectively.
Step 1: Run System File Checker
Start by running the System File Checker (SFC) tool to repair corrupted system files that could be causing the issue. Open Command Prompt as an administrator and execute the following command:
sfc /scannow
This process may take some time. Allow it to finish and verify if any issues were detected and repaired.
Step 2: Use DISM Commands to Repair Windows Images
Next, use the Deployment Imaging Service and Management Tool (DISM) to fix any potential problems with the Windows image. Run these commands in the same Command Prompt window:
Dism /Online /Cleanup-Image /CheckHealth
Dism /Online /Cleanup-Image /ScanHealth
Dism /Online /Cleanup-Image /RestoreHealth
Like the previous step, these commands may take a while to complete. Wait until all commands have been executed successfully.
Step 3: Reset Windows Update Components
If you are still facing issues, you may need to reset the Windows Update components. Follow these commands in the Command Prompt:
net stop bits
net stop wuauserv
net stop appidsvc
net stop cryptsvc
Del "%ALLUSERSPROFILE%\Application Data\Microsoft\Network\Downloader\*.*"
rmdir %systemroot%\SoftwareDistribution /S /Q
rmdir %systemroot%\system32\catroot2 /S /Q
Shutting down these services and deleting temporary files can help resolve update issues.
Step 4: Set Security Descriptors for Services
Re-establish security descriptors for the update services with the following commands:
sc.exe sdset bits D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU)
sc.exe sdset wuauserv D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU)
Step 5: Register DLL Files
Next, register several DLL files that may not be properly registered, which could lead to update issues. Execute each of the following commands:
regsvr32.exe /s atl.dll
regsvr32.exe /s urlmon.dll
regsvr32.exe /s mshtml.dll
regsvr32.exe /s shdocvw.dll
regsvr32.exe /s browseui.dll
regsvr32.exe /s jscript.dll
regsvr32.exe /s vbscript.dll
regsvr32.exe /s scrrun.dll
regsvr32.exe /s msxml.dll
regsvr32.exe /s msxml3.dll
regsvr32.exe /s msxml6.dll
regsvr32.exe /s actxprxy.dll
regsvr32.exe /s softpub.dll
regsvr32.exe /s wintrust.dll
regsvr32.exe /s dssenh.dll
regsvr32.exe /s rsaenh.dll
regsvr32.exe /s gpkcsp.dll
regsvr32.exe /s sccbase.dll
regsvr32.exe /s slbcsp.dll
regsvr32.exe /s cryptdlg.dll
regsvr32.exe /s oleaut32.dll
regsvr32.exe /s ole32.dll
regsvr32.exe /s shell32.dll
regsvr32.exe /s initpki.dll
regsvr32.exe /s wuapi.dll
regsvr32.exe /s wuaueng.dll
regsvr32.exe /s wuaueng1.dll
regsvr32.exe /s wucltui.dll
regsvr32.exe /s wups.dll
regsvr32.exe /s wups2.dll
regsvr32.exe /s wuweb.dll
regsvr32.exe /s qmgr.dll
regsvr32.exe /s qmgrprxy.dll
regsvr32.exe /s wucltux.dll
regsvr32.exe /s muweb.dll
regsvr32.exe /s wuwebv.dll
Step 6: Reset Winsock
To ensure your network functions correctly, reset Winsock with the following commands:
netsh winsock reset
netsh winsock reset proxy
Step 7: Restart Windows Services
Finally, restart the services you previously stopped:
net start bits
net start wuauserv
net start appidsvc
net start cryptsvc
This will allow the update services to function normally again.
Extra Tips & Common Issues
If you continue to experience problems, consider the following:
- Ensure your system is connected to the internet.
- Disable any third-party antivirus software temporarily, as it may interfere with Windows Update.
- Check for any outstanding Windows Updates that could be blocking the process.
Conclusion
By following these detailed steps, you should have resolved the “unable to run the Windows Update diagnostic” error. If the issue persists, further investigation into system settings or hardware problems may be necessary. Explore additional resources for troubleshooting Windows Update errors for more help.