System preference option for Profiles

Contributor III

I'm using MCX to hide certain system preferences. Everything seems to be working nicely until I tried to add a mobile profile. It tells me it can't open the "profiles" preference pane. But I tried adding to my list - but no luck.

Any suggestions?


Legendary Contributor III

From my Mac on 10.7:

$ defaults read /System/Library/PreferencePanes/Profiles.prefPane/Contents/Info CFBundleIdentifier

Looks like the correct bundle ID for it is

I checked on a 10.8 Mac and its the same.

Contributor III


Of course it couldn't have a normal name like "profiles"...had to be confusing.

Legendary Contributor III

Yeah, unfortunately Apple's Bundle IDs for their Pref Panes are kind of all over the place. Some use, some use (note the plural) Some of the names of the pane don't really match what they are called in the GUI. Some are even funkier.

I had put a small script together to get a list back from Terminal of all the bundle IDs of Apple System PrefPanes just to help with having that all in one place. Try this out-


userAccount=`who | awk '/console/{ print $1 }'`
PPList=`ls -l /System/Library/PreferencePanes/ | awk '/prefPane/{ print $NF }'`
OS=`sw_vers -productVersion | cut -d. -f1,2`

for i in $PPList; do
    # BI=`defaults read /System/Library/PreferencePanes/$i/Contents/Info CFBundleIdentifier`
    echo "$i:
    $(defaults read /System/Library/PreferencePanes/$i/Contents/Info CFBundleIdentifier)" >> /Users/$userAccount/Desktop/"$OS"_LibBundleIDs.txt

It exports out a text file to your Desktop.