List Windows Updates Via PowerShell and Export Them to a CSV File

Published: 11 October 2022
on channel: OnlineComputerTips
1,187
7

If you need to view all of the Windows updates on your computer in an easy to read format, you can use PowerShell to view them all along with their details such as the install date and KB number. You can also use PowerShell to export the results to a CSV file that you can then open with Microsoft Excel so you can format it as needed.

The main command
Get-WUHistory | Select-Object -First 25

If it can't find the command, you will need to run
Install-Module PSWindowsUpdate

And then most likely
Import-Module PSWindowsUpdate

If you get an error that says
Module cannot be loaded because running scripts is disabled on this system

You will need to run
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned

Here is the command to export your updates to a CSV file. Just be sure to change the path and file name as needed.
Get-WUHistory | Export-CSV c:\updates.csv

Check out our book (Computers Made Easy) that is designed to take your computer skills to the next level!
https://www.amazon.com/dp/B084DFQT25

#powershell