If you’re encountering errors when updating Windows 7 and tried various methods, you may need to reset Windows Update components manually. Before you begin, back up registries in case something goes wrong.
- Press Windows key + r, type in cmd and press Enter. Right-click on cmd and select Run as Administrator.
- In the Command Prompt window that appears, copy and paste the following commands one by one, pressing Enter after each one. These commands will stop the BITS, Windows Update and Cryptographic services.
- net stop bits
- net stop wuauserv
- net stop appidsvc
- net stop cryptsvc
- Type Del “%ALLUSERSPROFILE%\Application Data\Microsoft\Network\Downloader\qmgr*.dat”
and press Enter. - Type cd /d %windir%\system32 and press Enter.
- Copy and paste the following commands one by one, pressing Enter after each one.
- 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
This should register the BITS and Windows Update files
- Type netsh winsock reset and press Enter.
- Type netsh winhttp reset proxy and press Enter.
- Type the following commands, one by one, pressing Enter after each one.
- net start bits
- net start wuauserv
- net start appidsvc
- net start cryptsvc
- Update to the latest Windows Update Agent, for which instructions can be found here.
- Restart the computer.
It’s also recommended to run the Windows Update Troubleshooter.