ScriptContext.Parameters Property

Gets a VarSet object that contains the parameters sent from MOM when the script was invoked.

 ScriptContext.Parameters

Access

Read-only

Return Value

Object (VarSet)

Remarks

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

Examples

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

Function GetParam(strParamName)
    Dim objParameters, vntVariable

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

    Set objParameters = Nothing

    GetParam = vntVariable
End Function

Requirements

Platforms: Requires Windows 2000 or later

Version: Requires MOM 2000  or later

See Also

ScriptContext Object