In this tutorial, learn how to fix “An Error Occurred While Troubleshooting” on Windows PC or laptop.

An error occurred while troubleshooting. A problem is preventing the troubleshooter from starting.
This issue is a common problem in Windows. It happens when you try to run built-in troubleshooting feature of Windows to fix issues or when you try to run Microsoft’s official Fix It tools.
As soon as you run the troubleshooter, you receive the above mentioned error message.
When you click on “View error details” link, you get random error codes which might differ for different computers.
If you are also getting this issue, this post will help you in fixing the issue.
See more: How to fix Windows Troubleshooter has stopped working
How to Fix “An Error Occurred While Troubleshooting” in Windows 10
1. First, restart your PC and check if the troubleshooter works, if not than go to the step below.
2. Open Notepad, then copy and paste below code:
@echo off
net stop wuauserv
cd %systemroot%
ren SoftwareDistribution SoftwareDistribution.old
net start wuauserv
net stop bits
net start bits
net stop cryptsvc
cd %systemroot%\system32
ren catroot2 catroot2.old
net start cryptsvc
regsvr32 Softpub.dll
regsvr32 Wintrust.dll
regsvr32 Mssip32.dll
regsvr32 Initpki.dll /s
echo Restarting Computer
shutdown.exe -r -t 00
3. Save the notepad file with extension .bat on desktop (ex: windowsfix.bat)
4. Then, right click on the file and click “Run as Administrator”.
5. Once process is completed, reboot your system.
If you’ve any queries, check this video:
That’s about it.