How to Fix “An Error Occurred While Troubleshooting” in Windows 11/10
If you try to use the windows troubleshooting wizard and you get the error, an error occurred while troubleshooting. This means that you have corrupted system files that prevent you from running the troubleshooting tool or your windows update service is damaged or corrupt. So in this tutorial we'll teach you several solutions to fix your troubleshooting tool in a quick and easy way.
Copy and Paste this:
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
regsvr32.exe /s atl.dll
regsvr32.exe /s urlmon.dll
regsvr32.exe /s mshtml.dll
netsh winsock reset
netsh winsock reset proxy
net start bits
net start wuauserv
net start appidsvc
net start cryptsvc
This troubleshooting guide will work Windows 11, Windows 10 operating systems (Home, Professional, Enterprise, Education) and desktops, laptops, tables and computers manufactured by the following brands: Asus, Dell, HP, MSI, Alienware, MSI, Toshiba, Acer, Lenovo, razer, Huawei, dynabook, LG , Vaio, Microsoft Surface among others