Skript Beschreibung
Zusammenfassung: Licensing-Optimizer - Reports on unassigned or unused license seats.
Prüfstatus: Ungeprüft
Aus dem bestehenden GitHub-Bestand übernommen; fachliche und Tenant-Abnahme ausstehend.
Identifies licensed users who are not utilizing their assigned
services or where licenses are assigned but not activated.
#>
[CmdletBinding()]
param ()
process {
Write-Host "[INFO] Analyzing license utilization..." -ForegroundColor Cyan
try {
# Get all subscribed SKUs
$Skus = Get-MgSubscribedSku -All
$Report = @()
foreach ($Sku in $Skus) {
$Consumed = $Sku