Disconnect to Hub
Disconnect-HubAccount [-ApplicationKey <string>] [-All] [<CommonParameters>]
If ApplicationKey is provided, disconnect and remove PSHubContext from PowerShell session. If All is provided, disconnect and remove all PSHubContext from PowerShell session.
PS C:\> Disconnect-HubAccount -All
Disconnect all Hub Accounts and remove all PSHubContext.
PS C:\> Disconnect-HubAccount -ApplicationKey "24526a88-7f18-4356-95bd-11690f7bc59b;468ce2d5-ea4b-42ff-bc02-d93c71b4e554"
Disconnect the Hub account associated with the application key. The PSHubContext will also be removed.
Disconnect 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: ''
Disconnect a particular connected Hub context
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
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 Disconnect-HubAccount -detailed". For technical information, type "Get-Help Disconnect-HubAccount -full".