Useful PowerShell Commands for Operations Manager 2007
Last Update on 14-03-2012

Get list Operations Manager Commands
on 29-02-2012



Get list of unavailable/unresponsive agents
on 28-02-2012

Get-Monitoringclass -name "Microsoft.Windows.Computer" | Get-MonitoringObject | Where-Object {$_.IsAvailable -eq $False} | Select-Object  DisplayName, IsAvailable | Format-Table


Resolve the healthserviceid to Agent Name
on 28-02-2012

Get-Agent | Where-Object {$ -eq "healthserviceid"} | Select-Object name


Export All Unsealed Management Packs
on 28-02-2012

md C:\UnsealedMPBackup
Get-ManagementPack | where {$_.Sealed -eq $false} | Export-Managementpack -path C:\UnsealedMPBackup

Get the Management Server information including the Management Server Action Account identity
on 29-02-2012

Get-ManagementServer | Select-Object DisplayName, IsRootManagementServer, ActionAccountIdentity, HealthState | Format-Table -autosize

Get the User Roles and its Members on 14-03-2012

Get-Userrole | Select-Object DisplayName, Users