Pre-requisite: Get the Deployment Script by following the steps in Use deployment scripts to add and protect computers. The deployment script is used in the below steps.
Here are the deployment steps:
- Login AirWatch. (https://techp.awmdm.com/)
- Go to "RESOURCES → Scripts".
- Click the "ADD" button and choose "macOS" platform.
- Type in your script name and description. (For example: both are AgentDeploymentScript)
- Choose "Bash" as the language type, and "System" as the execution context, at least 300s for timeout. You can copy and paste the deployment script context into the text field, or upload it.
- Assign the deployment script to target groups. Select "AgentDeploymentScript" and then click the "ASSIGN" button.
- Click "NEW ASSIGNMENT"
- Type in the assignment name and select target groups.
- Choose "Run Once immediately", and click the "ADD" button at the bottom.
- Click "SAVE AND PUBLISH" to finish deployment process.
- When prompted, click "PUBLISH" button.
- Login Microsoft Intune. (https://endpoint.microsoft.com/)
- Click "Devices" → "Scripts" and Click "Add" button to choose macOS platform.
- Input Name and Description. (for example: AgentDeploymentScript_C1WS)
- Upload the generated deployment script and choose suitable parameters.