> 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/server/getting-started/installation/devolutions-server-upgrade.md). Agents can also search and read this documentation through its [MCP server](https://docs.devolutions.net/~gitbook/mcp).

# Devolutions Server upgrade

Upgrade Devolutions Server safely by preparing accounts, backing up the database and encryption keys, and following the Console update workflow.

A Devolutions Server instance hosted on Windows (IIS or Kestrel) is upgraded with the Devolutions Server Console. [Install the proper version of the Devolutions Server Console](https://devolutions.net/server/download/) before upgrading the Devolutions Server web application: the Devolutions Server Console refuses to install a Devolutions Server version that requires a newer or an older Devolutions Server Console, with the message "Console current version is {0}. You need to update to version {1} or above to install Devolutions Server version {2}." or "Console current version is {0}. You need to uninstall the Console and install a Console with version {1} to install Devolutions Server version {2}."

The following steps are intended for single-server setups or basic [topologies](https://docs.devolutions.net/server/overview-of-devolutions-server/topologies.md). If the environment differs from these configurations, please [contact us](mailto:service@devolutions.net) for guidance with the Devolutions Server upgrade.

### Workflow

Recommendations and steps to follow before proceeding with the upgrade:

* We strongly recommend testing the upgrade process in a [staging or test environment](https://docs.devolutions.net/server/knowledge-base/how-to-articles/create-server-staging-instance.md) before upgrading the production instance. If a staging environment is not available, consider a limited roll-out to ensure that the workflow functions as expected before impacting the entire team.
* Make sure you have a local Devolutions Server administrator account exempted from MFA in case the primary authentication fails.
* [Enable the emergency login](https://docs.devolutions.net/server/knowledge-base/how-to-articles/enable-emergency-login-code-authentication.md) for your administrator accounts.
* Remove any password set on the Devolutions Server Console for the upgrade. Passwords can be reset afterwards.
* The upgrade process is performed with the Devolutions Server Console. Be sure to upgrade to the latest version compatible with the target Devolutions Server version planned for installation.
* When Integrated Security is used for database connections, the upgrade must be performed with a Windows user account that has full rights to the database, such as [VaultDBOwner](https://docs.devolutions.net/server/knowledge-base/knowledge-base-articles/pre-deployment-account-survey.md#windows-domain-accounts-integrated-authentication). Ensure that the IIS Application Pool Identity and Scheduler accounts have adequate privileges on the database. You may have to manually apply the permissions on the database. See the [Generate script for database permissions](https://docs.devolutions.net/server/knowledge-base/how-to-articles/generate-a-script-for-database-permissions.md) article for more information.
* For instances of Devolutions Server version 2019.2.9.0 or earlier with a configured [security provider](https://docs.devolutions.net/server/knowledge-base/how-to-articles/remove-the-security-provider.md), specific operations must be performed prior to the upgrade. [Contact us](mailto:service@devolutions.net) for further details. When an instance uses a security provider, the Devolutions Server Console warns before the upgrade: "Your instance is using a Security Provider. It is highly recommended to remove the Security Provider and implement Encryption at REST."
* When Active Directory authentication is configured, the domain functional level must be Windows Server 2012 R2 or higher. Otherwise the upgrade stops with "The functional level of one of your domains is too low and cannot be used as an Identity Provider."
* We recommend backing up the encryption keys before any operation that could modify database information and before upgrading Devolutions Server. The encryption key file should be securely stored to prevent data loss in the event that Devolutions Server needs to be restored.

#### Preparation

1. Perform a full backup of the database, and ensure that measures are in place to prevent the backup file from being deleted by a maintenance plan. The Devolutions Server Console does not back up the database: before the update, it asks "A database backup is strongly recommended before updating. If you don’t have a recent backup, you can safely cancel the update to try again once it is done."
   * The Devolutions Server Console backs up the configuration files and the installation folder of the instance to its installation backup folder (the `DVLS` folder of the temporary folder `%TEMP%` of the Windows account that runs the Devolutions Server Console, opened with ***Support*** – ***Open installation backup folder***). This folder contains configuration details of the Devolutions Server instance prior to the upgrade. After a successful upgrade, ensure that its contents are either moved to a secure location or deleted.
   * Administrators who independently upgrade their copies of Remote Desktop Manager may trigger schema updates required for new features. This can prevent other users from accessing the system. It is strongly recommended to set both the maximal and minimal versions allowed to connect to the instance.
   * If Integrated Security is used for database connections, as configured in the [Database](https://docs.devolutions.net/server/devolutions-server-console/devolutions-server-settings/database.md) tab, ensure that the IIS Application Pool Identity and Scheduler accounts have sufficient privileges on the database.
2. Archive the contents of the web application folder containing the Devolutions Server instance, and store it in a secure location.
3. Install the appropriate version of the Devolutions Server Console. The required client version for each Devolutions Server version can be found in the corresponding sub-topics.
4. Go to the ***Support*** tab and click ***Check for updates***.
5. Install the necessary updates, if any.
6. Click ***IIS diagnostics*** and review the IIS prerequisites.
7. Click the ***Install prerequisites*** button if any are missing. For an IIS instance, the Devolutions Server Console also checks the prerequisites when the update starts.
8. Run the Devolutions Server Console with elevated privileges.

#### Upgrade

1. Open the [Devolutions Server Console](https://docs.devolutions.net/server/devolutions-server-console.md).
2. Select the instance to be upgraded.
3. Set the instance offline with the ***Go offline*** button (IIS instances). In a high availability or load-balancing topology, all instances must be set offline before initiating the upgrade process.
4. Click ***Update***.
5. On the ***Select update source file*** page, select the ***Source***: ***Download version***, with the version to install in the list (***Current (Latest)***, and the ***Beta*** or ***Extended maintenance*** version when it differs from the current version), or ***Install from ZIP file*** with the path to a downloaded ZIP file. The ZIP file is typically used for beta releases or earlier versions. A version older than the installed one asks for a confirmation: "You are downgrading from v{0} to v{1}. Downgrading may cause data loss. Please ensure you have restored your database backup before proceeding. Do you want to proceed with the downgrade?"
6. Click ***Next***. Depending on the instance, the wizard shows the ***Devolutions Server access URI*** page (when the instance has no access URI yet; see [Access URI format](https://docs.devolutions.net/server/knowledge-base/knowledge-base-articles/access-uri-format.md)) and the ***Add the missing license files*** page (when licenses must be migrated).
7. Review the ***Summary***, including the Remote Desktop Manager version required by the new Devolutions Server version, and click ***Update*** once details have been confirmed. By clicking ***Update***, you confirm that you have read and accepted the Software License and Subscription Agreement.

The process begins: the Devolutions Server Console stops the instance and the Devolutions Scheduler service, backs up the configuration and installation files, deploys the new version, upgrades the database, restores the configuration, the custom folders and the encryption keys file, applies the least permissions of the web application and Devolutions Scheduler service accounts on the database (SQL Server), then restarts the instance and the Devolutions Scheduler service. It also raises the compatibility level of a SQL Server database to the highest level that the SQL Server supports, which must be at least 140 (SQL Server 2017). Upon completion, a confirmation message indicates that the operation was successful. If a step fails, the Devolutions Server Console restores the installation backup and restarts the instance.

When the Devolutions Server Console cannot remove the previous files of the installation folder because running processes lock them, it opens a file lock resolution window: "File Locks Detected - Upgrade Cannot Continue", with the locked files, the processes that lock them and a summary such as "3 files locked by 1 processes.". ***Terminate & Continue*** ends the locking processes and continues the upgrade, ***Retry*** checks the locks again after you closed the processes yourself, and ***Cancel*** stops the upgrade. The [command line interface](https://docs.devolutions.net/server/knowledge-base/knowledge-base-articles/devolutions-server-console-command-line-interface.md) (`server upgrade`) asks the same choice in the console.

#### Validation

* Have a user upgrade their workstation with the version of Remote Desktop Manager supported by the Devolutions Server version and test connectivity with the server instance.
* Ensure that computers running PowerShell scripts update the Devolutions.PowerShell module to the version supported by the Devolutions Server version, and verify the script results.
* Once testing is complete and satisfactory, instruct the rest of the staff to upgrade to the same version of Remote Desktop Manager.
* Update the maximal and minimal versions of Remote Desktop Manager in ***Administration*** – ***System settings*** – ***Version management***.

#### Post update issues

If any issues occur after updating your Devolutions Server instance, follow the steps in [Restore a Devolutions Server instance](https://docs.devolutions.net/server/knowledge-base/how-to-articles/restore-a-devolutions-server-instance.md) to return it to its previous state, or contact our support team at <service@devolutions.net>.

#### See also

* [Devolutions Academy – Updating Devolutions Server](https://academy.devolutions.net/student/path/2942210/activity/4493539)


---

# 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/server/getting-started/installation/devolutions-server-upgrade.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.
