Status of particular service running on all SCOM agents. RRS feed

All replies

  • It depend on how you monitor particular service.
    1) Using Management pack template--> windows Service to create a windows service monitor
    Monitoring a Service in SCOM
    2) Create a status view to view this service status
    Generating a report for a specific Windows Service in System Center Operations Manager 2007 R2

    Friday, June 21, 2019 3:17 AM
  • Hi,

    Do you want to get a specific service status for all the managed agent computer? For example, we want to get Windows Update status for each agent computer managed by operations manager. If this is the case, we may run the below sample script.

    $agents = (get-scomagent).displayname
    foreach ($a in $agents)

    $b =  get-service wuauserv -computername $a -erroraction 'silentlycontinue'
    if ($?)
    write-host $a ": " $b.Status
    {Write-Host $a ": unable to get the service status!"}

    Save this to .ps1 file and run it in the management server. Here's the screenshot for your reference:

    Hope the above information helps.


    Alex Zhu
    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact
    Friday, June 21, 2019 3:18 AM