# Custom Scripts (Windows)

You can create custom scripts to automate the execution of tasks to your targeted computers.

## Create Custom Scripts

To create custom scripts, click the _Custom Script_ button then select _Create Custom Script_.

Specify the Custom Script details. Assign a _Script Name_ and _URL_ (start with http://, https://, or \\\UNC) for the custom script and select the file type: PowerShell, VB Script, Batch Script, or Executable (.exe).

Enter the command line.

Select whether to run the custom script as _System Account_ or _Specified User_ _Account_. When you select to run the custom script as a _Specified User Account_, provide the _Login ID_, _Password_, and _Domain_ associated with the account.

Click _Run Once_ to select the computers on which to run the custom script, or click _Save to Grid_ to save the script.

{% hint style="info" %}
Clicking _Run Once_ will execute the script on the selected computer but will not save the script.
{% endhint %}

To view details of Custom Scripts, refer to [Action Toolbar for Scripts](computers-windows/action-toolbar/action-toolbar-for-scripts).

## View Custom Scripts

To view custom scripts, click the _Custom Script_ button then select _View Custom Scripts_.

This page displays the list of custom scripts that have been created as well as the configurations for each custom script.

To search for custom scripts, enter a parameter in the Search field.

To create a new custom script, click _Add_.

To edit a custom script, select the app then click _Edit_. Alternatively, in Control Grid view, click on the name of the custom script to call up the _Action Toolbar_, and then click _Edit Details_.

To delete custom script, select the script(s) then click _Delete_. You can delete multiple script at a time. Alternatively, in Control Grid view, click on the custom script to call up the _Action Toolbar_, and then click _Delete_.

To copy a custom script, select the script. Click _Copy_ then select to _Duplicate_ a custom script or _Copy to Sites_.

* Duplicate – Selecting _Duplicate_ will create an exact copy of the custom script. You can only duplicate one script at a time.
* Copy to Sites – Selecting _Copy to Sites_ will copy the script to your preferred Site. You can copy a single or multiple scripts to a single Site or to multiple Sites at a time.
