Disconnect-MgGraph
Once you're signed in, you'll remain signed in until you invoke Disconnect-MgGraph. Microsoft Graph PowerShell automatically refreshes the access token for you and sign-in persists across PowerShell sessions because Microsoft Graph PowerShell securely caches the token.
Syntax
Disconnect-MgGraph
[-ProgressAction <ActionPreference>]
[<CommonParameters>]
Description
Use Disconnect-MgGraph to sign out.
Examples
Example 1: Using Disconnect-MgGraph
PS C:\> Disconnect-MgGraph
Use Disconnect-MgGraph to sign out.
Parameters
-ProgressAction
{{ Fill ProgressAction Description }}
Type: | ActionPreference |
Aliases: | proga |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Inputs
None
Outputs
Microsoft.Graph.PowerShell.Authentication.IAuthContext