Read the Windows Update log when an update keeps failing — via Microsoft Learn
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-WindowsUpdateLogUndo
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
- Get-WindowsUpdateLog — by Microsoft Learn
- Windows Update log files — by Microsoft Learn
- 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.