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

# Crear una plantilla de script

Aunque Devolutions ofrece una amplia variedad de plantillas de scripts de PowerShell, los administradores pueden crear las suyas propias. Estos son los pasos para hacerlo:

1. Inicie sesión en Devolutions Server con una cuenta de administrador.
2. Vaya a ***Administración*** – ***Módulos*** – ***Acceso privilegiado*** – ***Propagación de contraseñas***.

   <figure><img src="https://cdnweb.devolutions.net/docs/DVLS0004_2025_3.png" alt=""><figcaption></figcaption></figure>
3. Haga clic en ***Plantillas de scripts***.

   <figure><img src="https://cdnweb.devolutions.net/docs/DVLS4042_2024_2.png" alt=""><figcaption></figcaption></figure>
4. Haga clic en ***Añadir***.

   <figure><img src="https://cdnweb.devolutions.net/docs/DVLS4049_2024_2.png" alt=""><figcaption></figcaption></figure>
5. En la pestaña ***General***, añada un ***Nombre*** para esta plantilla.

   <div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p>Es posible añadir una <em><strong>Descripción</strong></em>. El icono también se puede cambiar haciendo clic en él.</p></div>
6. En la pestaña ***Propiedades de propagación de contraseñas***, añada las variables del script haciendo clic en ***+ Añadir propiedad***. Las variables añadidas en esta pestaña deben representar la URL de la máquina remota (es decir, ComputerIP, Username, Password y RootFolder).

   <figure><img src="https://cdnweb.devolutions.net/docs/docs_en_kb_KB0113.png" alt=""><figcaption></figcaption></figure>
7. En la pestaña ***Asignación de propiedades***, añada las variables del script haciendo clic en ***+ Añadir propiedad***. Las variables añadidas en esta pestaña deben representar la ***Asignación de campos*** de la máquina remota (es decir, FileName y FilePath).

   <figure><img src="https://cdnweb.devolutions.net/docs/docs_en_kb_KB0114.png" alt=""><figcaption></figcaption></figure>
8. En la pestaña ***Script***, aparecen las variables anteriores, así como la variable ***NewPassword***. Esta nueva variable contendrá la nueva contraseña de la cuenta al ejecutar el script.
9. Haga clic en ***Generar script base***.

   <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>Haga clic en <em><strong>Editar</strong></em> para modificar o ampliar el script.</p></div>
10. Haga clic en ***Guardar*** para guardar esta configuración y cerrar la ventana.

    <div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p>Obtenga más información sobre los scripts personalizados para esta función visitando nuestro <a href="https://github.com/Devolutions/PAM-Providers/blob/master/Propagation-Scripts/Create-A-Template.md">GitHub público</a>.</p></div>

#### Véase también

* [Foco en la propagación de contraseñas: mantener todas las contraseñas sincronizadas entre sistemas](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, and the optional `goal` query parameter:

```
GET https://docs.devolutions.net/pam/es/pam-with-devolutions-server/password-propagation-scripts/create-a-script-template.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
