Use-PowerCLIContext
This cmdlet applies the VMware PowerCLI execution context: the imported VMware PowerCLI modules and their established connections.
Syntax
Parameters
Required | Parameter Name | Type | Position | Features | Description |
---|---|---|---|---|---|
required |
|
PowerCliContext | named |
|
Specifies the VMware PowerCLI execution context to apply. | optional |
|
SwitchParameter | named |
|
Specifies to skip checks whether the imported VMware PowerCLI modules come in the same version and from the same installation location as the source session modules. |
Output
Examples
Example 1
PS C:\> Use-PowerCLIContext -PowerCLIContext $context
Applies the $context execution context with its imported modules and established connections.
Related Commands
PowerCLIContext
This cmdlet retrieves the VMware PowerCLI execution context: the imported VMware PowerCLI modules and their established connections.
This cmdlet applies the VMware PowerCLI execution context: the imported VMware PowerCLI modules and their established connections.