Using Script Templates

Using Script Templates

Barracuda RMM includes three script templates that you can use as the basis for creating a custom script:

  • PowerShell

  • Python

  • VBScript

Each template implements the same functionality, demonstrating:

  • Param mechanisms, which tell you how to handle the parameter types.

  • A command that you can run to determine in which directory the script files are located.

  • A script example.

To use a script template
  1. In Service Center, clickย Automationย >ย Library.

  2. In theย Categoryย column, selectย Script Templatesย from the list.

  3. Select the check box beside the script template you want to customize.

  4. Clickย Export.

  5. Clickย Saveย and specify a location.

  6. The script is saved as an .mws file. To open the script file, rename the file with a .zip extension.

  7. The .zip file contains the script file and an XML file containing the script metadata. Extract the script file and open it in a text editor.

  8. Replace the script example portion with your custom script, and save.

  9. In Service Center, clickย Automationย >ย Libraryย >ย Newย Script.

ย