First, show the profiles I have.
sudo profiles show -type enrollment
Second,remove all the profiles
sudo profiles remove -all
An error occurs:
profiles: There are profiles installed that marked non-removable
First, show the profiles I have.
sudo profiles show -type enrollment
Second,remove all the profiles
sudo profiles remove -all
An error occurs:
profiles: There are profiles installed that marked non-removable
I found an answer here. https://graffino.com/til/UmkCdmEx7v-remove-a-non-removable-mdm-profile-from-macos-without-a-complete-wipe
cd /var/db/ConfigurationProfiles
rm -rf *
mkdir Settings
touch Settings/.profilesAreInstalled
Suppression de profil MDM de supervision
Supervision d’appareils Apple
1️⃣ Turn of system integrity
Shut down computer. Boot up computer while holding (command + R) Press ‘utilities’. Type (csrutil disable) Restart
2️⃣ Give terminal root files access
Open ‘Privacy and Security’ in ‘System Preferences’. Press ‘Privacy’ Press ‘Complete Disk Access’ Unlock with the lock button at the bottom left Add terminal.
3️⃣ Terminal Commands
Type: ‘sudo jamf -removeFramework’ into terminal, press enter. Type: ‘sudo -i’ into terminal, press enter and enter your password, press enter. Type: ‘cd /var/db/‘ into terminal, press enter. Type: ‘mv ConfigurationProfiles ConfigurationProfilesOLD’ into terminal, press enter. Type: ‘logout’ into terminal, press enter.
4️⃣ Final steps
Restart computer.
© 2022 - 2024 — McMap. All rights reserved.