Executing Custom Scripts for Computer
Administrators would have the necessity to execute Custom Scripts, before or after deploying configurations. In some cases, executing custom scripts will help the administrators to perform some of the complex tasks at ease. Custom scripts can be executed during system startup or refresh cycle. The first step in executing a custom script is to add Custom Scripts to the Desktop Central's Script Repository, for them to be deployed to the target users.
Adding Custom Scripts
The following steps will explain you on how to execute "Custom Scripts" to computers:
- From Configurations tab, navigate to Add Configurations -> Configuration -> Mac.
- Select Custom Scripts and choose Computer.
- Specify the name and description for the configuration.
- Select the operation type as create.
- You can choose the custom script, which has been added in the script repository. If you want to add a new custom script, then it should first be added to the script repository.
- Specify the arguments if any, needs to be specified.
- Specify an Exit code, which should be returned when the script is executed successfully.
- Specify the frequency for this script to be executed, like only once, during every system startup, during subsequent system startup for specified number of times or all system startup until a specified time period.
- Define the target and execution settings.
- Deploy the configuration.
You have successfully created a configuration to execute the custom scripts for computers.