Microsoft Operations Manager

Computer Property

The Computerproperty gets the name of the computer that raised the alert.

[VBScript] Alert.Computer



Return Value



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


The following example sets the Computerproperty based on the event that caused MOM to invoke the script. The Computerproperty is set to the name of the computer that logged the event.

Function MakeAlertFromEvent()
	Dim objAlert
	Dim objEvent

	If (ScriptContext.IsEvent()) Then
		Set objEvent = ScriptContext.Event
		Set objAlert = ScriptContext.CreateAlert()

		objAlert.Computer = objEvent.SourceComputer
		objAlert.ComputerDomain = objEvent.SourceDomain
		objAlert.Description = objEvent.EventParameter(1)
		Set objAlert = Nothing
	End If

	Set objEvent = Nothing

	Set MakeAlertFromEvent = objAlert
End Function


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

See Also

Alert Object

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