Skip to main content
Question

Send 'Wipe Computer' management command in bulk

  • May 13, 2026
  • 2 replies
  • 16 views

SteveWalker
Forum|alt.badge.img+4

I'm looking for a way to send the 'wipe computer' command in bulk to our Labs so that they can be refreshed at the end of semester.
I gather this will require use of an API client and secret.
I'm wondering if anyone has come across a script that can do this?

2 replies

Forum|alt.badge.img+9
  • New Contributor
  • May 13, 2026

I would suggest a configuration profile. 


PaulHazelden
Forum|alt.badge.img+13

When I do a clean install at the end of the semester, I simply use the Apple installer and the built in command line tool.
Step 1 : Send the full installer of whatever flavour you want to install to the Labs.

Step 2 ; When you are ready and the installer is actually there on the Macs. Send the command…

echo 'ADMIN_PASSWORD' | '/Applications/Install macOS Tahoe.app/Contents/Resources/startosinstall' --eraseinstall --agreetolicense --forcequitapps --allowremoval --user ADMIN_USERNAME --stdinpass --nointeraction &

Put in your Admin password and username in that line and send it.

I do both steps as a policy.
The & at the end of the line of code, means the script will complete and not fail. Without it, the reboot will terminate the script and you will see a fail in the policy.

You can get elaborate with how you send the password. You can input it in the policy and pull it into the script as a Parameter. I have seen people encrypt the password and unencrypt it for the script.

I get the installer by using the Download Full Installer app. Upload the package it gets to Jamf, and then send and install the package on the Lab Macs.
Script is the Tahoe one, it requires the Administrator account to authenticate it, so do some of the previous versions.

There are some Apps out there that are written to do this same thing. I have just found that the “Apple” way tends to be the most reliable.