Hi Kiril,
Issue: Windows Update based on article KB5026435, May 10<sup>th</sup>, 2023, fails to install with an error 0x80073701.
Observation: We tried to Update Windows via optional Updates using Advanced options in Windows Updates under settings. The Windows Update fails to install with an error code 0x80073701 and resulted in random shutdowns. It seems that you are not connected to a Wi-Fi connection. We also observed red {marks/indication} on specialized blogs and forums. We tested windows in a clean boot, but internet adapter was not available, then we couldn’t run an update manager in Settings.
Troubleshooting
Please refer a KB article mentioned below before proceeding with troubleshooting.
May 23, 2023—KB5026435 (OS Build 19045.3031) Preview - Microsoft Support
· We first need to ensure that the Windows 10 machine is connected to an Internet, either through a Wi-Fi or a LAN cable. Please ensure that your machine is fully backed up including data files and bookmarks.
· Boot the machine on a Safe mode with Networking
· Restore Windows firewall to default settings.
· Reiterate the steps you already followed in a Safe mode again.
· Perform Disk Cleanup.
· Open Command Prompt as an administrator.
Try to execute the commands given below, press Enter after each one.
SC config wuauserv start= auto
SC config bits start= auto
SC config cryptsvc start= auto
SC config trustedinstaller start= auto
net stop bits
net stop wuauserv
net stop appidsvc
net stop cryptsvc
net stop msiserver
ren %systemroot%\System32\Catroot2 oldcatroot2
ren C:\Windows\SoftwareDistribution SoftwareDistribution.old
Del “%ALLUSERSPROFILE%\Application Data\Microsoft\Network\Downloader\qmgr*.dat
Exit command prompt.
· Delete the $Windows.~BT & $Windows.~WS folders in the base drive.
· Open Command Prompt as an administrator and run the following commands:
takeown /F C:$Windows.~BT* /R /A icacls C:$Windows.~BT*.* /T /grant administrators:F
rmdir /S /Q C:$Windows.~BT\
· Once the command is executed run the below command:
takeown /F C:$Windows.~WS* /R /A
icacls C:$Windows.~WS*.* /T /grant administrators:F
rmdir /S /Q C:$Windows.~WS\
Once the command is executed type ‘exit’ to close the command prompt window.
· To re-register BITS and Windows Update files, you will have to type all the commands in elevated Command Prompt (followed by Enter) provided below:
regsvr32.exe atl.dll
regsvr32.exe urlmon.dll
regsvr32.exe mshtml.dll
regsvr32.exe shdocvw.dll
regsvr32.exe browseui.dll
regsvr32.exe jscript.dll
regsvr32.exe vbscript.dll
regsvr32.exe scrrun.dll
regsvr32.exe msxml.dll
regsvr32.exe msxml3.dll
regsvr32.exe msxml6.dll
regsvr32.exe actxprxy.dll
regsvr32.exe softpub.dll
regsvr32.exe wintrust.dll
regsvr32.exe dssenh.dll
regsvr32.exe rsaenh.dll
regsvr32.exe gpkcsp.dll
regsvr32.exe sccbase.dll
regsvr32.exe slbcsp.dll
regsvr32.exe cryptdlg.dll
regsvr32.exe oleaut32.dll
regsvr32.exe ole32.dll
regsvr32.exe shell32.dll
regsvr32.exe initpki.dll
regsvr32.exe wuapi.dll
regsvr32.exe wuaueng.dll
regsvr32.exe wuaueng1.dll
regsvr32.exe wucltui.dll
regsvr32.exe wups.dll
regsvr32.exe wups2.dll
regsvr32.exe wuweb.dll
regsvr32.exe qmgr.dll
regsvr32.exe qmgrprxy.dll
regsvr32.exe wucltux.dll
regsvr32.exe muweb.dll
regsvr32.exe wuwebv.dll
· To reset Winsock, type netsh winsock reset and netsh winhttp reset proxy commands. Press Enter after each of them as usually.
· Restart BITS, Windows Update, Cryptographic, MSI Installer services by entering the following commands each followed by Enter:
net start bits
net start wuauserv
net start appidsvc
net start cryptsvc
net start msiserver
· Run the following DISM commands as admin:
DISM /Online /Cleanup-Image /CheckHealth
DISM /Online /Cleanup-Image /ScanHealth
DISM /Online /Cleanup-Image /RestoreHealth
DISM /online /cleanup-image /startcomponentcleanup /resetbase
DISM /online /cleanup-image /startcomponentcleanup
· Perform a SFC scan (Run {SFC/Scannow} in CMD with Admin rights).
· Run Check disk [{Run CHKDSK /f}, { Run CHKDSK /r} and {Run CHKDSK /b}]
· Run the below command in elevated command prompt to clean up driver packages inside Windows:
rundll32.exe pnpclean.dll,RunDLL_PnpClean /DRIVERS /MAXCLEAN
· Explore WinRE options, Troubleshoot/Reset your Windows 10 machine.
Please update with your findings/results!
Sincerely,
CK