> For the complete documentation index, see [llms.txt](https://docs.devolutions.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.devolutions.net/pam/pam-with-devolutions-server/password-propagation-scripts/create-a-script-template.md).

# Create a script template

Although Devolutions propose a wide variety of PowerShell script templates, administrators can make custom ones. Here are the steps to do it:

1. Log in to Devolutions Server with an administrator account.
2. Go to ***Administration*** – ***Modules*** – ***Privileged access*** – ***Password propagation***.

   <figure><img src="https://cdnweb.devolutions.net/docs/DVLS0004_2025_3.png" alt=""><figcaption></figcaption></figure>
3. Click on ***Script templates***.

   <figure><img src="https://cdnweb.devolutions.net/docs/DVLS4042_2024_2.png" alt=""><figcaption></figcaption></figure>
4. Click on ***Add***.

   <figure><img src="https://cdnweb.devolutions.net/docs/DVLS4049_2024_2.png" alt=""><figcaption></figcaption></figure>
5. In the ***General*** tab, add a ***Name*** for this template.

   <div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p>It is possible to add a <em><strong>Description</strong></em>. The icon can also be changed by clicking on it.</p></div>
6. In the ***Password propagation properties*** tab, add the variables for the script by clicking on ***+ Add property***. The variables added in this tab should represent the URL to the remote machine (i.e., ComputerIP, Username, Password and RootFolder).

   <figure><img src="https://cdnweb.devolutions.net/docs/docs_en_kb_KB0113.png" alt=""><figcaption></figcaption></figure>
7. In the ***Property mapping*** tab, add the variables for the script by clicking on ***+ Add property***. The variables added in this tab should represent the ***Field mapping*** of the remote machine (i.e., FileName and FilePath).

   <figure><img src="https://cdnweb.devolutions.net/docs/docs_en_kb_KB0114.png" alt=""><figcaption></figcaption></figure>
8. In the ***Script*** tab, the previous variables appear as well as the ***NewPassword*** variable. This new variable will contain the new password for the account on script execution.
9. Click on ***Generate base script***.

   <figure><img src="https://cdnweb.devolutions.net/docs/docs_en_kb_KB0115.png" alt=""><figcaption></figcaption></figure>

   <div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p>Click on <em><strong>Edit</strong></em> to modify or add to the script.</p></div>
10. Click ***Save*** to save this configuration and close the window.

    <div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p>Learn more about custom scripts for this feature by visiting our <a href="https://github.com/Devolutions/PAM-Providers/blob/master/Propagation-Scripts/Create-A-Template.md">public GitHub</a>.</p></div>

#### See also

* [Spotlight on password propagation: Keeping all passwords in sync across systems](https://www.youtube.com/watch?v=TjvE-nubPXY\&ab_channel=Devolutions)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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.devolutions.net/pam/pam-with-devolutions-server/password-propagation-scripts/create-a-script-template.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.
