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

# Update Devolutions Gateway

Update Devolutions Gateway with Devolutions Agent from Devolutions Server or Devolutions Cloud, the Devolutions Server Console or a script.

Devolutions Gateway can't update itself. On Windows, Devolutions Agent installed on the same machine updates it when Devolutions Server or Devolutions Cloud asks, one gateway or a whole farm at a time. You can also update it from the Devolutions Server Console, with a scheduled PowerShell script, or by running a newer package.

## Pick the right option

<table><thead><tr><th width="260">CHOOSE</th><th>WHAT HAPPENS</th><th>USE IT WHEN</th></tr></thead><tbody><tr><td><strong>Devolutions Server web interface</strong></td><td>Devolutions Server asks Devolutions Gateway to update, now or deferred; Devolutions Agent downloads and installs the new version.</td><td>Windows gateways registered in Devolutions Server, with Devolutions Agent installed.</td></tr><tr><td><strong>Devolutions Cloud</strong></td><td>Devolutions Cloud sends the request through the PAM Service; Devolutions Agent installs the new version.</td><td>Windows gateways registered in Devolutions Cloud, with Devolutions Agent and a running PAM Service.</td></tr><tr><td><strong>Devolutions Server Console</strong></td><td>The console downloads and installs the new version on its machine.</td><td>The gateway was installed from the Devolutions Server Console.</td></tr><tr><td><strong>Auto-updater script</strong></td><td>A scheduled task checks for a new version every day and installs it.</td><td>Windows gateways without Devolutions Agent.</td></tr><tr><td><strong>New package</strong></td><td>You install the newer MSI, <code>.deb</code> or <code>.rpm</code> over the existing installation.</td><td>Linux gateways, or manual updates on Windows.</td></tr><tr><td><strong>New image</strong></td><td>You recreate the container with the new image tag.</td><td>Docker. See <a href="https://docs.devolutions.net/gateway/for-administrators/install/docker.md">Run in Docker</a>.</td></tr></tbody></table>

## Update through Devolutions Agent

### Requirements

