How to Execute a Script

All scripts can be executed using an ITScripts template. You can also execute a script directly without a template if the script does not require input parameters or if you want to use the default parameter values.

You can initiate the execution of a script from several different areas of the interface.

Note: A console must trust the authority that issued the certificate in order to import or execute the script on that console. If you import user scripts on one console, they will appear on other consoles that are using the same database. If the other consoles don’t trust the signer, however, they will not be able to execute the scripts.

From the Home Page

You can use the home page to execute a script on any of the four pre-defined groups (My Machine, My Domain, My Test Machines, Entire Network) or on a custom machine group.

  1. Type a name for the operation you are about to perform.

One suggestion is to specify which machines are affected and the purpose of the operation (for example, Sample Group GetRebootTime). You may wish to include other identifiers such as the template being used, if it is a regularly scheduled operation or an out of band task, etc. A maximum of 80 characters can be used for the name.

A date and time stamp will be automatically appended to the name. If you do not specify an operation name, the date and time stamp will be used as the name.

  1. Select the desired machine group(s).

  1. Select when you want to execute the script (Now, Once, or Recurring).

  2. Select how you want to execute the script.

  1. Click either Run or Schedule.

You can review the results of the script using ITScripts Results View.

From Machine View or Scan View

You can execute a script from within Machine View or Scan View by using right-click commands.

  1. Select one or more machines.

  2. Right-click the machine(s), select ITScripts, and then specify how you want to execute the script.

 

After making your selections, click Continue and use the Run Operation dialog to specify when the script should be run.

From a Machine Group

  1. In the Machine Groups pane select the desired machine group.

  1. Within the machine group dialog click Run Operation.

 

  1. On the Run Operation dialog, select when you want to execute the script (Now, Once, or Recurring).

  2. Select how you want to execute the script.

  1. Click either Run or Schedule.

You can review the results of the script using ITScripts Results View.

From the Tools > Run console ITScripts Menu

The Tools > Run console ITScripts command enables you to select and run Console mode scripts. These are scripts that are designed to run only on the console machine and not against target machines. The Run console ITScripts dialog is displayed.

This dialog enables you to run a console-only script with or without a template.

After making your selections, click Continue and use the Run Operation dialog to specify when the Console mode script should be run.