Many years ago when I was managing a fleet of computer using 10.6 I thought that I a master systems administrator because I had all my computers managed by MCX it took me years to get MCX working properly across all my systems and it saved me countless hours of time and energy managing preferences and remote settings for new and existing systems made my life so much easier.
Then 10.7 came out and with it the slow death of MCX and profile manager emerged. I was so excited but also a little disappointed many of the MCX preferences either did not work properly an required the use of both MCX and Profiles in order to fully manage computer systems MCX for 10.6 Profiles for 10.7 and then 10.8 came out!
Profile manager was much more mature and MCX was finally dead, workgroup manager had been phased out and I fully embraced profiles, trust certificates, after years of testing, reading, learning and managing systems I was finally using profiles exclusively.
One of the techniques that I used was to auto enroll users and I took two approaches to this task.
After months of struggling, creating custom packages and writing custom plist files I found a solution that made it all so much easier. Graham Gilbert created a luggage script that allows you to create an automated package that ultimately will allow you to deploy and auto enroll devices as a pkg.
Here are the steps you need to take in order to use this wonderful too.
Make sure that you have DNS properly setup if your using computers inside and outside your network make sure that you have port forwarded the DNS public IP to private IP so that you can enroll devices anywhere. Here are the ports you need to be sure are open in order to achieve this.
if your unsure then you should run the following on your server
Make sure it comes back clean your IP address and DNS record must match if it does not the package enrollment will fail.
Setup Profile Manager
To get started, you’ll need a functional Profile Manager configuration. From within Profile Manager, click on the plus sign (“+”) in the lower left corner of Profile Manager and click on Enrollment Profile. Then click on the New Enrollment Profile entry that was created and click on the Download button to download the profile onto the server (when it attempts to install, simply click cancel to cache it to your ~/Downloads directory).
Click in the drop-down menu in the upper right hand corner of the screen and then click on Download Trust Profile. This will download the Trust Profile for the MDM solution to the client (when it attempts to install, simply click cancel to cache it to your ~/Downloads directory).
The Luggage is a project to create a wrapper to make Apple PKG format packages. It does not use the PackageMaker GUI, but it does require that the developer tools be installed so it can call the command line version.
The next step is to compile Luggage, in order to do this you need to have Apples Command Line Tools installed for 10.8 or 10.9 depending on your OS. In 10.8 you can install this by installing Xcode and managing the downloads in the preference panel. In 10.9 you must login to Apples Developer area and download it. You do not need a paid account to get the package.
To setup Luggage do the following
Unzip the file.
There are two files that have to go in /usr/local/share/luggage (you have to create this path)
move these files into this new path.
Create the Profile Manager Package
Download the Profile Manager Enrollment script here
This package will remove any existing profiles on the Mac and then enroll the Mac with your server.
The Makefile needs The Luggage to build the package, but the postflight script could be used with your solution of choice. Ready?
Rename your enrollment profile to enroll.mobileconfig and the trust profile to trust.mobileconfig, copy them to the repo directory and run a quick
when your done a package will be created you can now deploy this with Munki, Casper or ARD.
We have assisted many businesses in implementing MDMs, developing custom security policies and procedures, and redesigning their networks.The list goes on and on. Contact us today and see how we can help you too.Contact Sales
We are a remote and fully distributed, Nationwide Apple focused MSP serving Washington DC, Philadelphia, New York, Chicago, San Francisco, San Diego & more.
We focus on providing top notch Mac Support for small to mid-sized businesses. Contact us, and learn how we can help your company.