-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathBootstrap Token Escrowed EA.xml
More file actions
29 lines (29 loc) · 1.14 KB
/
Bootstrap Token Escrowed EA.xml
File metadata and controls
29 lines (29 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?xml version="1.0" encoding="UTF-8"?><extensionAttribute>
<displayName>Bootstrap Token Escrowed EA</displayName>
<description>Extension attribute to report inventory information about whether or not a macOS Catalina+ device has been Bootstrapped.
https://travellingtechguy.blog/jamf-pro-extension-attribute-bootstrap/
jfilice@csumb.edu: Modified 2022/12/14
</description>
<dataType>string</dataType>
<scriptContentsMac>#!/bin/bash
# very simple Extension Attribute to collect Bootstrap information
# copy script to an EA in Jamf Pro Settings -> Computer -> Extension Attribute
# EA input type: script
# 28th of January 2020 - By Travelling Tech Guy
# https://travellingtechguy.blog
bootstrap=$(profiles status -type bootstraptoken)
if [[ $bootstrap == *"supported on server: YES"* ]]; then
if [[ $bootstrap == *"escrowed to server: YES"* ]]; then
echo "YES, Bootstrap escrowed"
result="YES"
else
echo "NO, Bootstrap not escrowed"
result="NO"
fi
else
echo "Bootstrap token not supported on server"
result="NOT SUPPORTED"
fi
echo "<result>$result</result>"</scriptContentsMac>
</extensionAttribute>