Running Scripts

When you run a script, you can choose a priority for running the script. You can also enter parameter values for the script.

You can run scripts on computers by using a policy.

Note: When running a script that contains HTML tags in the output, the tags are not rendered in policy logs.


To run a script on computers, the script must exist on the distribution point you plan to deploy it from and in Jamf Pro, or in the Jamf Pro database. For more information, see Managing Scripts.

Running a Script Using a Policy

  1. Log in to Jamf Pro.

  2. Click the Computers tab at the top of the page.

  3. Click Policies.

  4. Click New images/download/thumbnails/81543495/Icon_New_Button.png .

  5. Use the General payload to configure basic settings for the policy, including the trigger and execution frequency.

  6. Select the Scripts payload and click Configure.

  7. Click Add for the script you want to run.

  8. Configure the settings for the script.

  9. Use the Restart Options payload to configure settings for restarting computers.

  10. Click the Scope tab and configure the scope of the policy.
    For more information, see Scope.

  11. (Optional) Click the Self Service tab and make the policy available in Self Service.
    For more information, see Items Available to Users in Jamf Self Service for macOS.

  12. (Optional) Click the User Interaction tab and configure messaging and deferral options.
    For more information, see User Interaction with Policies.

  13. Click Save images/download/thumbnails/81531754/floppy-disk.png .

The policy runs on computers in the scope the next time they check in with Jamf Pro and meet the criteria in the General payload.

Related Information

For related information, see the following sections in this guide:

  • About Policies
    Learn the basics about policies.

  • Policy Management
    Find out how to create policies, view the plan and status for a policy, and view and flush policy logs.

Copyright     Privacy Policy     Terms of Use     Security
© copyright 2002-2020 Jamf. All rights reserved.