After a productive Friday night/Saturday morning, Iโve made a number of script updates. Letโs start off with the most interesting of them. The Get-AutopilotESPStatus script has been updated to version 3.6 to add one significant piece of new functionality: It can now dump a list of all the MDM policies that have been received by the device. To use this, include the -ShowPolicies switch. The output will look something like this, with the left column showing the OMA-URI and the right one showing the value:
The CSPVersions response is very long, as are some other properties, so I configured the list to wrap the values within the columns. Without that wrapping, you can see more details:
Itโs not always pretty (PowerShell really doesnโt like displaying binary data like encoded certificates), but at least you can scan the list, in chronological order, to see what policies were pushed to the device.
That new switch is off by default, as itโs more of an advanced operation.






3 responses to “Updated troubleshooting script posted”
Awesome work. Will help us a lot in our troubleshooting. Any knowledge when (if?) we will see any built in functionality for this just in the old “gpresult” days or will it continue to be scripts developed by you and the community? ๐
LikeLike
We’re working on it.
LikeLike
Great work Michael. I’ve already used this script a lot to troubleshoot my builds ๐
LikeLike