Overview
If your devices are managed in Microsoft Intune, you can push StrongKeep protection to every Windows PC and Mac from one place. Your staff don't need to download or install anything.
You'll set up these items in Intune:
| Windows | Mac | |
|---|---|---|
| Permissions for Cortex | Not needed | A configuration profile, set up first |
| Anti-malware (Cortex) | An app (MSI) | An app (PKG) |
| Web firewall (Control D) | A PowerShell script | A shell script |
Each Windows PC or Mac you protect uses one device from your StrongKeep plan.
Before You Start
You'll need:
- Admin access to StrongKeep, to download your packages
- An Intune admin account (for example the Intune Administrator role)
- Devices already enrolled in Intune
- Enough device coverage in your StrongKeep plan for every device you'll protect (see Team > Device Management)
- Any other antivirus removed from those devices, as it can block Cortex from installing
Keep the downloaded files private. They're tied to your organisation and register each device to your StrongKeep account. Don't share them or upload them anywhere except Intune.
Step 1: Download Your Packages from StrongKeep
- Log in to StrongKeep and go to Team > Device Management.
- Click Switch to download packages.
- Choose the operating system (Windows or macOS) and the installer type (CPU architecture).
- Download both packages:
- Download Anti-Malware Agent: an
.msifile for Windows, or a.zipfile for Mac - Get Web Firewall Provisioning Script:
ctrld_install.ps1for Windows, orctrld_install.shfor Mac
- Download Anti-Malware Agent: an

Windows: one installer per architecture. Intel and AMD PCs (x64) and ARM PCs (ARM64) need different Cortex installers. If you have both, download both and create one Intune app for each (see Step 2).
Windows
Step 2: Add Cortex (Anti-Malware) as an App
- In the Intune admin center, go to Apps > Windows.
- Click Create, choose Line-of-business app as the app type, and click Select.
- Click Select app package file and upload the
.msifile from Step 1. - Fill in the app information:
- Name: for example StrongKeep Anti-Malware (Cortex XDR) x64
- Publisher: StrongKeep (Palo Alto Networks)
- App install context: Device
- Ignore app version: No
- Command-line arguments: leave empty. The installer already runs silently.
- Under Assignments, add your devices under Required (for example All devices, or a device group).
- Click Review + create, then Create.

If you have both x64 and ARM64 PCs, repeat these steps for the second installer. Use assignment filters (Apps > Assignment filters) on CPU architecture so each device only gets the installer that matches it.
Step 3: Add Control D (Web Firewall) as a Script
- Go to Devices > Scripts and remediations, and open the Platform scripts tab.
- Click Add, then Windows 10 and later.
- Give it a name, for example StrongKeep Web Firewall (Control D) Windows.
- Under Script settings, upload
ctrld_install.ps1and set:- Run this script using the logged on credentials: No
- Enforce script signature check: No
- Run script in 64 bit PowerShell Host: Yes
- Under Assignments, add the same devices as in Step 2.
- Click Review + add, then Add.

⚠️ Run script in 64 bit PowerShell Host must be Yes. If it's left at No, the script can install the wrong version of Control D for the device's processor.
The script registers each device to your organisation and names it after the computer name. No Resolver ID needs to be typed in.
Mac
On a Mac, Cortex needs permissions (system extensions, Full Disk Access and network filtering). Without them, each person would see approval prompts. A configuration profile grants them in advance, so set it up before the app.
Step 2: Add the Cortex Configuration Profile
- Download Palo Alto Networks' signed Unified Configuration Profile from the official Cortex XDR guide: Install with a Unified Configuration Profile for MDMs. Choose the signed version (a file named like
CortexXDR_UnifiedConfigProfile_V5_SignedPANW.mobileconfig), and unzip it if it downloads as a.zip. - In Intune, go to Devices > Configuration, click Create, then New policy.
- Set Platform to macOS and Profile type to Templates, choose Custom, and click Create.
- Give it a name, for example Cortex XDR - Unified Configuration.
- Under Configuration settings:
- Custom configuration profile name: for example Cortex XDR
- Deployment channel: Device channel
- Configuration profile file: upload the
.mobileconfigfile
- Under Assignments, add your Macs (for example All devices, or a device group).
- Click Review + create, then Create.

