Home » Features >> Custom Scripts
srch-icn
 

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 Endpoint Central MSP'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:

  1. Click Configurations tab
  2. Under Add Configurations, select Configurations
  3. Choose Mac tab
  4. Select Custom Scripts and choose Computer
  5. Specify the name and description for the configuration
  6. Select the operation type as create
  7. You can choose the custom script, which has been added in the script repository. If you wanted to add a new custom script, then it should be first added to the script repository.
  8. Specify the arguments if any, needs to be specified
  9. Add the required dependency files, if any, for execution of the script.
  10. Specify an Exit code, which should be returned when the script is executed successfully
  11. 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.
  12. Define the target and notification settings
  13. Deploy the configuration.

You have successfully created a configuration to execute the custom scripts for computers.

Removing Custom Scripts

The following steps will explain you on how to remove "Custom Scripts", which were deployed using Endpoint Central MSP:

  1. Click Configurations tab
  2. Under Add Configurations, select Configurations
  3. Choose Mac tab
  4. Select Custom Scripts and choose Computers
  5. Specify the name and description for the configuration
  6. Select the operation type as Delete
  7. Specify the custom script which needs to be removed, you can also choose to remove all the custom scripts which were deployed using Endpoint Central
  8. Define the target and notification settings
  9. Deploy the configuration.

You have successfully created a configuration to delete the custom scripts for computers.