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 the Endpoint Central console, navigate to Configurations --> Add Configurations --> Windows -> Custom Scripts -> Computer Configuration.
    2. Specify the name and description for the configuration.
    3. In the Configure Custom script section,
Field Description
Execute script from/run Choose whether to execute a script from the script repository or run a command line.
Command line Enter the command line argument you want to execute. Dynamic variables can be assigned if needed.
Dependency file Upload dependency files for the command, if any.
Specify exit code Confirm if the script has been executed successfully. If there are multiple exit codes, enter them by separating each with a comma.
Script name Select the script from the repository.
Script arguments Specify the arguments to be passed to the script when executed.
Frequency Choose the execution frequency:
  • Once
  • During every startup (every time the computer is turned on)
  • During subsequent startup (execution during the ensuing computer startup)
  • Every refresh cycle (executed every 90 minutes).
  1. Define targets for the deployment.
  2. Specify retry options if required and deploy the configuration.
  3. You can also enable notifications to receive emails based on the specified frequency.
  4. Click on Deploy button to deploy the configuration in the target machines.
  5. To save the configuration as draft, click Save as

You have successfully added a computer-based custom script for your endpoints.