Set-HubContext

    2025-02-17

    Set-HubContext

    SYNOPSIS

    Set the current PSHubContext

    SYNTAX

    __AllParameterSets

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

    ALIASES

    This cmdlet has the following aliases,

    DESCRIPTION

    Set the current PSHubContext to the one provided

    EXAMPLES

    EXAMPLE

    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
    ParameterValue: []
    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.

    INPUTS

    OUTPUTS

    NOTES

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