Link to home
Start Free TrialLog in
Avatar of Bob_Simons
Bob_SimonsFlag for United States of America

asked on

Windows update on Server 2012R2 runs endlessly without ever finding any updates to download and or install

Windows Update runs endlessly on a 2012r2 server standard which is a hyper-v host. the two guests on this machine run successfully. the updater says "most recent check for updates" and "updates were installed" are both showing as "never". However, under "view update history" had listed maybe 20 updates, although now the history is blank after starting to run the reset procedure at Windows Update - additional resources (https://docs.microsoft.com/en-us/windows/deployment/update/windows-update-resources) section "How do I reset Windows update components." This process is a series of folder renaming, file deleting and DLL registering. In this process some 14 DLLs failed top register because they were not found, all causing one of two errors, either "register not found" or "failed to load: because thy were not found. The command which failed were:
regsvr32.exe mshtml.dll
regsvr32.exe shdocvw.dll
regsvr32.exe browseui.dll
regsvr32.exe msxml.dll
regsvr32.exe gpkcsp.dll
regsvr32.exe sccbase.dll
regsvr32.exe slbcsp.dll
regsvr32.exe initpki.dll
regsvr32.exe wuaueng1.dll
regsvr32.exe wucltui.dll
regsvr32.exe
regsvr32.exe wuweb.dll
regsvr32.exe qmgr.dll
regsvr32.exe muweb.dll

The last time Windows update ran successfully was back on  June 2018.

I've come across some powershell commands for resetting Windows update but I don't know how to use powershell in terms of how to download scripts and where to copy them and how to select and run them. Anyhow, I don think it would solve the problem of the missing DLLs and I haven't found an installer which would supply all the missing files.

Can anyone help me?
Avatar of David Johnson, CD
David Johnson, CD
Flag of Canada image

try these system fixes
DISM /Online /Cleanup-Image /RestoreHealth

Open in new window

<restart>
sfc /scannow

Open in new window

<restart>

retry windows update
if it fails then run

net stop bits
net stop wuauserv
Del "%ALLUSERSPROFILE%\Application Data\Microsoft\Network\Downloader\qmgr*.dat"
Ren %systemroot%\SoftwareDistribution\DataStore *.bak
Ren %systemroot%\SoftwareDistribution\Download *.bak
Ren %systemroot%\system32\catroot2 *.bak
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)
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


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
netsh winsock reset
proxycfg.exe -d
net start bits
net start wuauserv
bitsadmin.exe /reset /allusers

Open in new window

Avatar of Bob_Simons

ASKER

Hi David, thanks for your suggestions. I  started at the top and things are starting off well.

DISM found and fixed errors. It is necessary to reboot? then go to the next step or first try check for updates?
try running windows update after every section
but my question is whether I need to disrupt the users and do a a hard reboot after each section. I think you say as much and I'm hoping that it isn't so.
if dism or sfc found and repaired errors then you must do a reboot, you can try without if you want.
i'll have to wait until after close of business then. can I run SFC immediately after DISM without a reboot in between? I presume not but it couldn't hurt to ask. It is after DISM but I have not run SFC. I did try update and it acts as before which isn't a surprise.
yes you can run sfc after dism without a reboot

you might want to try wsusoffline (http://wsusoffline.net)
i;'m not using WSUS on the server. it can be run "offline:" without a local wsus server?
it downloads all of the applicable updates and you can run the updateinstaller.exe either from the directory (client) or mount or burn the iso to disk.
so in effect, I could ignore the broken windows update and use the offline wsus process as a substitute? I'll look into it. thanks again,.
ASKER CERTIFIED SOLUTION
Avatar of David Johnson, CD
David Johnson, CD
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
and the exchange server is at CU2 and it needs to get to CU13. Problems everywhere.
I wanted the host updated before doing the exchange server, though.