locked
State View powershell cmdlets RRS feed

  • Question

  • I am trying to use powershell cmdlets to pull up the health state of certain groups like "agent" and "Health Service" from a specific custom created state view in Operations manager. Is this possible? If so what is the syntax?

    Thanks!

    Tuesday, June 17, 2014 6:59 PM

Answers

  • Hi

    You can pull information from sate view but you can query group using below code

    import-module operationsmanager

    New-SCOMManagementGroupConnection

    $gp=Get-SCOMGroup -DisplayName "operations Manager Agents"

    Get-SCOMMonitoringObject -Group $gp |select HealthState,Displayname

    Regards


    sridhar v


    Thursday, June 19, 2014 11:12 AM

All replies

  • Hi

    You can pull information from sate view but you can query group using below code

    import-module operationsmanager

    New-SCOMManagementGroupConnection

    $gp=Get-SCOMGroup -DisplayName "operations Manager Agents"

    Get-SCOMMonitoringObject -Group $gp |select HealthState,Displayname

    Regards


    sridhar v


    Thursday, June 19, 2014 11:12 AM
  • Thank you that worked! :)
    Thursday, July 31, 2014 6:42 PM