Home » Executing Custom Scripts

Executing Custom Scripts

What is a custom script?

The software configuration in Endpoint Central called custom script enables users to carry out administrative chores and other on-demand tasks. When it comes to carrying out customizations particular to the organizations in question, custom scripts have shown to be of great use to administrators. You can execute up to 40 predefined configurations using the custom scripts offered by Endpoint Central, including print configuration, drive mapping, various security policies, and so on

Supported languages for custom scripts

Any of the widely used scripting languages, including VB Script, JScript, Perl, Python, and others, can be used to create the custom script. Batch files (.bat or.cmd) and any other language supported by Windows Script Host (WSH), including Python, VB Script, JScript, Perl, REXX, and Perl for Windows OS, and sh, bash, ksh, csh, and tcsh for Linux, are the formats that are supported. IT administrators will have the responsibility of rewriting any corrupted scripts that were obtained from the web due to the prevalence of any malware and bugs. As a solution, Endpoint Central offers a script repository with validated and uploaded scripts to get over this obstacle.To learn more about the several script templates in Endpoint Central's script repository, click here.

How to add custom scripts to script templates?

Based on customer interaction and support feedback, Endpoint Central has an extensive built in repository with over 300+ scripts. The configurations created with these script templates will be ready for deployment after passing the required arguments. You can view the list of script templates here : Endpoint Central web console > Configurations > Settings > Script Repository > Templates. Based on your requirement, you can select the template and click on it to add the script to your local script repository. The templates are updated periodically to enhance its capability. To utilize the custom script, it should first added to the script repository. By enabling the option to share the custom script with Endpoint Central, the script will be stored, processed, tested and subsequently shared to the Endpoint Central users via the script templates. Here is the complete list of the available script templates. You can deploy these scripts in form of configurations to users/computers.

How to add and execute custom scripts?

  1. In Endpoint Central Console, navigate to Configurations tab --> Add Configurations --> Configurations--> Windows
  2. Select Custom Scripts and choose User for Windows and User for Linux
  3. Specify the Name and Description for the configuration
  4. In the Configure Custom script criteria,
    • Execute script from/ run: You have the option to choose a script from the script repository or run a command line.
    • Add the Script name
    • Specify the Script Arguments. For the command line option, dynamic variables can be assigned for the script.
    • Add any dependency files if required
    • Enter the exit code
    • Specify the frequency
    • You also have an option to enable logging for troubleshooting
  5. Define targets for the deployment.
  6. Specify retry options if required and deploy the configuration.
  7. You can also enable notifications to receive emails based on the specified frequency.
  8. Click on Deploy button to deploy the configuration in the target machines.
  9. To save the configuration as draft, click Save as

You have successfully added a custom script for Windows/Linux machines