Posted on 08-04-2015 11:33 AM
I'm fairly new to the Mac OS X world and want to learn more about custom configuration using MCX and Configuration Profile. Do anyone recommend any resources to learn from the basics so that I'm not always using templates that someone built. I would like to be able to learn it and customize it to my flavor.
Posted on 08-04-2015 12:34 PM
There is this book that covers MCX: http://www.amazon.com/Enterprise-Managed-Preferences-Edward-Marczak/dp/1430229373
The authors are quite active in the Mac community and many people still reference this book even though Apple is slowly moving away from MCX toward Configuration Profiles.
At the end of the day, all you're doing is managing preferences. https://github.com/timsutton/mcxToProfile is a pretty good tool for making custom profiles. Casper also has the option of making profiles out of PLIST files. Create a new config profile, go to the custom payload, and upload the PLIST with the preferences you wish to manage.
Ultimately if you're making your own custom profiles make sure that you are testing the particular preference you want. Don't just copy an entire PLIST as it may include more preferences than you want to manage. Most preferences will be located in ~/Library/Preferences, but occasionally some vendors make preferences that aren't in the .plist format so they can't be managed via MCX or Profiles. And then you have apps that are sandboxed which means profiles do not effect them as their settings are usually located under ~/Library/Containers/ or ~/Library/Group Containers/.
On a non-technical note, only manage preferences when there is a particular need. It's going to effect your clients and each client will work in different ways. Don't lock things down without a reason.
Posted on 08-04-2015 11:46 PM
And then you have apps that are sandboxed which means profiles do not effect them as their settings are usually located under ~/Library/Containers/ or ~/Library/Group Containers/.
I've read that a couple of times now but i doubt that it's true.
I tested this by creating a profile for com.microsoft.Outlook with Weather_in_celsius = 1,
which is in ~/Library/Containers/. Works fine for me...
Posted on 08-05-2015 09:52 AM
And then you have apps that are sandboxed which means profiles do not effect them as their settings are usually located under ~/Library/Containers/ or ~/Library/Group Containers/.
Configuration profiles do affect sandboxed apps.
-Greg
Posted on 08-05-2015 01:52 PM
@gregneagle That's new to me. Maybe it's the app I was testing, but it didn't work for me (I think the app in question was MS Remote Desktop). Do you have an app (and a preference value as an example) that I could test?
Posted on 08-05-2015 01:54 PM
@Chris Hmm I'll have to test this out now. I tested it out in one MS app which was MS Remote Desktop and I forget the value but it didn't work. Looks like I'll need to go back and do some more testing. Thanks for the correction.
Posted on 08-05-2015 02:21 PM
bpavlov: What? An app from Microsoft that doesn't pay attention to standard OS X preferences? Unheard of!! <cough>Office 2016</cough>
There are lots of apps that do funky things that make them incompatible with managed preferences, but sandboxing is not one of those things.
Posted on 08-09-2015 04:35 AM