Projects/OSDScripts/Scripts/Autopilot/Get-AutopilotEvents.ps1

function Get-AutopilotEvents {
    [CmdletBinding()]
    param ()
    Get-WinEvent -MaxEvents 25 -LogName 'Microsoft-Windows-ModernDeployment-Diagnostics-Provider/AutoPilot' | Sort-Object TimeCreated | Select-Object TimeCreated, Id, Message | Format-Table
}