Remove a Computer Level Configuration Profile from Command Line
1) List the computer level config profiles with their Identifier
/usr/bin/profiles profiles -C
2) Remove using profiles -R -p [identifier]
/usr/bin/profiles -R -p XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
Thanks Jesse.
I think I totally missed this
.
Is there anyway to see the "real" name of this profiles?
Thanks.
Some helpful commands:
Show Computer Level Profiles
profiles -C
User Level
profiles -L
All Profiles
profiles -P
Advanced Profile Description
profiles -C -v
Show actual Profile Settings
system_profiler -xml SPConfigurationProfileDataType <- Shows Computer Level Info
system_profiler -xml -detailLevel full SPConfigurationProfileDataType <- Shows Computer & User Level Info
Great! Thanks... I guess you got it from --help right?
Hi,
Don't know if things changed in 2 years but to list the computer level profiles and get the detail in order to see which profileUUID to choose I needed:
/usr/bin/profiles -Cv
and then once I knew which one I had to use
/usr/bin/profiles -r -p XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
where XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX was the profileUUID
The -R switch is not for computer - it's user (tells myself banging head on desk)
Regards,
David