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 Casper Remote.

Requirements

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

Running a Script Using a Policy

  1. Log in to the JSS with a web browser.

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

  3. Click Policies.

  4. Click New images/download/thumbnails/16433212/New_icon.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 Self Service Policies.

  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 the JSS and meet the criteria in the General payload.

Running a Script Using Casper Remote

  1. Open Casper Remote and authenticate to the JSS.

  2. Click Site images/download/thumbnails/16433212/Site.png and choose a site.
    This determines which items are available in Casper Remote.
    Note: This button is only displayed if you have a site configured in the JSS and are logged in with a JSS 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.
    images/download/attachments/14453895/Computers_tab0.png

  4. Click the Scripts tab.

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

    images/download/attachments/5147301/Scripts_tab.png
  6. Configure the settings for the script.

  7. Click the Restart tab and configure settings for restarting computers.
    images/download/attachments/14453904/Restart_tab0.png

  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 | Terms of Use | Security
© copyright 2002-2017 Jamf. All rights reserved.