Thursday, October 3, 2013

Enroll iOS Device in Lightspeed Systems MDM with Configurator

Since we manage nearly 2000 iOS devices, I prefer to have my deployment as streamlined as possible.  I prefer to touch the devices as little as possible.  Nothing bothers me more than having to manually input settings on each device.  To ease management of our iOS devices we purchased an MDM solution that Lightspeed Systems offers.

We are currently using Configurator to supervise the iOS devices and enroll them in the MDM.  Lightspeed also allows devices to be enrolled in the MDM via a web link if you are using a BYOD model.  Again, since we are going for the least number of steps it works best to have Configurator perform the enrollment.

Download Enrollment Profile

Before we can perform the enrollment we need to download the enrollment profile from the Lightspeed Mobile Manger.

1.  Login to the Lightspeed Mobile Manager.

2.  Click on the chain icon to the right of your organizations name.


Mobile Manager should now display two enrollment options as pictured below.  Bulk Enrollment is for use with Apple Configurator and Individual Enrollment is for enrollment via Safari.  For this scenario we want to use the Bulk Enrollment option.

3.  Click on Download Profile to download the enrollment profile..  The filename will include your organization name with the extension .mobileconfig.



Install Enrollment Profile

4.  Open Apple Configurator.

5.  Click the + under the profile section and select Import Profile...  Browse to the enrollment profile that was downloaded previously and select open.

6.  Check the box next to the imported profile.

Now you can hook up your iOS devices, set your desired options and click Prepare.  The device should then be enrolled in Lightspeed Mobile Manager.  This does require some patience and is by no means an exact science.  You must also have a wireless profile set to install on your iOS device while being prepared.  If you do not the enrollment will fail.

I have found that it works best to apply the Enrollment Profile after preparing/supervising the devices.  After the device has successfully been prepared/supervised it is easy to apply the enrollment profile.  This method ensures that the wireless profile has a chance to be applied and gives the device time to connect to the wireless network.

The following steps outline how to apply the Enrollment Profile after supervising the devices.

Apply Enrollment Profile

1.  Click on the Supervise tab.

2.  Select the device(s) that you want to apply the Enrollment Profile to.

3.  Check the box next to the Enrollment Profile and click Apply.

Configurator should now enroll the device in the Lightspeed MDM.




Create Supervised Backup in Configurator

This post will cover creating a backup of a supervised iPad for use configuring other iPads.

1.  Prepare and Supervise Device

First we want to connect an iPad that has not been supervised yet.

Enter the name of your device, turn Supervision ON, change the Update iOS drop down to When Update is Available.  Erase before installing will be checked by default.

**Note:  Supervising the device will erase all content!**

Set the Restore drop down to Don't restore backup.

I usually apply my wireless profile just to make sure it is working.  This isn't something that will be retained when you make the backup.  In other words, when restoring the backup to another iOS device, the wireless settings are lost.

Click Prepare.

If you haven't entered your organization's information yet, you will be prompted to do so.


If this is the first time you have installed a particular version of iOS on a device, this may take some time since it has to download the IPSW.


















2.  Disable Lock Screen Text

I recommend disabling the lock screen text.  In the past I have had the device name be saved as an image when taking the backup.  When this happens all the devices have the same text on the background as well as the text that Configurator adds.  It can easily be enabled after the backup is complete.

To disable lock screen text:

Go to the Apple Configurator menu and click Preferences.

Click the lock screen icon.

Change the Text: radio button to None.




3.  Creating the Backup

When the device has finished the supervision process it should be listed under the Supervise tab in Configurator.

Go through and configure your iPad options such as icon placement, lock screen and home screen picture, etc.

Reconnect the iPad if it isn't already connected.

Click on the Supervise tab.

Select the iPad you wish to backup.

Click on the Restore: drop down menu and select Create Backup...

Enter the name for your backup when prompted and click Create Backup.


4.  Restoring the Backup

Now you can apply the backup to new devices you are supervising.

