Create, generate with AI, upload, or clone scripts and .msi/.exe files in Atera to automate routine tasks, streamline operations, and provide exceptional support to your end users.
Create a script
Write a script yourself or generate one with AI Copilot.
Note:
- When creating scripts, you can copy/paste from your preferred text/script/HTML editor.
- When incorporating variables, use {[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.
- In the Professional 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.
The Scripts page appears.
2. Click + Create script.
The Create script page appears.
3. Fill in the fields:
- Script Name: Enter the name of the script (required).
- File type: Select .bat, .ps1, or .sh.
- Script description: Enter a description of what the script does (required).
- Category: Enter a category (optional).
4. Click More script properties to fill in other fields (optional).
- 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.
5. Turn on Enable for AI assistants to allow AI Copilot to recommend and run this script (optional).
6. Enter the script in the Script editor.
Tip: To generate code with AI Copilot directly in the editor, type the comment character for your file type (for example, # for .ps1 or REM for .bat), describe what you want, and press Enter. The editor shows the exact character to use.
7. Click Create.
The script is created and will appear in your Team scripts tab.
You can now run the script or schedule it via an automation profile.
Generate a script
Generate scripts tailored to your needs with AI Copilot by describing what the script should do in everyday language. You can use the Copilot: script generator panel on the Create script page, or type a comment in the script editor (for example, # for .ps1 or REM for .bat). Learn more
Upload a script
All scripts run via 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.
To upload a script:
1. Go to Admin > Monitoring and automation > Scripts.
The Scripts page appears.
2. Click Upload script.
The Upload script window appears.
3. Fill in the fields:
- Description: Enter a concise script description.
- Select file: Upload the script file from your PC (*.bat, *.msi, *.exe, *.ps1, *.sh). For *.msi files, use the following argument only: /qn (displays no user interface).
- Category: Add a new category or select from the available ones.
- Max script run time: Enter the maximum amount of time the script is allowed to run (1 to 60 minutes).
- Arguments: Enter any arguments for the script.
-
Run as:
- Check System to run the script as a system administrator.
- Check Current user to run the script as a local user.
4. Click Upload.
The script is uploaded and will appear in your Team scripts tab.
You can now run the script or schedule it via an automation profile.
Clone a script
Duplicate an existing team script to use as a starting point for a new one, without changing the original.
Note: To clone a script from the Shared library, see Shared Script Library.
To clone a team script:
1. Go to Admin > Monitoring and automation > Scripts.
The Scripts page appears.
2. In the Team scripts tab, click the name of the script you want to clone to open it.
3. Click the three dots (...) at the top right, then click Clone script.
The script is cloned and will appear in your Team scripts tab.
4. Open the cloned script, edit it as needed, and click Save (optional).