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:

image

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:

image

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.


Discover more from Out of Office Hours

Subscribe to get the latest posts sent to your email.

3 responses to “Updated troubleshooting script posted”

  1. 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? ๐Ÿ™‚

    Like

    1. We’re working on it.

      Like

  2. Mads Christian Mozart Johansen Avatar
    Mads Christian Mozart Johansen

    Great work Michael. I’ve already used this script a lot to troubleshoot my builds ๐Ÿ™‚

    Like

Trending