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.

There are two ways to run scripts on computers: using a policy or using Jamf Remote.

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/79174659/Icon_New_Button.png .

  5. Use the General payload to configure basic settings for the policy, including the trigger and execution frequency.
    For an overview of the settings in the General payload, see General Payload.

  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.
    For more information, see Restart Options Payload.

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

  13. Click Save.

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.

Running a Script Using Jamf Remote

  1. Open Jamf Remote and authenticate to the Jamf Pro server.

  2. Click Site images/download/thumbnails/79174659/Site.png and choose a site.
    This determines which items are available in Jamf Remote.

    Note: This button is only displayed if you have a site configured in Jamf Pro and are logged in with a Jamf Pro user account that has full access or access to multiple sites.

  3. In the list of computers, select the checkbox for each computer on which you want to run the script.

  4. Click the Scripts tab.

  5. In the list of scripts, select the checkbox for the script you want to run.

  6. Configure the settings for the script.

  7. Click the Restart tab and configure settings for restarting computers.

  8. Do one of the following:

    • To immediately perform the tasks on the specified computers, click Go.

    • To schedule the tasks to take place at a specific day and time, click Schedule and choose a day and time. Then click Schedule again.

Related Information

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

  • About Policies
    Learn the basics about policies.

  • Managing Policies
    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-2019 Jamf. All rights reserved.