Installing PDQ Connect macOS agent using MS Intune
Silently deploy macOS agent installer package with Intune
This install option may be preferable when using Intune as an Apple MDM.
- In PDQ Connect, navigate to the Devices page and click the "Install Agent" button.
- Select "Download macOS Installer". The installer pkg file should start downloading immediately.
- Copy the registration token.
- Login to Microsoft Intune.
- Navigate to the Apps section.
- In the Apps section, click "macOS" under Platforms.
- Click "Create".
- Under "App type", select "macOS app (PKG)" and click "Select".
- On the next screen titled "Add App", click "Select app package file".
- Click "Select a file" under "App package file".
- Upload the Connect PKG (file name should look like PDQConnectAgent-5.10.16.pkg) and click "OK".
- Fill out the App Information form as needed and click Next.
In the "Pre-install script" text box, enter the following script:
#!/bin/bash # Define token REGISTRATION_TOKEN="{{YOUR_TOKEN_HERE}}" # Define the file path TOKEN_FILE="/Library/Application Support/PDQConnectAgent/token" # Ensure the directory exists mkdir -p "$(dirname "$TOKEN_FILE")" # Check if the token file exists; if not, create it if [ ! -f "$TOKEN_FILE" ]; then touch "$TOKEN_FILE" fi # Write the REGISTRATION_TOKEN to the token file echo "$REGISTRATION_TOKEN" > "$TOKEN_FILE"- Replace
{{YOUR_TOKEN_HERE}}with your registration token copied from the PDQ Connect interface. In the "Post-install script" text box, enter the following script:
#!/bin/bash echo "{{YOUR_TOKEN_HERE}}" > /Library/Application\ Support/PDQConnectAgent/token- Replace
{{YOUR_TOKEN_HERE}}again with your registration token copied from the PDQ Connect interface. - Click "Next".
- Continue through the remaining steps as needed. No specific requirements or detection rules must be specified. Assign the app to your devices, groups, or users as needed.
- Once finished, click "Create".
Once the app has been assigned to your device(s) and Intune has deployed it, you should see your device(s) appear in your PDQ Connect account. It may take some time for Intune to install the application.
Eric McCann
Was this article helpful?