Update: Checking Operations Manager 2007 Agent and Server versions via Powershell

 

3/2/2008 - Updated versions?throughout?for?SP1 (RTM) released in Feb?’08?

Although you generally check Pending Actions in the Console UI, the built-in cmdlets provide the means to easily retrieve agent and management server versions.

Returns Name, Version of all agent-managed machines
get-agent | ft DisplayName, Version

Returns which agents are not yet at SP1(RTM)
get-agent | where-object {$_.Version -notmatch ‘6.0.6278.0′ } | ft DisplayName, Version

Returns which agents are at SP1
get-agent | where-object {$_.Version -match ‘6.0.6278.0′ } | ft DisplayName

And of course you can do the same with your Management Servers
get-managementserver | ft Name, Version

Finally, you can also use Powershell for bulk approval of Pending Actions to update your agents with the Get-AgentPendingAction and Approve-AgentPendingAction cmdlets in a one-liner.

Get-AgentPendingAction | where {$_.AgentName -like “yourserver%”} |Approve-AgentPendingAction

Versions:
RTM = 6.0.5000.0
SP1 (RC) = 6.0.6246.0

SP1 (RTM) = 6.0.6278.0

SystemCenterForum has partnered with Infront Consulting to bring you the Operations Manager Bootcamp! Register in December for training in 2008 at SystemCenterForum and receive a free copy of Operations Manager 2007 Unleashed!

Check the 2008 Bootcamp Schedule and request pricing and availability HERE.

Leave a Reply

privacy policy | terms of use | copyright © 2008 pete zerger