# 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](/deep-freeze-cloud/using-deep-freeze-cloud-console/applications/computers-windows/action-toolbar/action-toolbar-for-scripts.md).

## 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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.faronics.com/deep-freeze-cloud/using-deep-freeze-cloud-console/applications/scripts-windows.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
