Skip to main content
Solved

Delete Device Profile from Command Line


Forum|alt.badge.img+9

Hi.
We are using a Configuration Profile to push Password settings to our clients that are not connected to the Domain.
In order to apply some Kiosk Settings to this machines we need to remove this Configuration Profile (Device Profile) from the machines.
The Profile is scoped to not apply to machines that are Kiosk machines. But we are searching for a way to remove the profile during the initial setup.

During search I came across "Profiles" for command line.
But this only can remove User applied Profiles.

Is there any way to remove a Device Profile?

Thanks for your help

Best answer by Jedberg

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

View original
Did this topic help you find an answer to your question?

5 replies

Forum|alt.badge.img+16
  • Contributor
  • 19 replies
  • July 30, 2014

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


Forum|alt.badge.img+9
  • Author
  • Valued Contributor
  • 99 replies
  • July 30, 2014

Thanks Jesse.

I think I totally missed this :-(.
Is there anyway to see the "real" name of this profiles?

Thanks.


Forum|alt.badge.img+16
  • Contributor
  • 19 replies
  • Answer
  • July 30, 2014

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


Forum|alt.badge.img+9
  • Author
  • Valued Contributor
  • 99 replies
  • July 30, 2014

Great! Thanks... I guess you got it from --help right?


dlondon
Forum|alt.badge.img+14
  • Honored Contributor
  • 375 replies
  • May 12, 2016

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


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings