> 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/concepts/privileged-task-automation.md).

# Privileged task automation

Privileged task automation in Devolutions PAM runs scripts, macros, and scheduled tasks securely using credential injection without exposing passwords.

**Privileged task automation** (PTA) refers to securely running automated tasks—like scripts, macros, or processes, without exposing sensitive credentials. It supports the broader goal of protecting [privileged accounts](/pam/concepts/privileged-account.md) by minimizing manual input and reducing the risk of credential leaks during automation.

In Devolutions products, this is achieved by combining credential injection, secure scripting, and automated events. Remote Desktop Manager can execute scripts or macros before or after establishing a session, without revealing the credentials to users. Entries can reference credentials stored in a vault, allowing secure reuse across automation scenarios.

This approach enables system administrators to schedule or trigger remote tasks safely, such as software updates or server restarts, while ensuring full control, traceability, and [compliance](/pam/concepts/compliance-reporting.md) with access policies. For added security, credentials can be retrieved dynamically from an external PAM solution or a third-party password manager.

#### Privileged task automation aliases

* PTA
* Automated privileged task execution
* Secure scripting with credentials

#### Related topics

* [Scripts](https://docs.devolutions.net/rdm/concepts/advanced-concepts/scripts)
* [Events](https://docs.devolutions.net/rdm/concepts/advanced-concepts/events)
* [Password rotation](/pam/concepts/password-rotation.md)

#### See also

* [Devolutions Academy – Automating tasks with scripts and macros](https://academy.devolutions.net/student/page/1926033-automating-tasks-with-scripts-and-macros?sid=8d3d6806-7377-462a-96b9-3eea020b5052\&sid_i=0)


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.devolutions.net/pam/concepts/privileged-task-automation.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
