# Executing Custom Scripts 1. [Name the Configuration](https://www.manageengine.com/desktop-management-msp/help/computer_configuration/executing_custom_scripts.html#Executing-Custom-Scripts-Step1) 2. [Define Configuration](https://www.manageengine.com/desktop-management-msp/help/computer_configuration/executing_custom_scripts.html#Executing-Custom-Scripts-Step2) 3. [Define Target](https://www.manageengine.com/desktop-management-msp/help/computer_configuration/executing_custom_scripts.html#Executing-Custom-Scripts-Step3) 4. [Deploy Configuration](https://www.manageengine.com/desktop-management-msp/help/computer_configuration/executing_custom_scripts.html#Executing-Custom-Scripts-Step4) --- Endpoint Central MSP provides options for configuring almost all the computer configurations remotely. In addition to the configurations that are supported by Endpoint Central MSP, administrators can also write their own scripts that can be run on machines to accomplish specific configurations. The scripts can be any of the following: - Batch file (.bat or .cmd) - Any language hosted by Windows Script Host (WSH), such as VB Script, JScript, Perl, REXX, and Python. | | | |---|---| | ![](https://www.manageengine.com/products/desktop-central/help/images/note.jpg) | **Note:** The script engines for languages like Perl, REXX, and Python must be registered with Windows. You can also execute single-line commands, add dependent files, and enable logging to analyze the output of the script after execution. | ## Step 1: Name the Configuration Provide a name and description for the Custom Script Configuration. ## Step 2: Define Configuration The table below lists the parameters that must be provided for defining the configuration. | Parameter | Description | |---|---| | Execute Script from | You can execute the script either from the repository or as a command line. | | Script Name* | The script that has to be added or removed on the machines must be chosen from the script repository. It is mandatory to add the script to the script repository for this to work. | | Script Arguments | The arguments that must be provided while executing the scripts. | | Dependency files | The required dependency files for execution of the script must be added. | | Exit Code | Specify the exit code that should be returned when the script has been executed successfully. | | Frequency | Specify the frequency for this script to be executed, such as only once, during every system startup, during subsequent system startups for a specified number of times, or at all system startups until a specified time period. | ## Step 3: Define Target Using the [Defining Targets](https://www.manageengine.com/desktop-management-msp/help/defining_targets.html#Defining-Configuration-Target-Computers) procedure, define the targets for deploying the Custom Script Configuration. ## Step 4: Deploy Configuration Click the **Deploy** button to deploy the defined Custom Script Configuration to the targets. To save the configuration as a draft, click **Save as Draft**.