Views:

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:

  1. Login AirWatch. (https://techp.awmdm.com/)
  2. Go to "RESOURCES → Scripts".

    Scripts

  3. Click the "ADD" button and choose "macOS" platform.

    macOS

  4. Type in your script name and description. (For example: both are AgentDeploymentScript)

    Deployment Scripts

  5. 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.

    Language Type

  6. Assign the deployment script to target groups. Select  "AgentDeploymentScript" and then click the "ASSIGN" button.

    Assign

  7. Click "NEW ASSIGNMENT"

    New Assignment

  8. Type in the assignment name and select target groups.

    Assignment Info

  9. Choose "Run Once immediately",  and click the "ADD" button at the bottom.

  10. Click "SAVE AND PUBLISH" to finish deployment process.

    Save and Publish

  11. When prompted, click "PUBLISH" button.
  1. Login Microsoft Intune. (https://endpoint.microsoft.com/)
  2. Click "Devices" → "Scripts" and Click "Add" button to choose macOS platform.

    Scripts

  3. Input Name and Description. (for example: AgentDeploymentScript_C1WS)

    Add script

  4. Upload the generated deployment script and choose suitable parameters.
    • Run script as signed-in user → NO
    • Hide script notifications on devices → Yes
    • Script frequency → Not configured
    • Max number of times to retry if script fails → 3 times

      Max Number

    • Select target groups as Included groups and save.

      Add Groups