Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Passing Alert GUID to Powershell Script

3 views
Skip to first unread message

Steve Giordano

unread,
Jan 4, 2010, 12:41:01 PM1/4/10
to
I created a Rule that monitors for the event ID's 1215 and 1216 from the
Operations Manager log to tell me when servers are put in and taken out of
maintenance mode. A subscription is also configured for alerts generated by
this Rule to kick off a powershell script and pass it the Alert GUID. This
is setup in the form of a Command Channel with the following settings:

- Full path of the command file: C:\Scripts\MaintenanceModeScript.ps1
- Command Line Parameters: $Data/Context/DataItem/AlertID$
- Startup folder for the command line: C:\Scripts

It doesn't seem to be passing the AlertID. I also have a Command Channel
where I'm using the "echo" command to write the variable
$Data/Context/DataItem/AlertID$ to a text file and it's not working either.
Any help would be greatly appreciated!!! Thank you all!
--
Thank you,
Steve Giordano

Steve Giordano

unread,
Jan 4, 2010, 12:43:01 PM1/4/10
to
Oops. Sorry, meant to post this in the SCOM discussion group!!
--
Thank you,
Steve Giordano
0 new messages