From the Prepare tab, be sure to change the restore drop down to the name of the backup that was created in step 3.

Be sure to enable the lock screen text that was disabled in step 2 before starting the prepare process.


Friday, April 26, 2013

Quickly NetBoot from a Different Subnet than the NetBoot Server

It was necessary to quickly NetBoot a couple of Macs from a different subnet in our organization than the subnet the NetBoot server is hosted on.  After some searching I came across this command:

sudo Bless --netboot --server bsdp://x.x.x.x --nextonly

Replace the x's with the IP address of your NetBoot server and run this command from Terminal or ARD.  Reboot your Mac and it should attempt to NetBoot to your server.

Monday, April 15, 2013

Managed Printers Using Incorrect Drivers

Recently we started updating our student MacBook Airs to OS 10.8.3 which has gone really well.  However, over the past few weeks we noticed some students were having trouble printing to some of our HP LaserJet 4250 printers.  The printer would produce a page, however, it was a single line of gibberish.  Upon further examination, I noticed that the printer had been using a generic driver.

We use Open Directory for our Mac management and push the printer settings to the clients through Workgroup Manager.  All of the 10.7 clients would detect the printer model and use the correct driver.  After a web search I found that I could specify the PPD that should be used in Workgroup Manager.

To remedy this problem:

1.  You must first make sure the drivers are available to the client.  I am going to make the drivers available to my clients as a required install via Munki.

2.  If you know the driver is available on the client connect to your OD server with Workgroup Manager.

3.  Select the user or group that has the printer settings assigned to it.

4.  Click the Preference tab, then click the Details tab.

5.  Double-click the com.apple.mcxprinting entry.


6.  Click the triangle next to Always.

7.  Click the triangle next to the printer you want to modify.

8.  Select the printer you want to modify and click the New Key button.

9.  Type PPDPath for the new key name.

10.  Set the type to String

11.  Change the value to the path where the PPD file is located on the client.
  • For my LaserJet 4250 it was:
file://localhost/Library/Printers/PPDs/Contents/Resources/HP LaserJet 4250.gz


Reboot the Mac, log in and you should now have the correct driver listed for the printer.

Friday, April 12, 2013

Update Adobe Flash on Macs with Munki

Due to the high volume of updates for Adobe Flash and Java I decided I needed a central way to manage updates for my 300+ Macs.  ARD works well for deploying to desktops that are always connected to the network, but it makes it harder to ensure that all mobile users have the updates available to them to install.  After some research I decided to use Munki.  It is easy to use, set up and manage. You can also point Munki's Managed Software Update application at your Apple SUS server and install Apple updates for users who don't have administrative rights.

Here are the steps to deploy Adobe Flash via Munki.  I am deploying version 11.7.700.169.
  • Download the DMG installer from the Adobe Flash Player Distribution site.
  • Open the install_flash_player_11_osx.dmg file to mount it.
  • Open Terminal and type the following commands:
/usr/local/munki/munkiimport /Volumes/Flash\ Player/Install\ Adobe\ Flash\ Player.app/Contents/Resources/Adobe\ Flash\ Player.pkg
  • If you already have Adobe Flash in your Munki repo you will be prompted to use the exisiting item as a template.  Type 'Y' if you would like to do so.
Note:  The following steps may vary depending on how you have set up your environment and naming conventions.
  • Enter the following:
Item name:  Adobe Flash (Version)
Display Name:  Adobe Flash (Version)
Description:  Adobe Flash (Version) Released (Date)
Version:  (Version)
Catalogs:  production


  • When prompted, type 'Y' to confirm you would like to import the item.
  • When prompted, type 'Y' to rebuild the catalogs.

I prefer to use MunkiWebAdmin to manage my catalogs and manifests.  Now that we have added the Adobe Flash install to our repo, we need to assign it to a manifest.

  • Log into MunkiWebAdmin
  • Click on Manifests
  • Click the manifest you would like to apply the update to and click the Edit button.
  • Click the green "+" next to Managed Installs.
  • Type in the Item name for the package we uploaded earlier.
  • Click Save.
