Home » Execute Custom Scripts

Executing Custom Scripts

What is a custom script?

The custom script configuration in Endpoint Central is a software configuration that allows users to perform administrative activities along with other additional on- demand tasks. Custom scripts prove to be of great aid to administrators when it comes to executing configurations specific to the organizations in concern.The custom scripts provided by Endpoint Central allows you to perform up to 40 predefined configurations such as print configuration, drive mapping, other security policies and so on.

Supported languages for custom scripts

The Custom script can be written using any of the popular scripting languages, such as VB Script, JScript, Perl, Python, and so on. The supported formats are Batch file (.bat or .cmd) and any other language hosted by Windows Script Host (WSH), such as VB Script, JScript, Perl, REXX, and Python for Windows OS or sh, bash, ksh, csh, tcsh and py for Linux. Since scripts downloaded from the web have a possibility of being malicious, IT admins will get an additional task to rewrite these corrupted scripts. To avoid this hurdle, Endpoint Central provides a script repository which contains scripts that are checked and uploaded. To know more about the vast script templates in the script repository of Endpoint Central, click this link

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 Computer for Windows and Computer for Linux
  3. Specify the Name and Description for the configuration
  4. In the Configure Custom script criteria,
    • Execute script from/ run: You have an option to choose a script from the script repository( the custom scripts provided by endpoint central) 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