Troubleshoot Windows Update Installation Failures
Before you begin
- Applies to:Supported Windows 11 and Windows Server 2022 or 2025 installations with Windows Update failures.
- Where to start:Open elevated PowerShell 7 or later on the affected host. If Get-WindowsUpdateLog is unavailable, run Import-Module WindowsUpdate -UseWindowsPowerShell and retry the log command.
- What you need:Use approved repair sources and follow the device's update policy. Plan for a possible restart. Replace example values with those for the affected host and keep the same shell open for blocks that share variables.
Guide tools
Use this guide when the same Windows update repeatedly fails. Record the KB number, exact error code, OS build and time before changing anything. These details distinguish download and applicability errors from component servicing failures.
Troubleshooting Steps
Record update history, build and free space
InventoryCheck Update History or the managed update console for the failed KB, result code, and restart state. Compare against the KB’s applicability and prerequisites. Confirm the system drive has sufficient free space before retrying.
Get-CimInstance Win32_OperatingSystem | Select-Object Caption, Version, BuildNumberGet-Volume -DriveLetter ($env:SystemDrive.TrimEnd(':')) | Select-Object DriveLetter, SizeRemaining, SizeGet-WinEvent -FilterHashtable @{ LogName = 'Microsoft-Windows-WindowsUpdateClient/Operational' StartTime = (Get-Date).AddDays(-2)} -MaxEvents 40 | Select-Object TimeCreated, Id, MessageFind where the failure occurred
LogsGenerate a readable snapshot of Windows Update ETL traces in the current user’s temporary directory. Compare it with CBS.log for the installation timestamp. If the download or scan fails, check approval, connectivity and proxy policy. If package installation fails, correlate the KB with the CBS entries and Microsoft’s guidance for the error.
$UpdateLog = Join-Path -Path $env:TEMP -ChildPath 'ConfigCorner-WindowsUpdate.log'Get-WindowsUpdateLog -LogPath $UpdateLogGet-Content -LiteralPath (Join-Path $env:windir 'Logs\CBS\CBS.log') -Tail 150Check component store health
DiagnosisUse this scan when the error or log points to component servicing. It may take several minutes. Read the DISM result and record its exit code. If No component store corruption detected appears, return to the KB-specific error instead of running a speculative repair.
DISM.exe /Online /Cleanup-Image /ScanHealth$LASTEXITCODERepair a confirmed issue and verify the KB
RecoveryRun RestoreHealth only for confirmed repairable corruption and an approved maintenance window. DISM may use Windows Update for repair content. If it reports missing source files, consult Microsoft’s source requirements and stop repeated retries. After a successful repair, retry the KB through the managed update channel. Verify installed status and expected build after any required restart.
DISM.exe /Online /Cleanup-Image /RestoreHealth$LASTEXITCODEGet-CimInstance Win32_OperatingSystem | Select-Object Version, BuildNumberReferences
Your feedback keeps these production procedures accurate and battle-tested.