Microsoft Operations Manager

Name Property

The Nameproperty gets the name of the processing rule that raised an alert.

[VBScript] Alert.Name



Return Value



The Nameproperty is read-only when used with an Alertobject provided to the script by MOM. This property is read/write when used with a new Alertobject created with the ScriptContext.CreateAlertmethod.


The following example sets the Nameproperty based on the alert that caused MOM to invoke the script. The Nameproperty is set to the name of the processing rule that raised the alert.

Function CreateNewAlert()
	Dim objCreatedAlert
	Dim objAlert

	Set objCreatedAlert = ScriptContext.CreateAlert()

	If (ScriptContext.IsAlert()) Then
		Set objAlert = ScriptContext.Alert

		objCreatedAlert.Name = objAlert.Name
		objCreatedAlert.AlertLevel = 50
		objCreatedAlert.Owner = "[unassigned]"
		objCreatedAlert.ResolutionState = 0  ' New
		Set objCreatedAlert = Nothing
	End If

	Set objAlert = Nothing

	Set CreateNewAlert = objCreatedAlert
End Function


Windows NT/2000: Requires Windows 2000 or later
Version: Requires MOM SP1

See Also

Alert Object

Did you find this information useful? Please send your suggestions and comments about the documentation to