Alert.ServerRole Property
Gets or sets the service that the alert is associated with.
Alert.ServerRole
Access
Read/Write
Return Value
String
Remarks
The ServerRoleInstance property represents a specific instance of the service described by the ServerRole property. In many cases, a computer will be running more than one instance of a type of service.
State monitoring uses the ServerRole, ServerRoleInstance, Component, and ComponentInstance properties to determine a computer's overall state, and to precisely specify the cause of any problems. The ServerRoleInstance property specifies which service caused the alert. The ComponentInstance property, in turn, specifies which component within the service caused the alert.
The ServerRole property is read-only when used with an Alert object provided to the script by MOM. This property is read/write when used with a new Alert object created with the ScriptContext.CreateAlert method.
Requirements
Platforms: Requires Windows 2000 or later
Version: Requires MOM 2005 or later
See Also
Alert Object | Alert.ServerRoleInstance Property | Alert.Component Property | Alert.ComponentInstance Property