Disconnect-AADToolkit.ps1

1
2
3
4
5
6
7
8
9
10
11
12
<#
.SYNOPSIS
    Disconnects the current session of the Azure AD Toolkit module.
.DESCRIPTION
    This command will disconnect Microsoft.Graph from the current session. Required when switching between different tenants.
.EXAMPLE
    PS C:\>Disconnect-AADToolkit
    Connect to home tenant of authenticated user.
#>

function Disconnect-AADToolkit {
    Disconnect-MgGraph
}