Did the script I found here but that fails as well.
These are the results after running the script.
Microsoft Windows [Version 10.0.22621.1635]
(c) Microsoft Corporation. All rights reserved.
C:\Windows\System32>SC config trustedinstaller start=auto
[SC] ChangeServiceConfig SUCCESS
C:\Windows\System32>net stop bits
The Background Intelligent Transfer Service service is not started.
More help is available by typing NET HELPMSG 3521.
C:\Windows\System32>net stop wuauserv
The Windows Update service is not started.
More help is available by typing NET HELPMSG 3521.
C:\Windows\System32>net stop msiserver
The Windows Installer service is not started.
More help is available by typing NET HELPMSG 3521.
C:\Windows\System32>net stop cryptsvc
The Cryptographic Services service is stopping..
The Cryptographic Services service could not be stopped.
C:\Windows\System32>net stop appidsvc
The Application Identity service is not started.
More help is available by typing NET HELPMSG 3521.
C:\Windows\System32>Ren %Systemroot%\SoftwareDistribution SoftwareDistribution.old
C:\Windows\System32>Ren %Systemroot%\System32\catroot2 catroot2.old
Access is denied.
C:\Windows\System32>regsvr32.exe /s atl.dll
C:\Windows\System32>regsvr32.exe /s urlmon.dll
C:\Windows\System32>regsvr32.exe /s mshtml.dll
C:\Windows\System32>netsh winsock reset
Sucessfully reset the Winsock Catalog.
You must restart the computer in order to complete the reset.
C:\Windows\System32>netsh winsock reset proxy
Sucessfully reset the Winsock Catalog.
You must restart the computer in order to complete the reset.
C:\Windows\System32>rundll32.exe pnpclean.dll,RunDLL_PnpClean /DRIVERS /MAXCLEAN
C:\Windows\System32>dism /Online /Cleanup-image /ScanHealth
Deployment Image Servicing and Management tool
Version: 10.0.22621.1
Image Version: 10.0.22621.1635
[==========================100.0%==========================] No component store corruption detected.
The operation completed successfully.
C:\Windows\System32>dism /Online /Cleanup-image /CheckHealth
Deployment Image Servicing and Management tool
Version: 10.0.22621.1
Image Version: 10.0.22621.1635
No component store corruption detected.
The operation completed successfully.
C:\Windows\System32>dism /Online /Cleanup-image /RestoreHealth
Deployment Image Servicing and Management tool
Version: 10.0.22621.1
Image Version: 10.0.22621.1635
[===========================84.9%================= ]
[==========================100.0%==========================] The restore operation completed successfully.
The operation completed successfully.
C:\Windows\System32>dism /Online /Cleanup-image /StartComponentCleanup
Deployment Image Servicing and Management tool
Version: 10.0.22621.1
Image Version: 10.0.22621.1635
Error: 0x800f0806
The operation could not be completed due to pending operations.
The DISM log file can be found at C:\WINDOWS\Logs\DISM\dism.log
C:\Windows\System32>Sfc /ScanNow
Beginning system scan. This process will take some time.
There is a system repair pending which requires reboot to complete. Restart
Windows and run sfc again.
C:\Windows\System32>net start bits
The Background Intelligent Transfer Service service is starting..
The Background Intelligent Transfer Service service was started successfully.
C:\Windows\System32>net start wuauserv
The Windows Update service is starting.
The Windows Update service was started successfully.
C:\Windows\System32>net start msiserver
The Windows Installer service is starting.
The Windows Installer service was started successfully.
C:\Windows\System32>net start cryptsvc
The requested service has already been started.
More help is available by typing NET HELPMSG 2182.
C:\Windows\System32>net start appidsvc
The Application Identity service is starting.
The Application Identity service was started successfully.
C:\Windows\System32>
C:\Windows\System32>