Zum Inhalt
Kaffeeundcode
Skriptbibliothek
PowerShell 06.10.2026

PowerShell

Get TroubleshootingEvents

78_Get-TroubleshootingEvents.ps1

<#
.SYNOPSIS
    Zeigt Troubleshooting Events.

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

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

    Liest Admin-Events aus dem Troubleshooting-Bereich.
    Erfordert die Berechtigung 'DeviceManagementServiceConfig.Read.All'.

.NOTES
    File Name: 78_Get-TroubleshootingEvents.ps1
    Author: Mattia Cirillo
    Version: 1.0
#>

param()

Get-MgDeviceManagementTroubleshootingEvent -Top 20 | Format-Table EventDateTime, CorrelationId, EventName