Now the update should be available via Managed Software Update on any Macs that are set to use this manifest.

I would recommend going to http://www.adobe.com/software/flash/about/ to verify that Adobe Flash was in fact updated.

I have most of my clients set to require the user logout to install the updates.  This keeps users from having applications open that may need to be closed to apply the update.  If Safari is open when you run this update, it will need to be Quit and reopened to activate the latest plug-in version.

For more information on Munki, visit their project page:

http://code.google.com/p/munki/

Thursday, April 4, 2013

Quickly Create SCCM Collection for All Windows Clients

I was deploying a handful of updates today and I wanted to deploy the updates to all of my Windows clients, but not my servers.  I am using System Center Configuration Manager 2012 for the deployment so it is easy to create custom computer collections.  I used the following steps to include all computers that have a Windows client OS in a collection called All Windows Clients.

1.  Open the System Center 2012 Configuration Manager Console.

2.  Navigate to Assets and Compliance > Device Collections.

3.  Click Create Device Collection.



4.  Enter the name All Windows Clients

5.  Set the Limiting Collection to All Systems and click Next.



6.  Click Add Rule > Direct Rule.

7.  In the Create Direct Membership Rule Wizard window, change the Attribute Name to Operating System Name and Version.

8.  In the value field, type %workstation% and click Next.



9.  You should now see all of the devices that match the value we typed in.  If they match, click Select All to add them and click Next.

10.  A summary of all the workstations that match the rule will now be displayed.  Review it and click Next.  Click Close when the wizard completes.

11.  From the Create Device Collection Wizard window, place a check next to Use Incremental Updates for this Collection.

12. Change the schedule if desired and click Next.

13.  Review the changes and click Next to create the new collection.  Close the wizard.

14.  Click on the All Windows Clients device collection and select Refresh.

To create an All Windows Servers group, replace %workstation% with %server%.  This will gather all computers with a Windows Server OS.

Thursday, March 28, 2013

Export Trust and Enrollment Profiles - Part 3

Part 3:  Export Trust and Enrollment Profiles

Now that Profile Manger has been setup we need to prepare for device enrollment.  I prefer to use Apple Configurator to prepare and enroll the iOS devices, then manage them with Profile Manager 2.  Before we prepare and enroll the devices we need to save the trust profile and enrollment profile from Profile Manager.

Setup

This setup assumes that you have Profile Manger 2 configured and have installed Apple Configurator.  If you have not setup Configurator, it can be downloaded for free from the Mac App Store.

I would perform the following steps from the computer that Configurator is installed on.

Download Trust and Enrollment Profiles

1.  Log into Profile Manager 2 with an account authorized for Profile Manger.


2.  Click on your username in the upper right corner of the Profile Manger page.


3.  Click Download Trust Profile.  The trust profile will now be saved to your Downloads folder.  We will use this shortly.


4.  Click on the + in the lower left corner of Profile Manger 2 and click Enrollment Profile.  A new enrollment profile will now be created.

5.  Click on the title New Enrollment Profile and type the name of the enrollment profile.  I usually use the name of my organization.  i.e. MySchool Enrollment Profile



6.  There is a checkbox to Restrict use to devices with placeholders.  If you leave this checked you will need to use the Devices library to prestage your devices.  If it is unchecked any device can use this profile to join your PM2 server.

7.  Click Save, and confirm by clicking Save.



8.  Next click the Download button to download your enrollment profile to the Downloads folder.

NOTE:  10.7 and 10.8 may ask you if you want to enroll your Mac after the download is complete.  Since we are using this for our iOS devices, click Cancel.

We now have the profiles we need to enroll iOS devices in Profile Manger.

Wednesday, March 27, 2013

Setup Profile Manager 2

This post will cover setting up Profile Manager 2 on OS X 10.8.2.

