Zum Inhalt
Kaffeeundcode
Skriptbibliothek
PowerShell 06.10.2026

PowerShell

Get AutopilotEvents

148_Get-AutopilotEvents.ps1

<#
.SYNOPSIS
    Listet Autopilot Events auf.

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

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

    Zeigt Events im Zusammenhang mit Autopilot Deployments.
    Erfordert die Berechtigung 'DeviceManagementServiceConfig.Read.All'.

.NOTES
    File Name: 148_Get-AutopilotEvents.ps1
    Author: Mattia Cirillo
    Version: 1.0
#>

param()

Get-MgDeviceManagementWindowsAutopilotDeviceIdentity | Select-Object -First 10 | ForEach-Object {
    Get-MgDeviceManagementWindowsAutopilotDeviceIdentityDeploymentProfile -WindowsAutopilotDeviceIdentityId $_.Id
}