Windows Autopilot ESP Troubleshooting
Abhishek Yadav
SCCM Architect | Endpoint Mobility - Security | MDM | Intune | Azure | Autopilot | M365 | IAM | MECM | MEM
Are you someone who is responsible for managing or working with #Windows #Autopilot there is a fare chance that you are using Get-AutopilotDiagnostics script from Michael Niehaus for ESP related troubleshooting.
Well it seems to have some trouble with converting Date formats from the logs when you run it on #Win11 PC.
The error specifically, which I think is caused by system having a different time format than the one expected by the script, regional issue most probably:
cannot convert value 'lastloggedstate' to type "System.DateTime. Error "The string was not recognized as a valid date time""
So, there is an updated version of the script Get-AutopilotDiagnosticsCommunity with improvements, Read the blog from Michael for more details on enhancements:
#Windows11 #Endpoint #Intune #PowerShell #Scripts #troubleshooting #Provisioning #Mobility #EMS #Microsoft #Windows