Description
For troubleshooting enrollment issues, it can be useful to verify macOS is able to reach and download the Jamf management framework. Some firewalls may strip out the Jamf management framework during the download.
Requirements
A computer enrollment invitation must be created. For more information see, Sending a Computer Enrollment Invitation in the Jamf Pro Documentation.
You don't need a functional SMTP server, however, SMTP settings must be filled in in Jamf Pro.
Invitation Security settings:
Expiration Date can be whatever we would like for testing, 1 day may work the best.
If we are looking to run the script or commands more than once, check "Allow multiple uses".
Script to Reinstall the Jamf Management Framework
Either run this script or each command individually in Terminal.
#!/bin/zsh --no-rcs
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
# INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
# PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
# FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
# OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
# DEALINGS IN THE SOFTWARE.
# curl Jamf Management Framework
/usr/bin/curl -ks https://insertjamfprourl.jamfcloud.com/bin/jamf -o /tmp/jamf
# Create JMF directories
mkdir -p /usr/local/jamf/bin /usr/local/bin
# Move JMF
mv /tmp/jamf /usr/local/jamf/bin
# Make JMF executeable
chmod +x /usr/local/jamf/bin/jamf
# Creat symbolic link
ln -s /usr/local/jamf/bin/jamf /usr/local/bin
# Creates a configuration file that the jamf binary uses to find Jamf Pro
/usr/local/jamf/bin/jamf createConf -k -url https://insertjamfprourl.jamfcloud.com
# Use Enrollment invitation created under Computers > Email Invitations
/usr/local/jamf/bin/jamf enroll -invitation ##########################