Microsoft regularly Push security updates with New Features, Security improvements, and Bug fixes to patch security holes created by third-party apps. And with Windows 10 Company has made it mandatory to download and install the latest Windows updates automatically whenever your machine connects to the Microsoft server. This is a good idea to secure and protect your PC, but Some Times users encounter many common problems while trying to Download and Install updates on windows. There are many solutions to fix these problems but windows Experts suggest to reset windows update components is the most working solution to fix many update related issues.
As discussed there are several ways to troubleshoot various Windows Update issues, But If this happens frequently, it would be a good idea to Reset Windows Update Components to default. This can be useful if your Windows Updates fail to Install, the Update is Stuck while download updates, or Getting Different Update installation Failed with different Error Codes.
Reset Windows Update Components
If you struggling with a different windows Update installation Error on Windows 10 computer, Tried Different Solutions but still the problem not fixed, Here is How To reset each Windows Update component individually to default in Windows 10. You can Either manually Reset Windows update components by modifying the Software Distribution Folder and Cartoot2 folder. Or you can Automatically Reset Windows Update Components With A pre-made .bat file. Let’s Start with Manually Reset Windows Update components.
Note: Before performing any action to reset windows update components its recommend to create a system restore point. This will create a snapshot of certain files and information before critical operations such as updates or software installations, Any changes take place. So That if anything goes wrong after performing modification you can revert back by performing system restore.
Manually Reset Windows Update Components
To manually reset update components First Open Command prompt with Admin rights. You can do this by Click on Start menu search, Type cmd, Right-click on Command prompt from search results and choose Run As Administrator.
Now We need to Stop some Windows Update Related Services. Either you can do this by type the following commands one by one Or You can open windows services by press Win + R, Type Services.msc and hit the enter key. Here look for the following services, Right-click and stop these update related services.
In the command prompt, type those commands and hit enter for each to Execute the command.
net stop bits (To Stop Background Intelligent Transfer Service)
net stop wuauserv (To Stop Windows Update service)
net stop appidsvc (To Stop Application Identity service)
net stop cryptsvc (To Stop Catalog Database Service)
These commands will stop BITS, Windows Update and the Cryptographic service.
After Stop these Services now We Need To delete the qmgr*.dat files. ( In order to reset Windows Update components, you will need to delete the files. ) And you Delete the same using command below.
Del “%ALLUSERSPROFILE%\Application Data\Microsoft\Network\Downloader\qmgr*.dat”
Copy the command As it is and past it on Command, Hit the enter key to execute the command.
Reset Software Distribution Folder
Now we are going to Reset The Software distribution folder Where all update files were stored. You can either type command
Ren %systemroot%\SoftwareDistribution SoftwareDistribution.bak
and hit enter key to rename the current software distribution folder to softwaredistribution.bak. Or you can manually rename the folder from C:\Windows\SoftwareDistribution rename it to SoftwareDistribution.bak
Reset Catroot2 Folder
Again you need to rename the Catroot2 Folder Either type the command Ren %systemroot%\system32\catroot2 catroot2.bak and hit enter to execute the command, Or you can open C:\Windows\System32 Here look for Catroot and Catroot2 Folder and rename them with .bak.
Reset Background Intelligent Transfer and Update Service
Now we need to Reset the BITS service and the Windows Update service to the default security descriptor. To do this, Again Type command Bellow one by one and hit enter key to execute the command.
sc.exe sdset bits D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU)
Nest type command below :
sc.exe sdset wuauserv D:(A;;CCLCSWRPWPDTLOCRRC;;;SY (A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU (A;;CCLCSWRPWPDTLOCRRC;;;PU)
After That Type cd /d %windir%\system32 command hit enter. Now Re-register the BITS files and the Windows Update related dll files. for this we need to execute commands bellow one by 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
Winsock defines how Windows network software should access network services, especially TCP/IP. Windows OS comes with a Dynamic Link Library (DLL) file called winsock.dll which implements the API and coordinates Windows programs and TCP/IP connections. If Due to some reason, Winsock gets corrupted. you may experience difficulty in establishing a connection to the Internet. Therefore resetting Winsock is a Good solution. And you can do this with a simple command line.
- Press Windows key + R, to open run,
- Type netsh winsock reset and click ok to execute the command.
Start the Update Related Services
Finally, After doing the above things, you will have to start the update services you had stopped at the beginning. To do this again open the command prompt as administrator and type the following commands below and hit enter key to execute the command.
At first type net start bits to start the Background Intelligent Transfer Service.
Then type net start wuauserv to start the windows update service.
Next type net start appidsvc to start the Application Identity service.
at the last type, net start cryptsvc to Start the Catalog Database Service.
That’s all Now You have successfully reset windows update components. But, To take effect These changes you made, you must restart windows. Then, Check for the latest windows update.
Automatically Reset Update Components
If you don’t Want to perform these steps manually Then Here we have a Script below copy the same to notepad and save it any name .bat. Then after run the bat file script this will do the above steps automatically for you. And reset windows update components automatically.
First, copy it below and paste it into the notepad. Then click on file -> save as -> select all files -> name it ex > updatereset.bat ( note .bat is compulsory ) and save. Then right-click on updatereset.bat and run as administrator. This will the things for you. wait flew sec then restart windows, And check for updates hope this time you didn’t face any Errors while downloading and installing updates.
@ECHO OFF echo Simple Script to Reset / Clear Windows Update echo. PAUSE echo. attrib -h -r -s %windir%\system32\catroot2 attrib -h -r -s %windir%\system32\catroot2\*.* net stop wuauserv net stop CryptSvc net stop BITS ren %windir%\system32\catroot2 catroot2.old ren %windir%\SoftwareDistribution sold.old ren "%ALLUSERSPROFILE%\application data\Microsoft\Network\downloader" downloader.old net Start BITS net start CryptSvc net start wuauserv echo. echo Task completed successfully... echo. PAUSE
I hope Reset Windows Update Components will fix all Windows update related issues ( update install stuck, Windows update errors, not downloading updates etc ) for you. Still have any query suggestions About this post feel free to comment below.
- How To Fix Disk Errors with Check Disk Utility (CHKDSK)
- Fix wuauserv (Windows update) High CPU usage in Windows 10
- 3 Ways to Reset Windows 10 Password with/without software
- Solved: “Windows Update Components Must Be Repaired” In Windows 10
- How to fix windows update when it gets stuck at 0 percent or 100