Delete Device Profile from Command Line

maiksanftenberg
Contributor II

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

1 ACCEPTED SOLUTION

Jedberg
New Contributor III

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 solution in original post

5 REPLIES 5

Jedberg
New Contributor III

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

maiksanftenberg
Contributor II

Thanks Jesse.

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

Thanks.

Jedberg
New Contributor III

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

maiksanftenberg
Contributor II

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

dlondon
Valued Contributor

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