Deployment via Intune
This guide covers deploying the DefensX Agent to macOS devices managed by Microsoft Intune. The process uses a shared installer script and configuration profiles applicable to all customers, plus a customer-specific profile that delivers the unique deployment key and browser settings.
|
Tip
|
The installer script, CA certificate, and DNS Proxy Extension profile are customer-agnostic and only need to be set up once. To deploy to a new customer or deployment, only repeat the Step 5: Create the Customer-Specific Configuration Profile step with the corresponding mobileconfig file. |
Step 1: Download Required Files
Log in to the DefensX backend and navigate to Policies & Groups. Under the Deployments section, locate your deployment and click the RMM button.
In the RMM dialog, click Mac MDM and download the following files:
| File | How to Download |
|---|---|
|
Click Download mobileconfig |
|
Click DNS Proxy Extension mobileconfig |
|
Click Download DefensX-CA Certificate → As PEM encoded |
|
Click Download Installer Script |
|
Click Download Uninstaller Script |
Keep all files available, they are needed in the steps below.
Step 2: Create and Deploy the Installer Script
-
Sign in to the Microsoft Intune Portal and navigate to Devices → macOS → Scripts.
-
Click + Add.
-
Enter
DefensX Installeras the script name, then click Next. -
Upload
DefensX-installer.sh. -
Configure the script settings:
-
Run script as signed-in user: Select No
-
Script frequency: Choose as required
-
-
Assign the script to the appropriate devices or user groups.
-
Review the configuration and click Add to complete.
Step 3: Deploy the CA Certificate
The DefensX CA certificate is required to properly render HTTPS block pages in browsers that do not use the DefensX extension or standalone clients.
-
In the Intune Portal, navigate to Devices → macOS → Configuration.
-
Click Create → New Policy.
-
Select Templates → Trusted certificate, then click Create.
-
Enter
DefensX CA Certificateas the profile name. -
Set Deployment Channel to Device Channel.
-
Upload
DefensX-CA.cer.
-
Assign to the required devices or user groups.
-
Review and click Create.
Step 4: Create the DNS Proxy Extension Configuration Profile
This profile grants the DefensX DNS Proxy Network Extension the permissions it needs to operate without prompting users for approval. It enables DNS policy enforcement without modifying system-level DNS settings.
-
In the Intune Portal, navigate to Devices → macOS → Configuration.
-
Click Create → New Policy.
-
In Profile type, select Templates → Custom, then click Create.
-
Enter
DefensX DNSProxy Extensionas the profile name, then click Next. -
In the Configuration settings step:
-
Enter
DefensX DNS Proxy Extensionas the Custom configuration profile name. -
Set Deployment channel to Device channel.
-
Click File selection and upload
DefensX-DNSProxy-Extension.mobileconfig.
-
-
Assign to the required devices or user groups.
-
Review and click Create.
Step 5: Create the Customer-Specific Configuration Profile
This profile delivers the unique deployment key and browser settings for a specific customer. Each DefensX deployment has its own mobileconfig file containing the relevant Deployment Key.
-
In the Intune Portal, navigate to Devices → macOS → Configuration.
-
Click Create → New Policy.
-
In Profile type, select Templates → Custom, then click Create.
-
Enter a descriptive name that identifies the customer and deployment, e.g.
DefensX [Customer Name] Default Settings, then click Next.
-
In the Configuration settings step:
-
Enter the same name as the Custom configuration profile name.
-
Set Deployment channel to Device channel.
-
Click File selection and upload the
DefensX-[deployment].mobileconfigfile downloaded in Step 1.
-
-
Assign to the relevant devices or user groups.
-
Review and click Create.
|
Tip
|
You can create multiple customer-specific profiles for different groups — for example, to enable Incognito mode for certain users. Only the customer-specific profile needs to differ; the installer script, CA certificate, and DNS Proxy Extension profile remain the same across all deployments. |
Uninstalling DefensX
|
Important
|
Before deploying the uninstall script, remove the devices from the installer script assignment in Step 2. Otherwise Intune will continue reinstalling the agent. |
-
In the Intune Portal, navigate to Devices → macOS → Scripts and click + Add.
-
Enter
DefensX Uninstalleras the script name, then click Next. -
Upload
DefensX-uninstaller.sh. -
Configure the script settings:
-
Run script as signed-in user: Select No
-
Script frequency: Choose as required
-
-
Assign to the relevant devices or user groups.
-
Review and click Add to complete.