> 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/rdm/integrations/devops-ci-cd/powershell-universal.md). Agents can also search and read this documentation through its [MCP server](https://docs.devolutions.net/~gitbook/mcp).

# SecretManagement.DevolutionsServer (PowerShell Universal)

Use the SecretManagement.DevolutionsServer module to register a Devolutions Server vault in PowerShell SecretManagement and read and write its secrets.

SecretManagement.DevolutionsServer is a Microsoft.PowerShell.SecretManagement extension that registers a Devolutions Server vault as a secret vault in PowerShell. Devolutions Server is a workspace type of Remote Desktop Manager. This integration does not use a Remote Desktop Manager entry type.

## Prerequisites

* A Devolutions Server instance. See [Devolutions Server](https://docs.devolutions.net/server).
* PowerShell 7.0.
* The Microsoft.PowerShell.SecretManagement module, version 1.1.2 or later, and the Devolutions.Server module, version 2022.3.2 or later. They are installed as dependencies of the module.

## What you can do

* Register a Devolutions Server vault in SecretManagement with the `Register-DevolutionsServerSecretVault` function.
* Use the SecretManagement functions `Get-Secret`, `Set-Secret`, `Remove-Secret`, `Get-SecretInfo` and `Test-SecretVault` with the registered vault.
* Unlock the registered vault with the `Unlock-DevolutionsServerSecretVault` function.

## Configure SecretManagement.DevolutionsServer

1. Install the module from the PowerShell Gallery with `Install-Module -Name SecretManagement.DevolutionsServer`.
2. Register the vault with the `Register-DevolutionsServerSecretVault` function and its parameters:

   * `Name`: the name of the registered vault.
   * `Url`: the URL of the Devolutions Server instance.
   * `Credentials`: a `PSCredential` object for Devolutions Server.
   * `Vault`: the name of the Devolutions Server vault.

   ```powershell
   $credentials = Get-Credential
   Register-DevolutionsServerSecretVault -Name 'DVLS' -Url 'https://devolutions-server.example.com' -Credentials $credentials -Vault 'my-vault'
   ```

## Use SecretManagement.DevolutionsServer

1. Read a secret from the registered vault with `Get-Secret`.
2. Create or update a secret with `Set-Secret`, and delete one with `Remove-Secret`.

## Integration level

PowerShell Universal is an integration level 2 – Moderate support integration. See [Integration levels](https://docs.devolutions.net/resources/integration-levels).

#### See also

* [PowerShell Universal entry settings](https://docs.devolutions.net/rdm/knowledge-base/knowledge-base-articles/entry-settings/powershell-universal.md)
* [SecretManagement.DevolutionsServer on the PowerShell Gallery](https://www.powershellgallery.com/packages/SecretManagement.DevolutionsServer)


---

# 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/rdm/integrations/devops-ci-cd/powershell-universal.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.
