locked
How to use Powershell to add data to custom fields in System center operations manager (SCOM) - SCOM 2012 R2 RRS feed

  • Question

  • Powershell for SCOM 2012 R2

    How do I add data to the custom fields section of an alert using Powershell?

    This is my scenario:

    I'm using System center Orchestrator to monitor new and updated alerts. Then I'm taking certain alerts and automatically forwarding them to our ticketing system.  I have a request to take ALL alerts from a specified SCOM management pack (i.e. "Mgmt Pack A") and forward them to a particular queue in our ticketing system.

    My thought process was to figure a method to write data to a custom field (i.e. Custom Field :1) in all alerts from "Mgmt Pack A" and then use SCORCH to filter all alerts with that data. Once I have all the alerts filtered, I can easily forward them to the correct queue in or ticketing system.

    1. Can I use Powershell to write data to the custom fields of an alert, if so what code can I use top point me in the right direction.

    2. is it possible to write to the custom field section for ALL alerts coming from a specific management pack in SCOM?

    Kind Regards and thank you.

    • Moved by Bill_Stewart Wednesday, September 4, 2019 6:34 PM Off-topic
    Thursday, March 14, 2019 6:44 PM

All replies