Windows Update is a vital component of Windows operating system that automates downloading and installing software updates over the internet. It could be latest feature updates, hotfixes and drivers released by Microsoft.
Sometimes Windows Updates service might not work as expected or you face issues while using it. For example fails to download and install updates, gives you error messages, unable to search new updates, unable to restore update and even more.
Usually this kind of issue occur when some services related to Windows update is not running and more over Windows Update components are corrupted.
How to Reset Windows Update in Windows 11 using a .bat script
The nifty solution to fix most of the issues related to Windows update is to reset Windows Update components. In this blog post, you will learn easiest solution to do that:
Keep few things in mind:
- You need to be logged in as administrator in Windows 11 PC
- Resetting Windows Update component won’t delete update history
Extract the zip file to obtain the .bat file.
Ublock the .bat file. For that, right-click on the file and select Properties. Here, check the box for Unblock, then click Apply and OK.
Double-click to run .bat file and when UAC dialog box appear, click Yes to continue.
This will launch Command prompt window and start resetting the Windows Update components.
Once resetting Windows Update components is done, you will see a message i.e. ” Please save and close anything open now, before the computer is restarted” and hit enter to continue.
Once again press any key and this will instantly restart your computer.
After successful restart try to use Windows Update service and this time it should work as expected.
So what this .bat script does?
Once you run Windows update component .bat file it will do following things:
- The newer download folder will be created by removing the older one, where updates are downloaded by Windows update service.
- Reset network connection
- Reset BITS service
- Re-register the Windows update files.
Check content of .bat file
@echo off :: Prompt to Run as administrator Set "Variable=0" & if exist "%temp%\getadmin.vbs" del "%temp%\getadmin.vbs" fsutil dirty query %systemdrive% >nul 2>&1 && goto :(Privileges_got) If "%1"=="%Variable%" (echo. &echo. Please right-click on the file and select &echo. "Run as administrator". &echo. Press any key to exit. &pause>nul 2>&1& exit) cmd /u /c echo Set UAC = CreateObject^("Shell.Application"^) : UAC.ShellExecute "%~0", "%Variable%", "", "runas", 1 > "%temp%\getadmin.vbs"&cscript //nologo "%temp%\getadmin.vbs" & exit :(Privileges_got) :: Checking and Stopping the Windows Update services set b=0
How to Reset Windows Update Components in Windows 11
I hope the solutions mentioned in this blog post helps in fixing Windows update issue by resetting Windows update components in Windows 11
As an independent platform, it takes a lot of effort to create and curate quality content daily. Our content is totally funded by users like you.
Therefore, if you find information on this website useful, we kindly ask for your support in maintaining the longevity of our platform. If each person who benefits from our website contributes, we can secure a brighter future for our website.