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
I hope the solutions mentioned in this blog post helps in fixing Windows update issue by resetting Windows update components in Windows 11
Please do not hesitate to contact us if you want assistance with Windows or its solutions. Our team is always here to help you. (Mention 'Tech Support' in Email Body)