I created a config profile to enable time machine. Since most of the Macs in our environment are not MDM capable, pushing that profile is not going to serve the purpose. So I though of creating a policy that can be made available through self service. I have the profile downloaded as a .mobileconfig file. Can someone please guide me as to how should I package it so that I can add it to a profile ? Also the mobile users are not local admins on their Macs.
Solved
how to package mobileconfig
Best answer by mm2270
Well, that could be why. So, in your postinstall script, you need to either escape the spaces with a backslash , or enclose the entire path in double quotes.
Examples of both.
Escaping spaces
/usr/bin/profiles -I -F /private/tmp/my settings.mobileconfig
Quoting the path
/usr/bin/profiles -I -F "/private/tmp/my settings.mobileconfig"
The spaces would explain why it likely didn't work, unless you did one of the above to ensure the spaces were handled in the script. I suggest next time avoid using spaces in the profile name if possible, just to make things less error prone, but overall it should be OK to use them.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
