Microsoft Operations Manager

Parameters Property

The Parametersproperty gets a VarSetobject that contains the parameters sent from MOM when the script was invoked.

[VBScript] ScriptContext.Parameters

Access

Read-only

Return Value

Object (VarSet)

Remarks

You can set the parameters in the MOM Administrator console on the Script Properties Parameterstab for the script.

Examples

The following example shows how to access the parameters specified on the Script Properties Parameterstab for the script.

[VBScript] 
Function GetParam(strParamName)
	Dim objParameters, vntVariable

	Set objParameters = ScriptContext.Parameters
	vntVariable = objParameters.get(strParamName)

	Set objParameters = Nothing

	GetParam = vntVariable
End Function

Requirements

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

See Also

ScriptContext Object


Did you find this information useful? Please send your suggestions and comments about the documentation to momsdk@microsoft.com.