

If exist "%SYSTEMROOT%\winsxs\pending.xml" ( If exist "%SYSTEMROOT%\winsxs\" del /s /q /f "%SYSTEMROOT%\winsxs\" Please restart the computer, and try again.ĭel /s /q /f "%ALLUSERSPROFILE%\Application Data\Microsoft\Network\Downloader\qmgr*.dat"ĭel /s /q /f "%ALLUSERSPROFILE%\Microsoft\Network\Downloader\qmgr*.dat"ĭel /s /q /f "%SYSTEMROOT%\Logs\WindowsUpdate\*" Sc query cryptsvc | findstr /I /C:"STOPPED"Įcho Cannot reset Windows Update since "Cryptographic Services" (cryptsvc) service failed to stop. Please restart the computer, and try again.Įcho Checking the cryptsvc service status. Sc query appidsvc | findstr /I /C:"STOPPED"Įcho Cannot reset Windows Update since "Application Identity" (appidsvc) service failed to stop. Please restart the computer, and try again.Įcho Checking the appidsvc service status. Sc query wuauserv | findstr /I /C:"STOPPED"Įcho Cannot reset Windows Update since "Windows Update" (wuauserv) service failed to stop. Please restart the computer, and try again.Įcho Checking the wuauserv service status. :: Checking and Stopping the Windows Update servicesĮcho Cannot reset Windows Update since "Background Intelligent Transfer Service" (bits) service failed to stop. &pause>nul 2>&1& exit)Ĭmd /u /c echo Set UAC = CreateObject^("Shell.Application"^) : UAC.ShellExecute "%~0", "%Variable%", "", "runas", 1 > "%temp%\getadmin.vbs"&cscript //nologo "%temp%\getadmin.vbs" & exit Please right-click on the file and select &echo. Set "Variable=0" & if exist "%temp%\getadmin.vbs" del "%temp%\getadmin.vbs"įsutil dirty query %systemdrive% >nul 2>&1 & goto :(Privileges_got) This will not clear the Windows Update history.įor a Windows 11 version of this tutorial, see:ġ Click/tap on the Download button below to download the. You must be signed in as an administrator to reset Windows Update. This tutorial will show you how to completely reset Windows Update components and policies to default in Windows 10. Windows Update - additional resources | Microsoft Docs.

Troubleshoot problems updating Windows 10 | Microsoft Support.Resetting the Windows Update components can usually solve these types of issues. These kind of issues can occur when the Windows Update database or components are corrupted, one or more services related to Windows Update are not running, etc. Sometimes you may have an issue with Windows Update such as not being able to download or install updates, error messages, not being able to search for new updates, etc. Windows Update keeps Windows 10 updated by downloading and installing the latest updates, drivers, and hotfixes released by Microsoft. How to Reset Windows Update in Windows 10
