Convert this to an Analyses

Can any of you guru’s out there help me convert this into an analyses. It’s something I found native to powershell.

Thanks!

$Session = New-Object -ComObject “Microsoft.Update.Session”
$Searcher = $Session.CreateUpdateSearcher()

$historyCount = $Searcher.GetTotalHistoryCount()

$Searcher.QueryHistory(0, $historyCount) | Select-Object Title, Description, Date,

@{name="Operation"; expression={switch($_.operation){

    1 {"Installation"}; 2 {"Uninstallation"}; 3 {"Other"}

}}}

Suggest using the new native powershell feature in Take Action in BigFix 10.0.4 and output the results of this script into a file, then use an analysis property to show you the lines in the file.

I also wonder if this WMI approach is a solution for you:

1 Like