Posted on 10-06-2015 05:08 AM
We've been setting up a lab and 4 of our 10 Mac Minis have old policy profiles on them even after being deleted from the JSS. I've booted into the recovery partition in hopes of using terminal to locate and delete these left over profiles. Normally I'd just re-image them but the teacher has software & files they don't want to lose. Does anyone have any suggestions on how to go from here?
Solved! Go to Solution.
Posted on 10-06-2015 07:56 AM
Configuration profiles? Were they installed manually or via the JSS?
If you do a
sudo jamf removeMdmProfile
when booted from the normal OS, and the profiles aren't removed, they weren't pushed by the JSS
(sudo jamf mdm will re-do the MDM profiles and any scoped to the client to get them back).
If you have "rogue" profiles that are not removable, you can remove the contents of:
/private/var/db/ConfigurationProfiles
/Library/Managed Preferences
Then restart. You'll need to run the sudo jamf mdm (or possibly sudo jamf enroll -prompt) to re-obtain the MDM and any scoped config profiles on the device.
Posted on 10-06-2015 07:56 AM
Configuration profiles? Were they installed manually or via the JSS?
If you do a
sudo jamf removeMdmProfile
when booted from the normal OS, and the profiles aren't removed, they weren't pushed by the JSS
(sudo jamf mdm will re-do the MDM profiles and any scoped to the client to get them back).
If you have "rogue" profiles that are not removable, you can remove the contents of:
/private/var/db/ConfigurationProfiles
/Library/Managed Preferences
Then restart. You'll need to run the sudo jamf mdm (or possibly sudo jamf enroll -prompt) to re-obtain the MDM and any scoped config profiles on the device.
Posted on 10-08-2015 06:34 AM
Thanks so much for that! I found another work around by the time I got your response, however we've been able to use it already to help in another issue. Thanks a ton!
Posted on 11-15-2016 03:28 AM
Brilliant, thank you!
Posted on 07-08-2019 07:55 AM
hi,
would it be possible to remove a particular configuration profile in recovery mode or do i have to axe all of them?