PSCmdlet.GetVariableValue Method

Returns the value of a specific session-state variable. The variants of this method can return a variable value with or without a default value.

This method provides a shortcut to information that is also available through the SessionState class.

For more information about cmdlets, see Windows PowerShell Cmdlets.

NameDescription
PSCmdlet.GetVariableValue (String)Returns the value of a specific session-state variable.
PSCmdlet.GetVariableValue (String, Object)Returns the value of a specific session-state variable or a default value if the variable does not exist.

Send comments about this topic to Microsoft.
Show:
© 2014 Microsoft