Issues removing old RADIUS profile when enrolling laptops

Daryl
New Contributor

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.

!/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

check to see if the profile is installed on the machine, and attempt to remove it if found.

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?16f162a0895f4e1aa4593d036094b668

0 REPLIES 0