Get-HubContext

Synopsis

Get the current context or all available contexts

Syntax

__AllParameterSets

Get-HubContext [-ListAvailable] [<CommonParameters>]

Description

If ListAvailable provided, list all PSHubContext set in PowerShell session. If ListAvailable not provided, get the current PSHubContext who will be used for all other Hub commands.

Examples

Example 1

PS C:\> Get-HubContext

Obtain the current context

Example 2

PS C:\> Get-HubContext -ListAvailable

Obtain the available contexts

Parameters

-ListAvailable

List all Hub context

Type: System.Management.Automation.SwitchParameter
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  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 Get-HubContext -detailed". For technical information, type "Get-Help Get-HubContext -full".

Devolutions Forum logo Give us Feedback