Zum Inhalt
Kaffeeundcode
Skriptbibliothek
PowerShell 06.10.2026

PowerShell

Get TenantSecureScore

137_Get-TenantSecureScore.ps1

<#
.SYNOPSIS
    Ruft den Identity Secure Score ab.

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

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

    Zeigt den aktuellen Sicherheits-Score des Tenants.
    Erfordert die Berechtigung 'SecurityEvents.Read.All' (variiert).

.NOTES
    File Name: 137_Get-TenantSecureScore.ps1
    Author: Mattia Cirillo
    Version: 1.0
#>

param()

Connect-MgGraph -Scopes "SecurityEvents.Read.All"

Get-MgSecuritySecureScore -Top 1 | Select-Object CreatedDateTime, CurrentScore, MaxScore