How to read more easily the WindowsUpdate.log file

The C:\Windows\WindowsUpdate.log file is the first basic log file where you can find helpful information when you try to investigate on the installation of updates.

However, it is complex to read because the data comes from multiple sources.
Among them you have:

  • agent
  • report
  • setup
  • misc
  • sls
  • ep
  • idletmr
  • au
  • PT
  • wutask
  • dnldmgr

In this case, PowerShell is your friend.
Just use the Select-String cmdlet, and everything becomes immediately clearer.

For example:

Select-String -Pattern '\sagent\s' -Path C:\Windows\WindowsUpdate.log | Select-Object -Last 200

And you can even get several sources together by using a pipe “|” character in the search pattern.

For example, if you want to see both the agent and the report source:

Select-String -Pattern '\sagent\s|\sreport\s' -Path C:\Windows\WindowsUpdate.log | Select-Object -Last 200

More about

How to read the Windowsupdate.log file (Microsoft Support)

Windows Update log files (Microsoft Docs)

Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s