Hi,
I was looking for a way to remove all profiles of the previous MDM server via command line / script but didn't find one so I wrote one and thought i'd share...
#!/bin/bash
# Get a list from all profiles installed on the computer and remove every one of them
for identifier in $(profiles -L | awk "/attribute/" | awk '{print $4}')
do profiles -R -p $identifier
done
After this you can do sudo jamf manage mdm to get all the right profiles installed....
