Posted on 02-24-2020 03:11 PM
I'm happy to see bootstrap token support in Jamf 10.19, but I only want to run profiles install -type bootstraptoken
for users that don't have a token escrowed. I couldn't find an existing EA here to help scope my policy, so I put one together. Hopefully someone finds this useful :)
#!/bin/bash
tokenStatus=$(profiles status -type bootstraptoken | awk '{ print $7 }' | sed 1d)
if [ $tokenStatus == "NO" ]; then
echo "<result>Not escrowed</result>"
elif [ $tokenStatus == "YES" ]; then
echo "<result>Escrowed</result>"
else
echo "<result>Unknown status</result>"
fi
Posted on 02-25-2020 10:03 AM
@sshort Thanks for sharing your script for this. :)
Posted on 11-10-2020 09:23 PM
Thanks!!
Posted on 11-12-2020 12:38 PM
Great 👍
Posted on 11-12-2021 04:46 PM
Just what I was looking for! Thank you 😀
Posted on 11-23-2021 01:46 PM
what do you mean by "unknown status"
Posted on 03-14-2022 11:36 AM
Doesn't seem to work on Monterey
Posted on 03-14-2022 11:42 AM
12.3? Works fine for us on 12.0–12.2.1.
Posted on 03-14-2022 11:53 AM
Maybe I'm doing something wrong... It's blank.
Posted on 03-14-2022 12:24 PM
ok never mind, it just takes time to appear. Thx
Posted on 09-09-2022 07:13 AM
Is there a feature request to USE THE BUILT IN INVENTORY ITEM as a searchable criteria in either smart group or advanced search?
Seems ludicrous that we need to create an EA for something that is already reported in the inventory of a computer.