Dear Community,
we are switching from Meraki to Jamf and would like to trigger the "Erase all Content and Settings" function on our employees' Macs via the Meraki command line without the employee having to make an entry.
Do you have any ideas on how we can implement this?
I've currently found the following option:
1. make the user an admin
2. trigger the setting
Here the employee still has to enter his user password:
sudo dseditgroup -o edit -a username admin
/usr/bin/su \\- "`/usr/bin/stat -f%Su /dev/console`" -c "/usr/bin/open '/System/Library/CoreServices/Erase Assistant.app'"