Bad HDD? It could be your Windows Updates

Recently we had a server that kept trying to install Windows Updates AND it would attempt to do updates IF the you skipped the HDD scan.  The updates would fail and the computer would reboot to a login screen.

Here’s how we fixed the computer by deleting what we knew were corrupt update files.

    • Open a PowerShell and ran the following-
    • net stop bits
      net stop wuauserv
      net stop appidsvc
      net stop cryptsvc
      rmdir %windir%\softwaredistribution /s /q 
      Del “%ALLUSERSPROFILE%\Application Data\Microsoft\Network\Downloader\qmgr*.dat”
      cd /d %windir%\system32
      regsvr32 /s wups.dll 
      regsvr32 /s wups2.dll 
      regsvr32 /s wucltui.dll 
      regsvr32.exe /s msxml.dll
      regsvr32.exe /s msxml3.dll
      regsvr32.exe /s msxml6.dll
      regsvr32.exe /s actxprxy.dll
      regsvr32.exe /s softpub.dll
      regsvr32.exe /s atl.dll
      regsvr32.exe /s urlmon.dll
      regsvr32.exe /s mshtml.dll
      regsvr32.exe /s shdocvw.dll
      regsvr32.exe /s browseui.dll
      regsvr32.exe /s jscript.dll
      regsvr32.exe /s vbscript.dll
      regsvr32.exe /s scrrun.dll
      regsvr32.exe /s wintrust.dll
      regsvr32.exe /s dssenh.dll
      regsvr32.exe /s rsaenh.dll
      regsvr32.exe /s gpkcsp.dll
      regsvr32.exe /s sccbase.dll
      regsvr32.exe /s slbcsp.dll
      regsvr32.exe /s cryptdlg.dll
      regsvr32.exe /s oleaut32.dll
      regsvr32.exe /s ole32.dll
      regsvr32.exe /s shell32.dll
      regsvr32.exe /s initpki.dll
      regsvr32.exe /s wuapi.dll
      regsvr32.exe /s wuaueng1.dll
      regsvr32.exe /s wuweb.dll
      regsvr32.exe /s qmgr.dll
      regsvr32.exe /s qmgrprxy.dll
      regsvr32.exe /s wucltux.dll
      regsvr32.exe /s muweb.dll
      regsvr32.exe /s wuwebv.dll
      regsvr32 /s wudriver.dll
      net start bits
      net start wuauserv
      net start appidsvc
      net start cryptsvc
      bitsadmin.exe /reset /allusers
      ipconfig /flushdns
      netsh winsock reset catalog

Next we checked to see if pending.xml existed. Often Windows will have this (see post link below) when your computer keeps trying to install updates.

Note: Ours did not but if it had, we would have done this (Credit to Josh Carney for his post in 2013)-

Open a CMD Prompt as an Administrator and typed the following

takeown /f C:\Windows\winsxs\pending.xml
cacls C:\Windows\winsxs\pending.xml /G Username:F
el C:\windows\winsxs\pending.xml

Verify if the SoftwareDistribution folder is empty –

Reboot the computer

Run the check disk and your problems should be gone.


About TCAT Shelbyville IT Department

The Tennessee College of Applied Technology - is one of 46 institutions in the Tennessee Board of Regents System, the seventh largest system of higher education in the nation. This system comprises six universities, fourteen community colleges, and twenty-six Applied Technology Colleges.
This entry was posted in Computer Software, computer troubleshooting, Computers, higher ed, higher education, Microsoft, Microsoft Windows, Microsoft Windows 10, Technology, Windows, Windows 10, Windows 7, Windows 8, Windows 8.1, Windows Server and tagged , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s