Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Listing all the patches/updates installed in Windows machine

$
0
0

Hi All

I want a script to list all the patches/updates installed in my PC. I tried the below script but it does not give me complete list of patches [SQL, Visual Studio, some Office patches are not listed]

$updateSearcher = new-object -com "Microsoft.Update.Searcher"
$totalupdates = $updateSearcher.GetTotalHistoryCount()
$patchList=$updateSearcher.QueryHistory(1,$totalupdates)

Please let me know if there is any way to achieve this.

 

 


Regards Ram

Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>