I wanted to read the WindowsUpdate.log created by the Get-WindowsUpdateLog cmdlet. I knew there is an article that shows How to read the Windowsupdate.log file that I used some years ago to color the windows update log.
I also noticed that there’s a major difference in the content of the log.
The column separator is not longer a tab, it’s a serie of spaces.
I’ve also discovered another very insightful article about Understanding the Windowsupdate.log file for advanced users
I created another function that uses regular expression grouping to split each line and extracts the info based on the given format:
With this function, you can simply do:
"~\Desktop\WindowsUpdate.log" | Import-WindowsUpdateLog | Out-GridView
and you can use the Out-GridView cmdlet to filter and search what you’re looking for:
The above function is quite handy and would for sure replace notepad to read the human readable WindowsUpdate log file created by the Get-WindowsUpdateLog cmdlet.