Description
This article provides context around the commands: sudo profiles renew -type enrollment
and sudo profiles show -type enrollment
which can be used for troubleshooting or enrolling computers using Automated Device Enrollment after the Setup Assistant.
What do these commands do?
sudo profiles show -type enrollment
: shows the current Automated Device Enrollment configuration to which the device is assigned.sudo profiles renew -type enrollment
: is used to enroll or re-enroll a computer into Jamf School using Automated Device Enrollment. When the command is run, the computer obtains the Automated Device Enrollment configuration and prompts the user to install the MDM profile. Please note that when enrolling using this method, some of the settings from Jamf School PreStage Enrollment will not apply, for example Account Creation.
When to use each command?
sudo profiles show -type enrollment
:Is used to confirm the device is registering as being assigned to a Jamf School PreStage enrollment prior to running the renew command
If no results are found, ensure the computer is assigned to the Jamf School MDM server in Apple School Manager or Apple Business Manager and assigned to a PreStage Enrollment in Jamf School
sudo profiles renew -type enrollment
:Some reasons for using the command are listed below:
If we cannot wipe a device to go through Automated Device Enrollment in the Setup Assistant
If we need to restore a time machine backup of an unenrolled device prior to enrolling in Jamf School
If a device did not enroll in the Setup Assistant
If we don't see the Device Enrollment notification populate in the upper right-corner of the screen:
Ensure the device is connected to a network
Pull up your notifications to manually check, or Disable Do Not Disturb if enabled and try the command again
More Resources
For information on other actions possible with the profiles command, use the man command in Terminal on a Mac: man profiles
.