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:
Note: For Atera's MSP platform, there is an upload limit of 20 MB per script, for Pro plan subscribers, while Growth and Power subscribers can upload scripts up to 1 GB.
Create a Script
1. From the left-hand panel click Admin > Scripts.
The Scripts page appears.
3. Click the Create Script button, at the top of the page.
The Create Script screen appears.
4. Fill in the mandatory fields:
- Script name: Enter the name of the script
- Script Description: Enter the description
- File Type: Choose either Batch (.bat)., PowerShell (ps1), or Shell (.sh) file type.
Optionally, you can click on More script properties to fill in other fields.
- 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: 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.
- Script Editor: Enter the script
Notes
- You can paste into this field from your preferred text/script/HTML editor.
- When incorporating variables, employ {[variable_name]} devoid of spaces or any special characters (!@#$%^&*).
- You have the ability to harness the potential of OpenAI to swiftly produce scripts! Learn more here.
5. Once you have filled in all fields, click on Create.
Your script has been created. You can now run the script or schedule it via IT Automation.
Upload a Script
1. Navigate to Admin > Scripts. The Scripts page appears.
2. Click the Upload Script button, at the top of the page.
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, *.sh).
Note: For *.msi files, use the following argument only /qn [Displays no user interface]
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).
6. You can optionally enter arguments in the Arguments text entry box.
Important Note: All scripts in Atera, including those with *.exe and *.msi files, are run silently on Windows devices. However, when including installation files, you may need to include additional arguments for silent installation. In such instances, if the script isn’t set up to include these argument(s), it will continue to run in the background without a user interface, preventing the end user from interacting with the installation wizard and resulting in the software not being installed. To ensure that installations are completed successfully, it’s essential to be familiar with the installation files you’re working with as well as the relevant parameters needed to run them silently.
7. To run the script as a system administrator, tick System (under Run As). To run the script as a current (local) user, tick Current User.
8. Click Upload.
Your script has been created. You can now run the script or schedule it via IT Automation