Use-PowerCLIContext

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

Syntax

-PowerCLIContext  <PowerCliContext>
[-SkipImportModuleChecks]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
PowerCLIContext
PowerCliContext named
  • pipeline
  • Specifies the VMware PowerCLI execution context to apply.
    optional
    SkipImportModuleChecks
    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

    Feedback

    Was this page helpful?