* **Windows only.** Devolutions Agent updates Devolutions Gateway on Windows; it doesn't update Linux packages or containers.
* **Devolutions Agent on the Devolutions Gateway machine**, with the ***Devolutions Gateway Updater*** feature (selected by default when Devolutions Agent is installed). See [Keep Devolutions Gateway up to date](https://docs.devolutions.net/agent/guides/gateway-updates) in the Devolutions Agent documentation.
* **Minimum versions:** Devolutions Gateway 2025.1.0 or later and Devolutions Agent 2025.1.0 or later for updates from Devolutions Server; Devolutions Gateway 2025.1.10 or later and Devolutions Agent 2025.1.0 or later for updates from Devolutions Cloud.
* **A passwordless service account** for Devolutions Gateway: NETWORK SERVICE, the virtual account `NT SERVICE\DevolutionsGateway`, or a managed service account. With another account than NETWORK SERVICE, use Devolutions Agent 2026.3.1 or later. A gateway that runs under a user account with a password can't be updated unattended; Devolutions Agent reports "`{product}` service account `{account}` logs on with a password that an unattended upgrade cannot supply; update manually with P.SERVICEPASSWORD or switch to a passwordless account".
* **Outbound HTTPS** from the Devolutions Gateway machine to `devolutions.net` (list of versions) and `cdn.devolutions.net` (installers).
* **Devolutions Cloud only:** the PAM Service must run and reach the gateway. Otherwise: "Could not reach the PAM Service. Try restarting the service."

### What Devolutions Agent does

1. Reads the requested version, or the latest version, from the Devolutions product list.
2. Downloads the installer from `https://cdn.devolutions.net/` only, and checks its SHA-256 hash and its Devolutions digital signature. A file from another address or with a wrong hash or signature is refused.
3. Installs it silently, without restarting the computer. The service start mode and the service account are kept.
4. To install an older version, uninstalls the current version first, then installs the requested one.

When the installed version is already the requested one, nothing happens ("Product is up to date, skipping update"). Devolutions Agent logs its update activity in its own log; see the Devolutions Agent documentation.

### From Devolutions Server

1. In the Devolutions Server web interface, go to ***Administration*** – ***Devolutions Gateway***. The ***Version*** column shows, for example, "{version} outdated" or "Update to the latest", and the ***Version filter*** can list ***Outdated version*** gateways.
2. To update one gateway, open its menu and select ***Update version***. To update several, turn on ***Bulk update***, select the gateways and click ***Update***. For a farm, ***Update version*** in the farm menu updates the members that can be updated.
3. In the ***Update version*** dialog, choose the ***Version to install***.
4. In ***Update options***, optionally select ***Defer until no active sessions*** and/or ***Defer based on time*** (***Choose a date and time***). "The update will be triggered by whichever condition is met first."
5. Click ***Update now***, or ***Defer update*** when a deferral option is selected. If sessions are active, confirm "Some instances have active sessions. Do you want to proceed with the update?"

Devolutions Server checks pending and deferred updates every minute. An update is successful when the gateway reports the requested version within 5 minutes; otherwise it fails with "The server is not responding; please try again later."

***Update version*** is unavailable with these tooltips or reasons:

* "Devolutions Agent must be installed to update through DVLS."
* "Devolutions Gateway must be on version 2025.1.0 or later to update through DVLS."
* "Gateway is already at the requested version", "Gateway update is already running", "Gateway installed version doesn’t support remote updates", "Devolutions Agent is not installed".

To cancel a pending or deferred update, select ***Cancel update*** in the menu of the gateway and confirm "Do you want to cancel the update?"

The activity logs record each step (log type ***Gateway centralized update***), for example "User {UserName} requested an update for Devolutions Gateway {GatewayName} to version {Version}." and "Devolutions Gateway {GatewayName} update to version {Version} failed. Reason: {Reason}".

### From Devolutions Cloud

1. In Devolutions Cloud, go to ***Administration*** – ***Devolutions Gateway***.
2. Open the menu of the gateway and select ***Update version***, or select ***Bulk update*** and the gateways ("{0} Gateways selected"). Gateways without Devolutions Agent show "Devolutions Agent is not installed".
3. Choose the ***Version to install*** and the ***Update options*** (***Defer until no active sessions***, ***Defer based on time***), then click ***Update now*** or ***Defer update***.

The status shows "Pending update to version {0}", "Deferred until no session active", "Update will start after {0}", "Gateway update to version {0} in progress", or "Previous Gateway update failed, view Devolutions Cloud service logs for more information". The update must finish within 8 minutes.

## Update from the Devolutions Server Console

1. Open the Devolutions Server Console on the machine where Devolutions Gateway is installed.
2. In the ***Companions*** tab, in the ***Devolutions Gateway*** section, click ***Update***.
3. Confirm "Do you want to update to version {0}?"

The console downloads the installer from `cdn.devolutions.net` and checks its digital signature. Messages: "You can’t update to version {0} since it is older than the currently installed version {1}.", "Unable to reach Update Server. See logs for more information.", "The digital signature could not be verified. A file for which you don't know the source should not be trusted and installed. Do you want to continue?"

## Update with the auto-updater script (Windows)

`GatewayUpdater.ps1` is a PowerShell script that runs every day as a scheduled task. It reads the current version from the Devolutions product list, downloads the Windows installer, checks its SHA-256 hash and installs it silently. It doesn't pass a service password, so it can't update a gateway that runs under a user account with a password.

1. Download [GatewayUpdater.ps1](https://github.com/Devolutions/devolutions-gateway/blob/master/tools/updater/GatewayUpdater.ps1).
2. In an elevated PowerShell session, go to the folder of the script and run:

```powershell
.\GatewayUpdater.ps1 install
```

The script is copied to `C:\Program Files\Devolutions\Gateway Updater\GatewayUpdater.ps1` and registered as the scheduled task ***Devolutions Gateway Updater***, which runs every day at 3:00 AM as SYSTEM.

* Run it now: `schtasks.exe /Run /TN "Devolutions Gateway Updater"`
* Check it: `schtasks.exe /Query /TN "Devolutions Gateway Updater"`
* Remove it: `.\GatewayUpdater.ps1 uninstall` (deletes the task and the copied script)

More details: [PowerShell auto-updater script for Devolutions Gateway](https://docs.devolutions.net/powershell/devolutions-gateway-powershell/powershell-auto-updater-script-for-devolutions-gateway).

## Update with a new package

* **Windows:** run the newer `DevolutionsGateway-<version>-x64.msi`, interactively or with `msiexec /i … /qn /norestart`. Add `P.SERVICEPASSWORD` when the service runs under a user account with a password. See [Install on Windows](https://docs.devolutions.net/gateway/for-administrators/install/windows.md).
* **Linux:** `sudo apt install ./devolutions-gateway-<version>-x64.deb` or `sudo dnf install ./devolutions-gateway-<version>-x64.rpm`. The service restarts if it was running. See [Install on Linux](https://docs.devolutions.net/gateway/for-administrators/install/linux.md).
* **PowerShell:** `Install-DGatewayPackage` downloads the package of the version of the module (or `-RequiredVersion`) from GitHub and installs it. It installs `.deb` packages only on Linux. See [Manage Devolutions Gateway with PowerShell](https://docs.devolutions.net/gateway/for-administrators/powershell.md).

## Upgrade notes

* **Configuration is kept** by every update method, except the Docker settings rewritten at each start.
* **Service accounts with a password:** give `P.SERVICEPASSWORD` again at every upgrade. Without it, the upgrade fails with error 1603 and the existing installation is left unchanged.
* **Downgrades:** the Windows installer refuses older versions ("A newer version of this product is already installed."). Devolutions Agent and the auto-updater script downgrade by uninstalling first. After a downgrade, Devolutions Agent instances connected through the agent tunnel can need to enroll again.
* **Certificate checks:** with `"TlsVerifyStrict": true`, a certificate without Subject Alternative Name or Server Authentication EKU stops the service at startup. Check the certificate before updating an old installation. See [Certificates and TLS](https://docs.devolutions.net/gateway/guides/certificates.md).
* **After the update,** check the version and health in ***Administration*** – ***Devolutions Gateway***, or open `https://<host name>:7171/jet/health`.
* The Remote Desktop Manager Jump agent (legacy) is a different product and isn't involved in Devolutions Gateway updates.

Minimum versions of Devolutions Gateway for features of Devolutions Server and Devolutions Cloud: [Version requirements](https://docs.devolutions.net/gateway/reference/version-requirements.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/gateway/for-administrators/install/update.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.
