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:
Hello,
I need to makes an inventory of system patches installed on a group of machines.
I thought of writing an action that writes on a file the list of hotfixes and then read it with an analyse.
The action must be runnable on machines where PowerShell is not installed.
Regarding the action I tried something like this:
dos wmic /OUTPUT:HotfixList.temp qfe get Hotfixid
dos TYPE HotfixList.temp | FIND /V /I "HotFixID" > HotfixList
delete HotfixList.temp
but when I try it in the Fixlet Debugg…
1 Like