Profile Manager 2 is a free MDM solution included with version 2 of Apple's Server app for OS X 10.8.  While the Server app may be $19.99 on the Mac App Store, there are no other licensing costs.

As I said in my previous post, I would like to see Apple improve a few minor things, but overall this is a solid MDM solution for managing iOS devices.

Setting up Profile Manger 2

Requirements

OS X 10.8
Server version 2*

*(I recommend version 2.2.1 which is the most recent and adds the ability to delete apps after they have been uploaded to Profile Manger.)

1.  After installing and updating OS X 10.8 download OS X Server version 2 from the Mac App Store.

2.  Open the Server app, click Continue and Agree to the licensing agreement.


3.  Check that the hostname is correct, click Continue.

4.  Enter the AppleID you would like to use for Push Notifications, click Continue.

5.  The Server app will now take a couple of minutes to setup the service.  Click Finish when it has completed.

6.  The Server app should now open and display the computer information as well as a list of the services.  Click on the Profile Manager service and turn it On.


7.  After Profile Manger starts, click on the Configure button.

8.  Click Next to begin Profile Manger setup.

9.  Profile Manager needs a configured network directory.  Click Next to begin setting up Open Directory.


10.  Enter a password for your Directory Administrator account and click Next.

11.  Enter the name of the organization as well as the administrator's email address and click Next.


12.  Verify that the settings are correct and click on Set Up.  Server will now create an Open Directory master.

13.  After Open Directory has been set up, you will be prompted to select an SSL Certificate for web services.  For this example we are going to use a self-signed certificate.


14.  Click on the Certificate drop down and select your certificate.  Click Next.

15.  If you receive a green circle with a checkmark your server has been set up.  Click Finish.


16.  To access Profile Manager click on the Open Profile Manger link and log in with your administrator account. **

**Active Directory accounts will work, but the server must be joined to an Active Directory domain and given access to manage the service.

17.  Profile Manger has now been configured.

Next I will be covering how to work with Profile Manager, trust profiles, and enrollment profiles.

Prepare Configurator for Profile Manager 2 Enrollment - Part 4

I was excited when Apple announced the availability of Apple Configurator last year.  Finally, an alternative to configuring and imaging with iTunes.  Configurator does a decent job preparing and setting up iOS devices.  It is the day-to-day operations where I feel it struggles.  For example, updating iOS and apps.

Configurator added the ability to manage app licenses purchased from the VPP store.  I really liked the ability to view how many licenses we consumed and which device they were assigned to.  The problem was, we would have licenses that would show they had been consumed when they had never been assigned to a device.  After they are consumed they cannot be assigned to another device, except through the unsupervise task.  This is also a problem if a device is bricked or unable to be connected to Configurator due to damage.

Our school district wanted the devices to be supervised so we could restrict some of the features.  While supervision is nice for resetting features and settings, it is problematic when photos and videos have been taken on the device as they get removed when refreshed.

After looking at Profile Manager 2 we decided that a mixed deployment model would be better.  We use Configurator to prep the devices and enroll them in Profile Manager, which is then used for ongoing management.

I will be posting the steps for this deployment model over the next week.  This article will cover the initial preparation of Configurator.

Requirements

OS 10.7.5
Configurator 1.2.1
iOS Device

Setup

1.  Download and install Configurator 1.2.1 from the Mac App Store.

2.  Launch Configurator, accept the license agreement and click Start Preparing Devices to begin.


3.  We are starting with the prepare tab.  Enter the name you would like for the iOS device(s) in the Name field.

4.  If you are preparing multiple devices, add a number to the end of the name and check the box Number sequentially starting at #.

5.  Depending on your management model, I would recommend turning Supervision On.  Our iOS devices are all cart based so we want control over the apps and settings.

6.  The iOS drop down should automatically change to Latest.

7.  At this time we don't have a backup to restore.  Leave this set to Don't Restore Backup.
8.  Click on the + to create a new profile.



