Disconnect-MgGraph
Use Disconnect-MgGraph to sign out.
Syntax
Default (Default)
Disconnect-MgGraph
Description
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.
Examples
Example 1: Using Disconnect-MgGraph
PS C:\> Disconnect-MgGraph
Use Disconnect-MgGraph to sign out.