Action1 5 Documentation 5 Run Scripts Remotely

Run Scripts Remotely

 

With Action1, you can assist your colleagues remotely and run Powershell or CMD scripts on multiple remote computers without connecting to them. Read this article to learn how to execute scripts on remote machines with the help of Action1 RMM tools.

To run PowerShell or CMD script on a remote computer:

  1. Navigate to the Endpoints page.
  2. Locate one or several endpoints where you want to execute a script and select More Actions / Run Script.

To create a workflow that executes a PowerShell script on remote computers according to a preset schedule, select New Policy. For more information, see Staying Compliant with Policies.

Endpoints dashboard

To complete the wizard:

1. On the Run Script step, enter the command or upload a script from the Script Library that contains dozens of administration and configuration scripts. The scripts from the library can include parameters for fine-tuning and customizing these scripts, for example, the offset value you can specify for this action, a message to be displayed to device owners. If adding a new script, consider saving in the library to reuse later.

Running a script remotely

2. On the Select Endpoints step, check the list of endpoints. Select Add Endpoints to include more endpoints. Action1 enables you to pick endpoints individually, or you can specify an entire endpoint group.

Running a script - step 2

3. On the Schedule step, add an action title and pick the right time to execute it. For example, you can force the script execution immediately, schedule, or postpone it. By default, Action1 will attempt to distribute this script to the powered-off endpoints if they get back online within 24 hours time frame. Update this setting if necassary but make sure not to set the missing schedule time frame setting to an interval longer than the frequency of action execution (i.e., don’t set it to 48 hours if the action is executed every day). Once ready, click Finish.

Running a script - step 3

4. After clicking Finish, you’ll find yourself on the Actions / History page. Here you’ll see the execution details. If you opted-in to execute the action later, you can find it on the Actions / Schedules page.