Wiping and Unmanaging Computers from Jamf Pro
The following workflow can be used to both wipe and unmanage a computer from Jamf Pro. The scope can be set to target individual computers or a group of computers.
Requirements
A computer with Composer, running the same version of macOS as the target computers
Note: Target computers must be running macOS 10.13 or later to use this workflow.
Procedure
-
On a computer with Composer, download the latest available macOS Installer from the Mac App Store. It should download to the Applications folder.
-
To package the macOS Installer, do the following:
-
Open Composer and authenticate locally.
-
Drag the macOS Installer from the Applications folder to the sidebar in Composer. The installer appears under the Packages heading.
-
In the toolbar, click Build as PKG.
-
Select a location to save the package, and then click Save.
-
-
Upload the package to your distribution point using Jamf Admin, or the Jamf Pro web application if your principal distribution point is cloud-hosted.
For more information on uploading packages, see the Managing Packages section of the Jamf Pro Administrator's Guide. -
Log in to Jamf Pro.
-
Click Computers at the top of the page.
-
Click Policies.
-
Click New.
-
To configure the General payload, do the following:
-
Enter a name for the policy in the Display Name field.
-
Under Trigger, select a policy trigger (e.g., Recurring Check-in).
-
In the Execution Frequency pop-up menu, select an execution frequency (e.g., Once per computer).
-
-
To configure the Packages payload, do the following:
-
Click Packages in the sidebar.
-
Click Configure.
-
Locate the macOS Installer package created in step three and click Add.
-
-
To configure the Files and Processes payload, do the following:
-
Click Files and Processes in the sidebar.
-
Enter a command in the Execute Command field similar to the following:
"/Applications/Install macOS High Sierra.app/Contents/Resources/startosinstall"
--eraseinstall --newvolumename
"Macintosh HD"
--agreetolicense &
Note: You must replace the path to the startosinstall binary in the above command with the path of the package source created in step two.
-
-
Click the Scope tab, and then configure the target computers or computer groups.
-
Click Save.
The target computers are wiped and reinstall macOS when they meet the conditions specified by the policy trigger configured in step eight. -
(Optional) To delete the device records, do one of the following:
-
To delete a single computer record from Jamf Pro:
-
Click Computers at the top of the page.
-
Perform a simple or advanced computer search, and then click on the target computer.
-
Click the Management tab
-
Click Delete.
The computer inventory record is deleted from Jamf Pro.
-
-
To delete a group of computer records from Jamf Pro:
-
Click Computers at the top of the page.
-
Navigate to the target computer group by clicking either Smart Computer Groups or Static Computer Groups in the sidebar, and then selecting the target group.
-
Click View.
-
Click Action.
-
Select Delete Computers and click Next.
-
Click Delete Computers.
The computer inventory records are deleted from Jamf Pro.
-
-