> 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/agent/for-administrators/deploy/windows.md). Agents can also search and read this documentation through its [MCP server](https://docs.devolutions.net/~gitbook/mcp).

# Install Devolutions Agent on Windows

Install Devolutions Agent on Windows with the setup wizard, choose its components, and check that the service and the Desktop Agent are running.

The ***Devolutions Agent*** setup wizard installs the Devolutions Agent service and the components you select. Use it to install Devolutions Agent on a few machines; to install it on many machines without any window, see [Deploy Devolutions Agent silently](https://docs.devolutions.net/agent/for-administrators/deploy/silent-install.md).

## Prerequisites

* 64-bit Windows on an x64 or ARM64 processor.
* Microsoft .NET Framework 4.8 or later.
* An account with local administrator rights.
* The installer for the processor of the machine: `DevolutionsAgent-<version>-x64.msi` or `DevolutionsAgent-<version>-arm64.msi`, from the [Devolutions Agent page](https://devolutions.net/agent/) or the [GitHub releases](https://github.com/Devolutions/devolutions-gateway/releases) of Devolutions Gateway.
* For the ***Agent Tunnel*** component: an enrollment string from the Devolutions Gateway administrator, and outbound access from this machine to the gateway over TCP (HTTP listener, 7171 by default) and UDP (Agent Tunnel listener, 4433 by default).
* For the ***PowerShell Universal Agent*** component: the address of the PowerShell Universal server and an application token.

## Install Devolutions Agent

1. Double-click the `.msi` file. The installer shows "Please wait for UAC prompt to appear." and Windows asks for administrator rights.
2. On the welcome page, titled with the product name and version, click ***Next***.
3. On the component page, choose the components. ***Devolutions Agent*** is always installed.

<table><thead><tr><th width="250">COMPONENT</th><th width="120">PRESELECTED</th><th>CHOOSE IT WHEN</th></tr></thead><tbody><tr><td><em><strong>Devolutions Gateway Updater</strong></em></td><td>Yes</td><td>Devolutions Agent must update itself, Devolutions Gateway, or the Devolutions Cloud on-premises services. Required on every Devolutions Gateway machine that Devolutions Server or Devolutions Cloud updates.</td></tr><tr><td><em><strong>Agent Tunnel</strong></em></td><td>No</td><td>A Devolutions Gateway must reach the network of this machine without an inbound port. Adds the <em><strong>Agent Tunnel</strong></em> page to the wizard.</td></tr><tr><td><em><strong>PowerShell Universal Agent</strong></em></td><td>No</td><td>PowerShell Universal must run jobs on this machine. Adds the <em><strong>PowerShell Universal Agent</strong></em> page to the wizard.</td></tr><tr><td><em><strong>UniGetUI Package Broker</strong></em></td><td>No</td><td>Standard users must install or update apps with Devolutions UniGetUI within an administrator policy.</td></tr><tr><td><em><strong>RDP Extension</strong></em></td><td>Yes</td><td>Remote Desktop Manager connects to this machine with RDP and uses jumps, remote execution or remote logoff. Required on jump hosts.</td></tr><tr><td><em><strong>Devolutions PEDM</strong></em> (<em><strong>Experimental</strong></em>)</td><td>No</td><td>You want to test local privilege elevation. See <a href="https://docs.devolutions.net/agent/guides/pedm-local-elevation.md">PEDM local elevation</a>.</td></tr></tbody></table>

4. If you selected ***Agent Tunnel***, fill in the ***Agent Tunnel*** page ("Connect this agent to a Devolutions Gateway."):
   * ***Enrollment String (provided by your gateway operator):*** paste the enrollment string. Required: "An enrollment string is required. Paste the enrollment string provided by your gateway operator, or go back and deselect the Agent Tunnel feature."
   * ***Advertise Subnets:*** comma-separated IPv4 networks that the gateway can reach through this agent, for example `10.10.0.0/24, 192.168.1.0/24`. When left empty, the agent advertises no network, and only the DNS routes can be reached.
   * ***Advertise DNS Routes:*** exact names, which match only themselves, or wildcards such as `*.example.com`, which match subdomains.
   * When the installer finds the DNS domain of the machine, a check box asks "The DNS domain *domain* was detected. Advertise its subdomains as *route*?". Otherwise the page says "No DNS domain was detected. Enter exact names or explicit wildcard routes below if needed."
5. If you selected ***PowerShell Universal Agent***, fill in the ***PowerShell Universal Agent*** page ("Configure how this agent connects to PowerShell Universal."):
   * ***Server URL:*** the PowerShell Universal address, for example `http://localhost:5000`. The installer checks that it can reach the server within 3 seconds; if not, it asks "Could not reach the PowerShell Universal server" with the details, and whether to continue anyway.
   * ***App Token:*** choose ***Token value*** and paste the application token, or choose ***Secret name*** and type the name of a PowerShell SecretManagement secret that holds the token.
   * ***Agent ID:*** optional, the machine name by default.
   * ***Display Name:*** optional, the agent ID by default.
6. On ***Destination Folder***, keep `C:\Program Files\Devolutions\Agent\` or click ***Change***, then click ***Next***.
7. On ***Ready to install Devolutions Agent***, click ***Install***.
8. On the last page, click ***Finish***.

With the ***Agent Tunnel*** component, the installation enrolls the agent and then tests the UDP connection to the gateway. If the test fails, the installation stops and rolls back, so you can open the firewall and try again. See [Error messages](https://docs.devolutions.net/agent/help/troubleshooting/error-messages.md).

## What happens after the installation

* The ***Devolutions Agent Service*** Windows service (`DevolutionsAgent`) starts and is set to start automatically.
* The Desktop Agent tray application starts for the current user, and then at every sign-in for every user. Its tooltip shows ***Devolutions Agent*** with the version, and its menu shows ***Service running*** or ***Service unavailable***.
* `C:\ProgramData\Devolutions\Agent\agent.json` holds the settings of the selected components.
* Two Windows Firewall rules named ***Devolutions Agent Service*** are added for `DevolutionsAgent.exe`.

No restart of Windows is needed. The RDP Extension starts in remote desktop sessions that open, or are unlocked, after the installation: if an RDP session to this machine was open during the installation, disconnect it and connect again.

## Check the installation

1. Run `Get-Service DevolutionsAgent` in PowerShell. The status is ***Running***.
2. Open `C:\ProgramData\Devolutions\Agent\agent.json`. Each component has `"Enabled": true` when it was selected, for example `"Session": { "Enabled": true }` for the RDP Extension.
3. Check the latest `agent*.log` file in `C:\ProgramData\Devolutions\Agent\`. Its first lines show the Devolutions Agent version.

## Change the components later

Programs and Features doesn't offer a ***Change*** button for Devolutions Agent. Run the `.msi` of the installed version again and choose ***Change*** to add or remove components, ***Repair*** to reinstall the files, or ***Remove*** to uninstall. The service restarts at the end of a change or a repair.

## Installer messages

<table><thead><tr><th width="330">MESSAGE</th><th>WHAT TO DO</th></tr></thead><tbody><tr><td>"The product requires Microsoft .NET Framework 4.8. Would you like to download it now?"</td><td>Click <em><strong>Yes</strong></em> to open the Microsoft download page, install .NET Framework 4.8, then run the installer again.</td></tr><tr><td>"A newer version of this product is already installed."</td><td>The installer can't downgrade Devolutions Agent. Uninstall the newer version first, or use the newer installer.</td></tr><tr><td>"You need to install the 32-bit version of this product on 32-bit Windows."</td><td>Devolutions Agent requires 64-bit Windows.</td></tr><tr><td>"An unhandled error has occurred. If this is recurring, please report the issue to support@devolutions.net or on forum.devolutions.net."</td><td>Run the installer from an elevated prompt with a log, <code>msiexec /i DevolutionsAgent.msi /l*v install.log</code>, and send the log to <a href="https://devolutions.net/support/">Devolutions support</a>.</td></tr></tbody></table>

## Next

* [Deploy Devolutions Agent silently](https://docs.devolutions.net/agent/for-administrators/deploy/silent-install.md)
* [Use Devolutions Agent with Remote Desktop Manager](https://docs.devolutions.net/agent/guides/remote-desktop-manager.md)
* [Installer features and properties](https://docs.devolutions.net/agent/reference/installer.md)


---

# 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/agent/for-administrators/deploy/windows.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.
