On Windows 10 Microsoft Push Regular updates with New Features, Security improvements And Bug fixes. And on with Windows 10 Updates Are set to Install Automatically When the machine connects to the Microsoft server. This is good for most windows users but Some Times 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 related 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, Update Stuck while download updates, Getting Different Update installation Failed with different Error Codes.
Post Contents :-
How to Reset Windows Update Components
If you suffering different Update installation Error on Windows 10 computer, Tried Different Solutions but still problem not fixed, Here 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 snapshot of certain files and information before critical operations such as updates or software installations, Any changes takes place. So That if anything goes wrong after performing modification you can revert back by perform 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 the 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 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 ) then,
net stop wuauserv ( To Stop Windows Update service ) then,
net stop appidsvc ( To Stop Application Identity service ) at last
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 store. 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 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 bellow :
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
Reset Winsock
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 get corrupted. you may experience difficulty in establishing a connection to the Internet. Therefore resetting Winsock is Good solution. And you can do this with a simple command line.
Press Win + R, On Run Type netsh winsock reset and hit the enter key to execute the command.
Start the Update Related Services:
Finally, After doing above things, you will have to start the update services you had stopped at the beginning. To do this again open command prompt as administrator and type following commands below and hit enter key to execute the command.
At first type net start bits to start the Background Intelligent Transfer Service.
net start bits
then type net start wuauserv to start the windows update service.
net start wuauserv
Next type net start appidsvc to start the Application Identity service.
net start appidsvc
at last type net start cryptsvc to Start the Catalog Database Service.
net start cryptsvc
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 bellow 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 below and paste it to 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 do things for you. wait flew sec then restart windows, And check for updates hope this time you didn’t face any Error while download and install 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 suggestion About this post feel free to comment below.