Installation with Intune for ETP-enabled Deployment
This article explains how to deploy the Action1 agents to macOS endpoints using Microsoft Intune when Endpoint Takeover Prevention (ETP) is enabled for your Action1 organization.
Before You Begin
Step 1: Check prerequisites
Check the following before installing:
- The target macOS endpoint is enrolled in Intune (for example, through the Company Portal app).
- The Apple MDM push certificate in Intune is valid. To check it, go to Devices | macOS | Enrollment | Apple MDM Push Certificate. If it has expired, macOS endpoints cannot enroll (Company Portal shows the APNSCertificateNotValid error) and do not receive apps. Renew the certificate with the same Apple ID that was used to create it.
Step 2: Get the agent setup package and the installation token
In the Action1 console, go to Endpoints and click Install Agent to launch the Install Action1 Agent wizard.
- Select macOS as the operating system, then from the installation options, select Direct download.
- Copy the download link and paste it into your browser. The PKG file is downloaded automatically. Save it as
action1_agent.pkg. - Have your installation token at hand.
NOTE: The Action1 console displays the installation token only when it is created (that is, in the Getting Started or Agent Installation wizard). Copy the installation token and store it securely for future agent installations.
- If no installation token exists for the organization, in the Install Agent step of the wizard, select Create Installation Token.
- If a token already exists but you no longer have it available, select Recreate Installation Token. Recreating the token invalidates the previous token. Agents already installed using the previous token continue to work, but new installations must use the new token. You should also update any deployment tools, scripts, and scheduled installation tasks that used the previous token.
Step 3: Prepare a group of target endpoints
By default, All Devices or All Users are used as deployment targets. To deploy the Action1 agent to selected endpoints only, create a dedicated group of the endpoints to be managed by Action1:
- In the Microsoft Intune admin center, go to Groups and click New group.
- Set Group type to Security, enter a Group name (for example, Action1 Agent Devices – macOS), and set Membership type to Assigned.
- Click No members selected, open the Devices tab, select the target endpoints, and click Select. Click Create.
NOTE: Deployment targets are Microsoft Intune devices or users, not local macOS users.
Agent Deployment
Stage 1: Add the app
- In the Microsoft Intune admin center, go to Apps | Windows and click Create.
- From the App type list, choose macOS app (PKG)Â and click Select.
- At the App information step, click Select app package file, browse for the
action1_agent.pkg file you have downloaded, and click OK.
Stage 2: Specify app properties
- Enter the Name, Description, and Publisher. Click Next.
- At the Program step, in Post-install script, enter:
#!/bin/zsh /usr/local/action1/action1_agent inst_token:<Your Installation Token>
- Leave Pre-install script empty. Intune runs the post-install script as root right after the package is installed; the script registers the agent in your organization. Click Next.
- At the Requirements step, select macOS Monterey 12.0 from the Minimum operating system list. Click Next.
- At the Detection rules step, make sure Ignore app version is set to Yes. Keep the Included apps list that Intune has filled in from the package.
NOTE: With this setting, Intune installs the app only if it is not present on the endpoint. It will not upgrade an installed agent, regardless of its version. (The agent updates itself through Action1 Cloud, so Intune should not try to replace it.)
- At the Scope tags step, click Next.
Stage 3: Assign the app
- At the Assignments step, under Required, click Add group and select the group of target endpoints. Click Next.
NOTE: Intune does not remove the agent when a device is retired. To remove it, use the Action1 console or run sudo bash /usr/local/action1/uninstall_agent.sh on the target endpoint.
- At the Review + create step, check the settings and click Create.
Stage 4: Verify the deployment
Intune installs the app through the Microsoft Intune management agent for macOS. If the agent is not on the target endpoint yet, Intune installs it first.
TIP: To start the deployment sooner, go to Devices | macOS, select the device, and click Sync.
After the deployment completes, go to Apps | macOS, select the Action1 agent app, and open Monitor | Device install status. The status should be Installed for the target devices. The Intune reports can show data with a delay of up to several hours.
The endpoint also shows up in the Endpoints view of the Action1 console. If the app is Installed but the endpoint does not show up, check the installation token in the post-install script.
Deploying to multiple Action1 organizations
When deploying the agents to several Action1 organizations:
- Use the same PKG package for all organizations.
- Create a separate Intune app for each organization and configure it with that organization’s installation token.
- Assign each app to its own group.
- An endpoint must belong to only one of these groups.
Preparing for system updates
To prepare the Action1 agent for installing system updates, see Enabling System Updates for Apple Silicon Devices
Using the log files
For troubleshooting purposes, check:
- Intune agent log under
/Library/Logs/Microsoft/Intune/(look for Post-install script succeeded or failed events) - Action1 agent installation log
/tmp/action1_install.log.
Security considerations
If the token might have been compromised, generate a new one in the Action1 console by clicking Install Agent and then clicking Recreate Installation Token in the second step of the wizard. Then update the Post-install script in the agent app properties in Microsoft Intune (see Stage 2).
Consider the following:
- Intune administrators can see the token in the app properties.
- On the endpoint, the token is part of the command line of the
action1_agentprocess while the registration runs (a few seconds). It can be recorded by tools that log process command lines (EDR, Endpoint Security clients). The token is not saved in the Intune agent logs or in the Action1 agent files.