Posted on 09-12-2018 05:55 AM
Is there any way to detect if a computer was enrolled through User Initiated Enrolment?
JAMF Pro Cloud 10.6
10.13.4 Clients
the only way I can think of is to use exclusions for other enrolment methods i.e DEP but I am very reluctant to use Exclusions.
Posted on 10-15-2018 07:23 AM
Just posted a support ticket to get some options from JAMF about the very same need on my end,
You cannot reverse DEP enrollment criteria because that will include any machines imaged with JAMF Imaging and those processed via User-Initiated enrollment (either 10.13 or higher, or 10.12 or lower).
After two go-arounds with JAMF techs, they were stumped. Awaiting their reply.
Will share if I learn more.
Posted on 02-04-2019 11:06 AM
@jbutler47 were you ever able to figure out a way to do this?
Posted on 02-04-2019 01:20 PM
The following EA seems to do the trick, only for macOS 10.13.2 and above.
enrollType=“profiles status -type enrollment“
echo "<result>$enrollType</result>"
CLI: profiles status -type enrollment
Muchas Gracias to JAMF trainer Chris for his much-needed assistance.
Posted on 02-07-2019 03:59 PM
Awesome! Thank you @jbutler47 (and Jamf trainer Chris)!
Posted on 12-17-2019 06:21 AM
this would help me tremendously, I tried it but it doesn't show anything
Made a new EA with these lines
!/bin/bash
enrollType=“profiles status -type enrollment“
echo "<result>$enrollType</result>"
am I missing something? We're on jamfpro 10.17 thnx for the help
Posted on 12-17-2019 01:17 PM
Try this:
!/bin/bash
enrollType=$(profiles status -type enrollment)
echo "<result>$enrollType</result>"
Posted on 12-18-2019 03:22 AM
this works
thnx mnickels
Posted on 12-26-2019 06:37 AM
also change top of script to #!/bin/bash