Select-HubContext

Synopsis

Select another PSHubContext to change the current PSHubContext

Syntax

__AllParameterSets

Select-HubContext -ApplicationKey <string> [<CommonParameters>]

Description

Select another PSHubContext to change the current PSHubContext who will be used for all Hub commands.

Examples

PS C:\> $availCtxs = Get-HubContext; Select-HubContext -ApplicationKey $availCtxs[2].ApplicationKey

The user fetches all available contexts and set the third one as the new current context.

Parameters

-ApplicationKey

Select a connected Hub context to current session

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: true
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Notes

For more information, type "Get-Help Select-HubContext -detailed". For technical information, type "Get-Help Select-HubContext -full".

Devolutions Forum logo Donnez-nous vos commentaires