Set-DCContext
Synopsis
Set the current PSHubContext
Syntax
__AllParameterSets
Set-DCContext -PSHubContext <PSHubContext> [<CommonParameters>]Description
Set the current PSHubContext to the one provided
Examples
PS C:\> $availCtxs = Get-DCContext; Set-DCContext -PSHubContext $availCtxs[2]The user fetches all available contexts and set the third one as the new current context.
Parameters
-PSHubContext
Set Devolutions Cloud 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-DCContext -detailed". For technical information, type "Get-Help Set-DCContext -full".
Last updated
Was this helpful?