Set the current PSHubContext
Set-HubContext -PSHubContext <PSHubContext> [<CommonParameters>]
Set the current PSHubContext to the one provided
PS C:\> $availCtxs = Get-HubContext; Set-HubContext -PSHubContext $availCtxs[2]
The user fetches all available contexts and set the third one as the new current context.
Set Hub context to current session
Type: Devolutions.Hub.PowerShell.Entities.PowerShell.PSHubContext
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
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.
For more information, type "Get-Help Set-HubContext -detailed". For technical information, type "Get-Help Set-HubContext -full".