Onboard macOS devices with AgentP using Intune and SCEP
In this topic, you will learn how to deploy Portnox™ AgentP on managed macOS devices by using Intune and certificates managed by SCEP.
There are two options to deploy AgentP on managed macOS devices using Intune:
- Onboard devices using SCEP certificates and use AgentP for risk assessment only (recommended)
- Deploy AgentP and have the users onboard manually
This topic describes the first option. Begin by completing the steps in the following topic: Onboard macOS devices with certificates using Microsoft Intune and SCEP. Then, continue with steps in the current topic.
Add the AgentP installation package to Intune
In this task, you will download the Portnox™ AgentP installation package for macOS and upload it to Intune to be later distributed to managed macOS devices.
- Open the Download Portnox AgentP page in your browser.
-
Scroll down to the Mac OSX tile and click on it to download the AgentP macOS package and
save it on your disk.
You will upload this package to Intune later.
- Open the Microsoft Intune portal in your browser: intune.microsoft.com.
-
In the left-hand menu of the Apps pane, select the macOS option in the
By platform section.
-
In the macOS | macOS apps pane, click on the Add button.
-
In the Select app type pane, in the App type field, select the
Line-of-business app option, and click on the Select button
below.
-
In the Add App pane, click on the Select app package file link.
-
In the Add package file pane, click on the 🗀 icon
to open a file dialog, select the package file that you downloaded earlier, and click on the
OK button.
-
In the Add App pane, in the App information step of the wizard:
-
In the Assignments step of the wizard, use relevant options to assign this profile to
specific groups or all users/devices, and then click on the Next button.
- In the Review + create step of the wizard, review all the information, and then click on the Create button.
Get issuer information from Portnox Cloud
In this task, you will copy the issuer name from the Portnox™ Cloud portal, so you can use it later when creating a configuration script for AgentP.
-
In the Cloud portal top menu, click on the Settings option.
-
In the right-hand side pane, find and click on the CLEAR GENERAL SETTINGS heading.
More options appear under the CLEAR GENERAL SETTINGS heading and description.
-
Scroll down to the TRUSTED ROOT CERTIFICATES section and copy the value of the
Issued to field in this section to a text file.
Create an AgentP configuration script in Intune
In this task, you will prepare a script that creates an AgentP configuration file on the managed device.
-
In the left-hand menu, select the Devices option.
-
In the left-hand menu of the Devices pane, select the macOS option in
the By platform section.
-
In the left-hand menu of the macOS | macOS devices pane, select the Shell
scripts option in the macOS policies section.
-
In the macOS | Shell scripts pane, click on the Add button.
-
In the Basics step of the Add script wizard, in the
Name field, type a name for this profile, optionally fill in the
Description field, and click on the Next button.
In this example, we used the name Portnox AgentP Configuration, but you can use any name you like.
-
In a text editor, prepare a script according to the instructions below.
When finished, save your script on the local disk with a .sh extension, for example, agentp_config.sh.
Adjust your script to your environment and requirements.
#!/bin/sh mkdir -p /var/agentp json='{"HideUI":true}' echo $json > /var/agentp/uipreferences.cfg json='{"Mode":"certificate","Certificate":"issuer:issued_to","User":"[current]","AutoSwitch":true,"UseCertificateSerialNumberAsDeviceId":true,"Domain":"your_domain","profileInstallationNeeded":false}' echo $json > /var/agentp/unattended.cfg chmod a+rw /var/agentp chmod a+rw /var/agentp/uipreferences.cfg chmod a+rw /var/agentp/unattended.cfg
-
In the Script settings step of the Add script wizard:
-
In the Assignments step of the wizard, use relevant options to assign this profile to
specific groups or all users/devices, and then click on the Next button.
- In the Review + create step of the wizard, review all the information, and then click on the Add button.
Result: When onboarding a macOS device, Intune will obtain a SCEP certificate and install AgentP with the configuration delivered by the script, which disables AgentP certificate management and leaves only the risk assessment functionality running.