Microsoft Operations Manager |
The Parametersproperty gets a VarSetobject that contains the parameters sent from MOM when the script was invoked.
[VBScript] ScriptContext.Parameters
Read-only
Object (VarSet)
You can set the parameters in the MOM Administrator console on the Script Properties Parameterstab for the script.
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
Windows NT/2000: Requires Windows 2000 or later
Version: Requires MOM 1.0 SP1
Did you find this information useful? Please send your suggestions and comments about the documentation to momsdk@microsoft.com.