Zum Inhalt
Kaffeeundcode
Skriptbibliothek
PowerShell 06.10.2026

PowerShell

Disconnect Graph

90_Disconnect-Graph.ps1

<#
.SYNOPSIS
    Trennt die Verbindung zu Graph.

.DESCRIPTION
    <!-- library-status:start -->
    Prüfstatus: Ungeprüft
    Windows- und Tenant-Abnahme ausstehend; keine pauschale Produktionsfreigabe.

    <!-- library-status:end -->

    Löscht den Token-Cache der aktuellen Sitzung.

.NOTES
    File Name: 90_Disconnect-Graph.ps1
    Author: Mattia Cirillo
    Version: 1.0
#>

param()

Disconnect-MgGraph
Write-Host "Verbindung getrennt." -ForegroundColor Yellow