Set-HubContext

Synopsis

Set the current PSHubContext

Syntax

__AllParameterSets

Set-HubContext -PSHubContext <PSHubContext> [<CommonParameters>]

Description

Set the current PSHubContext to the one provided

Examples

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.

Parameters

-PSHubContext

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: ''

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 Set-HubContext -detailed". For technical information, type "Get-Help Set-HubContext -full".

Devolutions Forum logo Give us Feedback