How to Deploy an Application by Creating an Atera Script

Note:

  • When creating scripts, you can copy/paste from your preferred text/script/HTML editor.
  • When incorporating variables, employ {[variable_name]} without any spaces or special characters (!@#$%^&*).
  • The create script option allows the generation of Batch (.bat)PowerShell (ps1), or Shell (.sh) scripts. You can also upload Executable file (.exe) and Microsoft Installer (.msi) files to Atera.
  • In the Pro subscription plan for Atera, there is a 20MB limit for uploading .msi and .exe files. For users on higher subscription tiers, the upload limit is increased to 1GB.

To create a script:

1. Go to Admin > Monitoring and automation > Scripts.

Admin > Monitoring and automation > Scripts > Create script - MSP - EN.jpg

2. Click Create script.

The Create script page appears.

Create script page - EN.jpg

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.

5. Click More script properties to fill in other fields (optional).

  • Category: Enter the category (or select one from the dropdown list).
  • 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.

6. Enter the script in the script editor. Then click Create.

The script is created and will appear in the My scripts tab.

Create, upload, and generate scripts – Atera Support