Provides access to the name of the computer that raised the alert.
ScriptContext.Alert.Computer ScriptContext.CreateAlert.Computer
Read Only | When used with an alert provided to the script by the Microsoft Operations Manager product. |
Read/Write | When used with a new alert created with the ScriptContext.CreateAlert Method. |
String.
To create a new alert and set the Computer property, enter:
Dim MYalert Dim MYevent set MYalert = ScriptContext.CreateAlert set MYevent = ScriptContext.Event set MYalert.Computer = MYevent.SourceComputer
This example sets the Computer property based on the event that caused the Microsoft Operations Manager 2000 product to invoke the script. The Computer property is set to the name of the computer that logged the event.