Skip to main content
Question

Report on MDM Compatibility

  • October 31, 2014
  • 4 replies
  • 24 views

DBrowning
Forum|alt.badge.img+25

Is there a way to see all machines that report "MDM Capability:No" under the General Section of inventory?

4 replies

Forum|alt.badge.img+13
  • Contributor
  • November 3, 2014

I use an extension attribute to search that info, and then you can create a smart group based on the result.

This attribute verifies that the client has enrolled to the JSS. Results returned are "Enabled" or "Not Enabled" based on whether the client has an MDM profile supplied by the JSS.

#!/bin/sh
mdmEnrollmentProfileID="00000000-0000-0000-A000-4A414D460003"
enrolled=`/usr/bin/profiles -C | /usr/bin/grep "$mdmEnrollmentProfileID"`

if [ "$enrolled" != "" ]; then
    echo "<result>Enrolled</result>"
else
    echo "<result>Not Enrolled</result>"
fi

I believe it originated from another JAMFNation user, though I don't have their name on me at the moment.


Forum|alt.badge.img+10
  • New Contributor
  • November 3, 2014

What @jennifer_unger posted is an EA Template built-in. It works very well.


Forum|alt.badge.img+13
  • Contributor
  • November 3, 2014

@millersc I knew it came from somewhere good! :-)


Forum|alt.badge.img+7

It does not necessarily work, the issue I've seen is /var/db/ConfigurationProfiles/MDM_ComputerPrefs.plist is missing, the machines say they've successfully enrolled but are showing up as MDM Compatibility: No the below script finds machines missing the plist that controls MDM. I've added it as an extension attribute so I can identify effected machines.

if [ ! -f /var/db/ConfigurationProfiles/MDM_ComputerPrefs.plist ]; then echo "<result>no</result>"
else echo "<result>yes</result>"
fi