Get-PowerCLIContext

This cmdlet retrieves the VMware PowerCLI execution context: the imported VMware PowerCLI modules and their established connections.

Syntax

Output

VMware.VimAutomation.Common.Types.V1.ExecutionContext.PowerCliContext

Examples


Example 1

PS C:\> $context = Get-PowerCLIContext

Creates a variable to retrieve the current VMware PowerCLI context.

Related Commands

Feedback

Was this page helpful?