Step 3: Add Cortex (Anti-Malware) as an App
-
Unzip the
.zipfile from Step 1. Inside you'll find Cortex XDR.pkg and Config.xml.Open Config.xml in a text editor (for example TextEdit) and take note of your distribution ID: the value between
<distribution_id>and</distribution_id>. You'll need it for the post-install script in step 5. -
In Intune, go to Apps > macOS, click Create, choose macOS app (PKG), and click Select.
-
Upload Cortex XDR.pkg.
-
Fill in the app information:
- Name: for example StrongKeep Anti-Malware (Cortex XDR)
- Publisher: StrongKeep (Palo Alto Networks)
-
Under Program, paste the post-install script below into Post-install script. It connects Cortex to your organisation after it installs. (Intune only takes the
.pkgfile, so the registration settings in Config.xml aren't included automatically.)#!/bin/bash # Register the Cortex XDR agent to your organisation (replaces Config.xml) CYTOOL="/Library/Application Support/PaloAltoNetworks/Traps/bin/cytool" LOG="/var/log/strongkeep-xdr-postinstall.log" for i in $(seq 1 30); do [ -x "$CYTOOL" ] && break; sleep 10; done sleep 60 echo "$(date) reconnecting to distribution" >> "$LOG" echo Password1 | "$CYTOOL" reconnect force YOUR_DISTRIBUTION_ID >> "$LOG" 2>&1 sleep 5 "$CYTOOL" checkin >> "$LOG" 2>&1 exit 0⚠️ Replace
YOUR_DISTRIBUTION_IDwith the distribution ID you noted in step 1 before saving. It's a 32-character code of letters and numbers.Password1is Cortex's default agent password, used only until StrongKeep's policy reaches the device. Leave it as it is. -
Under Requirements, set Minimum operating system to macOS Monterey 12.0.
-
Under Detection rules, set Ignore app version to Yes. Intune fills in the included apps from the package (
com.paloaltonetworks.cortex.agentandcom.paloaltonetworks.cortex.app). -
Under Assignments, add the same Macs under Required.
-
Click Review + create, then Create.

Step 4: Add Control D (Web Firewall) as a Script
- Go to Devices > Scripts and remediations, and open the Platform scripts tab.
- Click Add, then macOS.
- Give it a name, for example StrongKeep Web Firewall (Control D) Mac.
- Upload
ctrld_install.shand set:- Run script as signed-in user: No
- Max number of times to retry if script fails: 3 times
- Under Assignments, add the same Macs.
- Click Review + add, then Add.

Check It's Working
Installs happen the next time each device checks in with Intune. This can take from a few minutes to a few hours.
- In Intune: open each app and check Device install status, and open each script and check Device status.
- In StrongKeep: go to Team > Device Management. Protected devices appear with anti-malware and web firewall status.
- To speed up a device, open Company Portal on it and choose Sync, or select the device in Intune and click Sync.
Tips & Troubleshooting
- Cortex won't install on a Windows PC. Check for other antivirus and remove it. Check the device got the installer that matches its processor (x64 or ARM64).
- Mac shows approval prompts for Cortex. The configuration profile reached the Mac after the app, or not at all. Check the profile's status in Devices > Configuration. Once it shows as succeeded, the prompts stop.
- Cortex installed on a Mac but doesn't appear in StrongKeep. Check that
YOUR_DISTRIBUTION_IDin the post-install script was replaced with the ID from Config.xml. On the Mac, the script's log is at/var/log/strongkeep-xdr-postinstall.log. If it still doesn't appear, contact StrongKeep support. - Control D didn't install. Check the script's Device status. On Windows, confirm Run script in 64 bit PowerShell Host is Yes.
- Devices with a VPN. Some VPN software can stop Control D from working. Check with your VPN provider or contact StrongKeep support.
- Not using Intune? See the per-device guides in this section, or Protecting Your Devices for sending setup emails to staff.
Need help? Email [email protected].
Help Center