Scripts are sequential series of commands that are executable on one or more devices using a management project.
To configure scripts you must enter the module intended for such, on this screen the list of scripts created and the options to manage these scripts are presented:
Scripting
To create a new script, click New; The form is enabled where you can create the script and enter the following data:
- Script Name
- Description
- Script (enter script)
You will also find the following options:
- State: By default it is set to Active (Active/Inactive).
- Verify: When the administrator selects this option, the text is corrected in its structure and syntax and validates the sequence of written commands. In response, the system generates a message in case of error, indicating the fault line. If the sequence is correct, the script is saved without errors
After filling in the requested data, click on Save.
Script editing
To edit a record, select a created record and follow the steps mentioned in scripting.
Available commands for scripts
The following table describes the commands currently available to be included in scripts.
Script | Description | Number of Parameters | Example |
---|---|---|---|
text | Displays a message on the device’s timeline (Not the message being sent to the device, this command does not interact directly with the device) | The necessary | text Starting Script Testing |
Copy | Copies an item (file or folder) from a source path to a destination path on the device | 2 | copy route/source route/destination |
of the | Delete an item (file or folder) from your device | 1 | of the path/element |
Start | Run an app on your device | 1 | Start com.facebook.katana |
install | Install an app on your device | 1 | install com.facebook.katana |
uninstall | Uninstall an app from your device | 1 | uninstall com.facebook.katana |
validateVersion | Check the version of a specific app installed on a device | 2 | valicateVersion com.facebook.katana 1.2 |
Policy | Send a policy command | 1 | policy DefaultPolicy |
Script removal
The administrator selects the script to be deleted from the list of records and clicks on the Eliminate
⚐ Note: - To delete a command script, the script cannot be linked to any management project.