In Part 1 of the Parallels Mac Management for SCCM series I installed the Parallels Configuration Manager Console Extension. I installed this on my site server ‘ConfigMgr’.

Part 2 focused on the installation of the Parallels Proxy which I installed on a remote server called ‘Parallels’ which I intend to use to install the Parallels roles.

Part 3 of the series concluded the ‘role’ installation, namely the NetBoot Server and OS X Software Update Service.

Part 4 of the Parallels series focused on getting the Parallels Mac client onto a Mac OS X device.

In Part 5 of the series I will show you how to deploy an application down to a Mac OS X device, install it via the app portal and remove the application.

Set up the CMAppUtil tool

Before we can configure the application in ConfigMgr we need to convert the deployment onto a format that ConfigMgr can consume. To achieve this we need the CMAppUtil tool provided by Microsoft as part of the ConfigmgrMacClient.msi. This can be downloaded from here. Click the Download button.

2017-03-22 21_53_36-Greenshot.jpg

Select the ConfigmgrMacClient.msi and click Next.

2017-03-22 21_53_47-Greenshot.jpg

Once downloaded run the MSI on a Windows device to extract the contents of the file into a dmg file that can be used on a Mac device. Click Next.

2017-03-22 21_54_56-System Center Configuration Manager for Mac client.jpg

Agree to the licence agreement and click Next.

2017-03-22 21_55_06-System Center Configuration Manager for Mac client.jpg

Make a note of the location the files will extract to and click Next.

2017-03-22 21_55_13-System Center Configuration Manager for Mac client.jpg

Continue through the wizard to completion. Browse to the location C:\Program Files (x86)\Microsoft\System Center Configuration Manager for Mac client if you have installed into the default location. Copy the macclient.dmg over to a Max OS X machine.

2017-03-22 21_56_50-System Center Configuration Manager for Mac client.jpg

Once the dmg file is on the Mac, double-click the file to see its contents. Extract the Tools folder from the file by dragging and dropping it to a folder on your Mac.Screen Shot 2017-03-22 at 22.10.52.png

The CMAppUtil is the utility we will use to convert a Mac package into a .cmmac file that ConfigMgr can use. CMAppUtil supports the .dmg, .pkg, .mpkg, .app file formats.

Screen Shot 2017-03-22 at 22.11.35.png

In this example, I have downloaded the WinZip 5 for Mac application and placed the .dmg file for the WinZip install into the same folder as the CMAppUtil file.

Screen Shot 2017-03-22 at 22.13.19.png

Converting to .cmmac

Load up Terminal on the Mac by launching Finder and navigating to Applications>Utilities.

Screen Shot 2017-03-22 at 22.14.40.png

To convert a dmg to the .cmmac format use the following command:

./CMApputil –c <filename>.dmg -o <output path> -s

The -c option specifies the source file being converted. The -o option specifies the output path. The -s is not required but I used it to fix some issues extracting out the content of the .dmg and is worth including.

Screen Shot 2017-03-22 at 22.18.43.png

Screen Shot 2017-03-22 at 22.18.32.png

After the process has completed you will have a .cmmac file that can be consumed by ConfigMgr. Copy the .cmmac over your ConfigMgr source content share.

Screen Shot 2017-03-22 at 22.19.40.png

Creating the application

In the ConfigMgr console, go to the usual location where you would create an application, in the Software Library>Overview>Application Management>Applications node. Right click and choose Create Application.

2017-03-22 22_34_53-Greenshot.jpg

In the Create Application Wizard choose the Automatically detect information about this application from installation files checkbox. From the Type drop down choose Mac OS X and then enter the network location for the .cmmac file. Click Next.

2017-03-22 22_35_24-Create Application Wizard.jpg

Click Next.

2017-03-22 22_35_29-Create Application Wizard.jpg

Enter the relevant information about the application and click Next.

2017-03-22 22_37_12-Create Application Wizard.jpg

Click Close to complete the wizard.

2017-03-22 22_37_41-Create Application Wizard.jpg

To specify the command that you want to use to install, and optionally uninstall, the application on a Mac, right click the Deployment Type and select Properties.

2017-03-22 22_45_05-Greenshot.jpg

On the Programs tab enter a command to install and remove the application.

Use the following syntax:

:<Installation command>:<Uninstallation command>:

As an example, the following command line contains the installation and uninstallation commands for Firefox (note the colon characters, which are required):
:/usr/bin/ditto “” “/Applications/”:rm -rf “/Applications/”:

The first section :/usr/bin/ditto “” “/Applications/”: installs the into the Applications/ folder.

The second section rm -rf “/Applications/”: removes Firefox from the Mac device.

Therefore, for my installation of WinZip, I have used the command

:/usr/bin/ditto "" "/Applications/":rm -rf "/Applications/":

2017-03-22 - Mac OS X Properties.jpg

Distribute the content to a Distribution Point and then right click the newly created application and choose Deploy. Target the deployment at a Mac based collection, here I have chose the All Mac OS X Systems collection.

2017-03-22 22_43_36-Deploy Software Wizard.jpg

Since I am going to use the Parallels Application Portal, I will make the application available.2017-03-22 22_43_44-Deploy Software Wizard.jpg

Installing and Removing via the Parallels Application Portal

Once policy has applied to the Mac OS X device, remember this can be forced by clicking Connect in the Parallels Mac client or you can wait the default of 60 minutes for updates to be checked automatically, then head over to the Parallels Application Portal.

The portal is located in the Applications folder in Finder.

Screen Shot 2017-04-01 at 00.22.08.png

The application will be available to you. Click Install.

Screen Shot 2017-03-26 at 11.43.17.png

Screen Shot 2017-03-26 at 11.43.37.pngScreen Shot 2017-03-31 at 23.15.01.png

Once installed, the application will be available to you in the location you installed it to.

Screen Shot 2017-03-31 at 23.18.08.png

Screen Shot 2017-03-31 at 23.18.25.png

To uninstall the application, click the Remove button in the portal.

Screen Shot 2017-03-31 at 23.15.01.png

Screen Shot 2017-03-31 at 23.19.03.png

If you receive any failures, or just want to have a nosy in the log files then the pma_agent.log file located in /Library/Logs is the one to check. The log snippet below, for example, showed a problem locating the content on the DP. A quick redistribution of the content to the DP fixed the problem.Screen Shot 2017-03-31 at 23.18.51.png

In Part 6 of the series, I take a look at deploying packages via Parallels. Packages can be used in Task Sequence deployment in the Parallels Mac Management product, whereas applications cannot, so it is worth looking both application models.