Skip to content

Read the Windows Update log when an update keeps failing — via Microsoft Learn

Commandlow riskNeeds adminWindows 11Windows 10

Windows Update no longer writes a readable log; it writes trace (.etl) files. One PowerShell command converts them into a WindowsUpdate.log on your desktop so you can search for the error code.

Takes effect right away

Command

Run in an administrator PowerShell / Terminal window.

Get-WindowsUpdateLog

Undo

Remove-Item "$env:USERPROFILE\Desktop\WindowsUpdate.log"
The file is a snapshot — run the command again to refresh it. For installation-stage failures also look at %SystemRoot%\Logs\CBS\CBS.log.

Sources

Source reviewed
2026-11-02
Link checked
2026-11-02
Tested hands-on
Not by Oddbyte.Me

Oddbyte.Me hasn't tried this on every Windows build, so keep the undo handy.

windows update logupdate errortroubleshootpowershellcbs.log

More in Windows Update