Disconnect-HubAccount

    2025-01-21

    Disconnect-HubAccount

    SYNOPSIS

    Disconnect to Hub

    SYNTAX

    __AllParameterSets

    Disconnect-HubAccount [-ApplicationKey <string>] [-All] [<CommonParameters>]
    

    ALIASES

    This cmdlet has the following aliases,

    DESCRIPTION

    If ApplicationKey is provided, disconnect and remove PSHubContext from PowerShell session. If All is provided, disconnect and remove all PSHubContext from PowerShell session.

    EXAMPLES

    EXAMPLE 1

    PS C:> Disconnect-HubAccount -All

    Disconnect all Hub Accounts and remove all PSHubContext.

    EXAMPLE 2

    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.

    PARAMETERS

    -All

    Disconnect all Hub context

    Type: System.Management.Automation.SwitchParameter
    DefaultValue: ''
    SupportsWildcards: false
    ParameterValue: []
    Aliases: []
    ParameterSets:
    - Name: (All)
      Position: Named
      IsRequired: false
      ValueFromPipeline: false
      ValueFromPipelineByPropertyName: false
      ValueFromRemainingArguments: false
    DontShow: false
    AcceptedValues: []
    HelpMessage: ''
    

    -ApplicationKey

    Disconnect a particular connected Hub context

    Type: System.String
    DefaultValue: ''
    SupportsWildcards: false
    ParameterValue: []
    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.

    INPUTS

    OUTPUTS

    NOTES

    For more information, type "Get-Help Disconnect-HubAccount -detailed". For technical information, type "Get-Help Disconnect-HubAccount -full".