Posted on 02-02-2018 12:46 AM
We have several laptops that were enrolled in our old Meraki MDM + an enterprise WiFi certificate authenticating to a RADIUS server (now defunct). These laptops are in use, so to simplify enrolments we're using a modified QuickAdd package. Using the a pre-install script we were able to successfully remove the Meraki MDMs, but not the WiFi certificate seemingly can only be removed manually.
for identifier in $(profiles -L | awk "/attribute/" | awk '{print $4}')
do profiles -R -p $identifier
if [[ $(profiles -C | grep "${PROID}") ]]; then
profiles -R -p "${PROID}"
if [[ $(profiles -C | grep "${PROID}") ]]; then
echo "Removeal of ${PROID} failed. Exiting"
exit 1
else
echo "Removal of ${PROID} successful."
fi
fi
done
We've sent out invites to a few sample users and some of the QuickAdd PKGs are failing due to this. Has anyone else encountered this and is there a solution? We'd like to avoid manually enrolling users as it's a huge task and very time consuming. As I understand it the above script should remove all profiles. Can anyone help?