Your company's ad could live here and reach over 50,000 people a month!

Share This Post

Operations Manager 2007 PowerShell Cmdlet Get-Agentpendingaction mini-reports

To get a list of server names and what they are pending about i.e. AgentPendingActionType (this can be long depending on how many agent pending actions are in your environment)

get-agentpendingaction | sort-object AgentName | Select-object AgentName, AgentPendingActionType | format-table –auto

image

To get a list of servers whose status in AgentPendingActionType is ‘UpdateFailed’

get-agentpendingaction | where-object {$_.AgentPendingActionType -eq "UpdateFailed"} | sort-object AgentName | Select-object AgentName, AgentPendingActionType | format-table –auto

image

To get a mini-report with the count and type of the agentpendingactiontype

get-agentpendingaction | group-object AgentPendingActionType | Sort -desc Count | Select-object Count, Name | Format-table –auto

image

 

Share This Post

Leave a Reply