On this page

Deploy with Microsoft Intune (Windows and Mac)

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

  1. Log in to StrongKeep and go to Team > Device Management.
  2. Click Switch to download packages.
  3. Choose the operating system (Windows or macOS) and the installer type (CPU architecture).
  4. Download both packages:
    • Download Anti-Malware Agent: an .msi file for Windows, or a .zip file for Mac
    • Get Web Firewall Provisioning Script: ctrld_install.ps1 for Windows, or ctrld_install.sh for Mac

The Download Packages page in StrongKeep Device Management

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

  1. In the Intune admin center, go to Apps > Windows.
  2. Click Create, choose Line-of-business app as the app type, and click Select.
  3. Click Select app package file and upload the .msi file from Step 1.
  4. 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.
  5. Under Assignments, add your devices under Required (for example All devices, or a device group).
  6. Click Review + create, then Create.

A finished Cortex app in Intune: Line-of-business MSI, Device install context, no command-line arguments, Required for All devices

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

  1. Go to Devices > Scripts and remediations, and open the Platform scripts tab.
  2. Click Add, then Windows 10 and later.
  3. Give it a name, for example StrongKeep Web Firewall (Control D) Windows.
  4. Under Script settings, upload ctrld_install.ps1 and set:
    • Run this script using the logged on credentials: No
    • Enforce script signature check: No
    • Run script in 64 bit PowerShell Host: Yes
  5. Under Assignments, add the same devices as in Step 2.
  6. Click Review + add, then Add.

The Control D script in Intune: logged on credentials No, signature check No, 64 bit PowerShell Host Yes, assigned to All Devices

⚠️ 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

  1. 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.
  2. In Intune, go to Devices > Configuration, click Create, then New policy.
  3. Set Platform to macOS and Profile type to Templates, choose Custom, and click Create.
  4. Give it a name, for example Cortex XDR - Unified Configuration.
  5. Under Configuration settings:
    • Custom configuration profile name: for example Cortex XDR
    • Deployment channel: Device channel
    • Configuration profile file: upload the .mobileconfig file
  6. Under Assignments, add your Macs (for example All devices, or a device group).
  7. Click Review + create, then Create.

The Cortex XDR configuration profile in Intune: a custom macOS profile assigned to All Devices

Step 3: Add Cortex (Anti-Malware) as an App

  1. Unzip the .zip file 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.

  2. In Intune, go to Apps > macOS, click Create, choose macOS app (PKG), and click Select.

  3. Upload Cortex XDR.pkg.

  4. Fill in the app information:

    • Name: for example StrongKeep Anti-Malware (Cortex XDR)
    • Publisher: StrongKeep (Palo Alto Networks)
  5. 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 .pkg file, 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_ID with the distribution ID you noted in step 1 before saving. It's a 32-character code of letters and numbers.

    Password1 is Cortex's default agent password, used only until StrongKeep's policy reaches the device. Leave it as it is.

  6. Under Requirements, set Minimum operating system to macOS Monterey 12.0.

  7. Under Detection rules, set Ignore app version to Yes. Intune fills in the included apps from the package (com.paloaltonetworks.cortex.agent and com.paloaltonetworks.cortex.app).

  8. Under Assignments, add the same Macs under Required.

  9. Click Review + create, then Create.

The Cortex app for Mac in Intune, with the post-install script (organisation details blurred), minimum macOS 12.0, Ignore app version Yes, Required for All devices

Step 4: Add Control D (Web Firewall) as a Script

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

The Control D script for Mac in Intune: run as signed-in user No, retry 3 times


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_ID in 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].