Writing scripts ain't like dusting crops, kid! While mistakes made won't have you bouncing through a supernova, they can still cause headaches and extra work. But now, you can dodge those hassles by using AI to generate and tweak scripts tailored to your needs. This saves you time and effort, boosting your efficiency and productivity.
Note: We recommend you review all scripts generated to ensure proper functionality.
How it works
How are the script recommendations generated?
We partnered up with OpenAI to generate scripts using AI within Atera. From a set of simple or complex instructions, you're now able to generate powerful scripts in no time. It's the perfect combination of simplicity and sophistication.
What do I add to the instructions?
To generate a script, enter the specific commands or instructions that you want the script to execute when run. These instructions could include advanced tasks such as running other programs, performing calculations, or manipulating files or data.
What are the examples?
The example script descriptions are the most cloned scripts in Atera's Shared Script Library. We've provided these examples if you need help or inspiration in writing out script descriptions. When you select an example, the script's description will automatically populate in the Describe what the script should do field.
Note: You can always tweak the generated instructions to suit your specific needs, before generating a script.
What happens when I create a script using AI?
As with any other script, it will appear in the My Scripts tab on the Scripts page. From here, it can be edited, shared with the Shared Script Library, or deleted. And of course, it can be applied to IT automation profiles and threshold profiles.
Generate and edit scripts using AI
We'll start as we always have, by setting up our script. Once we have the name, description, and properties set, we can generate a script recommendation using AI!
via the script generator
To generate a script via the script generator:
1. Go to Admin > Monitoring and automation > Scripts.
The Scripts page appears.
2. Click Create script. The Create script page appears.
3. Enter the script name and select the file type (.bat, .ps1, or .sh).
4. Enter the script description.
Note: This description will appear on the Scripts page, under the Description column.
5. Optional: Click the More script settings dropdown to include:
- Category: Enter the script category.
- Max script run time (in minutes): Enter the max run time. The default max run time is 10 minutes.
- Arguments: Enter the script arguments.
- Run as: Choose from System or Current user.
6. Within the Copilot: script generator, describe what the script should do. Then click Generate.
Note: You can select from any of the examples provided if you want to see example script descriptions.
The AI-generated script appears within the Script editor.
7. Make any necessary changes to the generated script. Then click Create (top right of the page).
The script appears in the My Scripts tab, where it can be edited or shared to the Shared Script Library. You can also attach the script to IT automation profiles and threshold profiles
via the script editor
To generate a script via the script editor:
1. Go to Admin > Monitoring and automation > Scripts.
The Scripts page appears.
2. Click Create script. The Create script page appears.
3. Enter the script name and select the file type (.bat, .ps1, or .sh).
4. Enter the script description.
Note: This description will appear on the Scripts page, under the Description column.
5. Optional: Click the More script settings dropdown to include:
- Category: Enter the script category.
- Max script run time (in minutes): Enter the max run time. The default max run time is 10 minutes.
- Arguments: Enter the script arguments.
- Run as: Choose from System or Current user.
6. Within the Script editor, type "#" and describe what the script should do. Then press the Enter key.
7. Make any necessary changes to the generated script. Then click Create (top right of the page).
Note: You can easily modify the script using the same method used to create it — just add comments right in the script.