Skip to content

Troubleshoot Windows Update Installation Failures

Admin
November 18, 2026
5 min read
Intermediate
💻 Target OS: Windows Server 2025 / 2022

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
Guide tools
0/0 Steps (0%)

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

01

Record update history, build and free space

Inventory

Check 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.

Terminal window
Get-CimInstance Win32_OperatingSystem | Select-Object Caption, Version, BuildNumber
Get-Volume -DriveLetter ($env:SystemDrive.TrimEnd(':')) |
Select-Object DriveLetter, SizeRemaining, Size
Get-WinEvent -FilterHashtable @{
LogName = 'Microsoft-Windows-WindowsUpdateClient/Operational'
StartTime = (Get-Date).AddDays(-2)
} -MaxEvents 40 | Select-Object TimeCreated, Id, Message
02

Find where the failure occurred

Logs

Generate 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.

Terminal window
$UpdateLog = Join-Path -Path $env:TEMP -ChildPath 'ConfigCorner-WindowsUpdate.log'
Get-WindowsUpdateLog -LogPath $UpdateLog
Get-Content -LiteralPath (Join-Path $env:windir 'Logs\CBS\CBS.log') -Tail 150
03

Check component store health

Diagnosis

Use 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.

Terminal window
DISM.exe /Online /Cleanup-Image /ScanHealth
$LASTEXITCODE
04

Repair a confirmed issue and verify the KB

Recovery

Run 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.

Terminal window
DISM.exe /Online /Cleanup-Image /RestoreHealth
$LASTEXITCODE
Get-CimInstance Win32_OperatingSystem | Select-Object Version, BuildNumber

References

Comments