9.  The General profile settings should now be visible.  Enter a name for the profile such as iPad Lab Wireless Profile.  This profile is just to get the device on the network.  The rest of the profiles will be OTA from Profile Manger.  Enter your organization name and a brief description.


10.  On the right side of the General profile, scroll down to Security and change Always to With Authorization.  Enter a password to control removal of the profile.


11.  Select the Wi-Fi profile and click Configure.   Input your wireless settings and click Save.


12.  Check the box for the profile that we just created.

13.  Click on the Apps tab.  Click on the + and navigate to your Mobile Applications folder.  This is located in your home directory under the iTunes folder.
  • ~/Music/iTunes/iTunes Media/Mobile Applications
  • If there aren't any apps listed, you need to go to iTunes and download them from the iTunes App Store.
  • If you have apps purchased with multiple Apple IDs, you will need a free app from each account.
14.  Select a free app and click Open.  Place a check next to the app we just added to Configurator.


15.  Switch back to the Settings tab, make sure your iOS device is connected and click Prepare.


**Clicking Prepare will wipe your device.  Just a warning.**

16.  A warning will appear  confirming that you want to apply the settings to ALL USB-connected devices.  This would be a good time to make sure your iPhone isn't plugged into the Configurator computer!  If you are ready click Apply.


17.  Configurator will begin preparing the iOS device.  This process may take a while as it has to download the latest version of iOS.

18.  When Configurator has finished prepping the device turn it on and go through the iOS setup screens.  Your wi-fi should connect automatically if everything was correct in the profile created earlier.

19.  Reconnect the iOS device to Configurator.  It may refresh automatically, which is fine, just wait for it to complete before continuing.

20.  We are now going to create a backup of the iOS device so some of the prompts will be suppressed.  You could also use this to customize folders and other settings.  This is our "image."

21.  Click on the Supervise tab.  Click on the name of the iOS device we just configured.

22.  Click on the Restore drop down and go to Backup.  Enter a name for your backup (i.e. iPad Backup 3-27) and click Create Backup.

This concludes preparing Configurator.  The next post will pick up from here with instructions on enrolling devices in Profile Manager with Configurator.

Tuesday, March 26, 2013

Profile Manager 2


Apple's first version of Profile Manager (OS X 10.7, Server v1) was more like a pre-release version. It didn't work that well and there really weren't many features that made it worth the install time.  However, Profile Manager 2, which is included in OS X Server version 2, provides a great management tool for iOS devices.  It also provides management of Mac clients, but I have found that it just isn't reliable enough for day-to-day management of Macs.  I prefer to stick with MCX for my Macs until it is improved.


Profile Manager allows you to create a group of iPads and assign profiles and apps to the group.  The profiles and apps are then pushed out over the air to the devices.  Profiles install automatically while the apps require the user to click Install when prompted.

I list more complaints than good features below.  I do believe that the good outweighs the bad, though.

Features

  • Over-the-air updates to profiles.
  • Over-the-air app installation.
  • Group device management.
  • Remote device management - Lock and wipe lost devices.

Complaints

There are a few items I would like to see Apple improve in the next version:
  • Sorting apps uploaded to Profile Manger
  • Currently apps are sorted by the day they were uploaded.  Allowing them to be sorted alphabetically be much more efficient.
  • Names displayed for Apps
  • The apps are listed by the file name of the apps, not the title of the app.  For example, an app may show up in iTunes as Alphabet, but the file name of the app may be abc.app.  This can be confusing for users who are looking for the title of the app.
    • Allow Restrictions on Profile Manager Admins
    • Currently, any user who can login to the Profile Manger management page can see all of the devices, settings and apps.  It would be nice to have different management users/groups that devices can be assigned to.  For example, we have iOS devices in our elementary, middle school as well as our SPED department.  Since each area has a different manager, I have created multiple Profile Manger servers.
    • Allow Uploading Multiple Apps
    • Unfortunately the .ipa files have to be uploaded one at a time.  Not a big deal if you only have a handful of apps.  However, some of our buildings have 150+ apps!