We are here to help!

Find new ways to use Atera, Ask us anything.

Follow

Create or Upload Scripts

You can create or upload scripts within the platform. The script is then stored in the Atera scripts repository and can be run or scheduled. This article explains how to:

 

  • Create a script
  • Upload a script

 

 

Create a script

 

You can create a script within Atera.

 

To create a script:

 

1. From the left hand panel click Admin.

 

 

2. Then click Scripts.

The Scripts page appears.

 

 

3. Scroll to the bottom of the page and click the dropdown arrow next to Upload Script

 

4. Click Create Script

The Create Script screen appears.

 

Enter the Script parameters:

  • Description: Enter the description 
  • File Name: Enter the filename without using spaces e.g. 'powershellscript1'
  • File Type: Choose either BAT or PowerShell (ps1) file type.
  • Category: Add a new category or select from available ones.
  • Max Script Run Time (minutes): Specify the maximum script run time (can be from 1 - 60 minutes).
  • Arguments: Optionally enter any arguments for the script 
  • Run As: To run the script as a system administrator, tick System. To run the script as a current (local) user, tick Current User.
  • Variables: Enter script variables here as {[variable_name]}
  • Script Editor: Enter the script
    • Note: You can paste into this field from your preferred text/script/html editor.

 

5. Click Create.

Your script has been created. You can now run the script or schedule it via IT Automation.

 

 

 

Upload a script

 

You can upload a script within Atera.

 

To upload a script:

 

1.  Navigate to Admin > Scripts.

 

mceclip0.png

2.  Click Upload Script.

The Upload Script screen appears.

 

3.  Enter the description in the Description field.

4.  Upload the script file from your PC ( *.bat, *.msi, *.exe, *.ps1).

5.  Enter the Max Script Run Time. This is the maximum amount of time a script is allowed to run (can be from 1 - 60 minutes).

Note: You can optionally enter the arguments in the Arguments text entry box. You can also choose to run the script as a system (system administrator) or as a current user (current, local user). 

 

6.  Click Upload.

Your script has been created. You can now run the script or schedule it via IT Automation.

 

 

 

Was this article helpful?
1 out of 7 found this helpful
Have more questions? Submit a request