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

# Devolutions Server instance creation

Create a Devolutions Server instance with the Devolutions Server Console, using the basic or advanced IIS installation wizard or the Kestrel web server.

{% hint style="info" %}
For more information about the settings of the installation wizard, consult their respective topic under [Devolutions Server settings](https://docs.devolutions.net/server/devolutions-server-console/devolutions-server-settings.md).
{% endhint %}

A Devolutions Server instance on Windows is created with the Devolutions Server Console, hosted either by the IIS web server or by the Kestrel web server. Multiple Devolutions Server instances can be hosted on the same server: with IIS, each instance resides in its own web application. On Linux, see [Install Devolutions Server for Linux](https://docs.devolutions.net/server/knowledge-base/how-to-articles/install-devolutions-server-for-linux.md); with Docker, see [Deploy Devolutions Server with Docker](https://docs.devolutions.net/server/knowledge-base/how-to-articles/devolutions-server-docker-deployment.md).

### IIS web server installation

1. Install the Devolutions Server Console on the web server. It is available from the [Download](https://devolutions.net/server/home/download) page. Its installer also installs the .NET Desktop Runtime 10.0 (x64) and the Microsoft Edge WebView2 Runtime when they are missing.
2. Start the Devolutions Server Console with elevated privileges: right-click on the application and select ***Run as administrator***.

{% hint style="danger" %}
All operations performed through the Devolutions Server Console are done with the credentials used to launch the Devolutions Server Console. If you must use other credentials, you will need to launch another Windows session. The `RunAs` command does not offer the option of starting a process with elevated privileges. The ***Run as different user*** option can work only if the account is a member of the server's local administrator group.
{% endhint %}

3. This step requires having logged into the Windows Server at least once with a VaultDBOwner account (with local admin rights on the server) connected through Windows authentication. Once this is done, open the Devolutions Server Console and click on ***New*** – ***IIS web server***, then on ***Basic installation*** or ***Advanced installation***. When no instance exists, the instance list also offers to install a new instance. It is also possible to [***Migrate SQL Server workspace***](https://docs.devolutions.net/server/knowledge-base/how-to-articles/migrate-from-sql-server-to-devolutions-server.md) to create an instance from an existing Microsoft SQL Server workspace of Remote Desktop Manager.

When the IIS prerequisites are missing, the Devolutions Server Console first opens the ***Checking IIS prerequisites for installation*** window, where ***Install prerequisites*** installs them. See [Web server prerequisites](https://docs.devolutions.net/server/getting-started/installation/web-server-prerequisites.md).

The ***New*** menu of the ***Server*** tab offers these installations. Each one opens a window titled ***Install new server instance***; when the installation ends, the Devolutions Server Console shows "{0} installed successfully." with the ***Server name*** of the instance:

<table><thead><tr><th width="320">MENU</th><th>WHAT IT DOES</th></tr></thead><tbody><tr><td><em><strong>IIS web server</strong></em> – <em><strong>Basic installation</strong></em></td><td>Creates an instance with default settings on one page. Can install SQL Server Express, a self-signed certificate, the Devolutions Scheduler service and Devolutions Gateway.</td></tr><tr><td><em><strong>IIS web server</strong></em> – <em><strong>Advanced installation</strong></em></td><td>Wizard where every option is set: database, IIS website and application pool, administrator, Devolutions Scheduler service, Devolutions Gateway and recovery kit.</td></tr><tr><td><em><strong>IIS web server</strong></em> – <em><strong>Migrate SQL Server workspace</strong></em></td><td>Creates an instance from an existing Microsoft SQL Server workspace of Remote Desktop Manager. See <a href="https://docs.devolutions.net/server/knowledge-base/how-to-articles/migrate-from-sql-server-to-devolutions-server.md">Migrate from SQL Server to Devolutions Server</a>.</td></tr><tr><td><em><strong>Kestrel web server</strong></em> – <em><strong>Advanced installation</strong></em></td><td>Same wizard, with the instance hosted by Kestrel in a Windows service instead of IIS. See <a href="#kestrel-web-server-installation">Kestrel web server installation</a>.</td></tr></tbody></table>

#### Basic installation

The ***Basic installation*** creates an instance with default settings, on one page with three sections:

* ***Database***: when a SQL Server installation is detected on the machine, the page shows "A SQL installation has been detected. Please enter the SQL information. A database will be created automatically." Enter the ***Database engine*** (***Microsoft SQL Server***, ***PostgreSQL*** or ***SQLite***), the ***Host***, the ***Authentication type***, the ***Username*** and the ***Password***, then click ***Test connection***. When no SQL Server installation is detected, the page shows "No SQL installation has been detected. SQL Express will be automatically installed, and login information will be provided." An internet connection is then required to download SQL Server Express edition and the prerequisites: [IIS Application Request Routing (ARR)](https://www.iis.net/downloads/microsoft/application-request-routing), [IIS URL Rewrite Module](https://www.iis.net/downloads/microsoft/url-rewrite) and the [ASP.NET Core Module (ANCM)](https://dotnet.microsoft.com/en-us/download/dotnet/10.0).
* ***Certificate - A self-signed certificate will be created and used by default***: keep ***Default (Self-signed)***, or select ***Custom*** and enter the certificate ***File*** and its ***Password***. Enter the ***Access URI*** of the instance.
* ***Modules***: check ***Install Scheduler Service*** to install the Devolutions Scheduler service, and ***Install Devolutions Gateway - Side-by-side installation*** to install Devolutions Gateway on the same machine (hidden when Devolutions Gateway is already installed).

The ***Advanced installation*** button of the page switches to the advanced installation wizard.

Details of the fields of the basic installation:

<table><thead><tr><th width="250">FIELD</th><th>DESCRIPTION</th></tr></thead><tbody><tr><td><em><strong>Database engine</strong></em></td><td><em><strong>Microsoft SQL Server</strong></em> (default), <em><strong>PostgreSQL</strong></em> or <em><strong>SQLite</strong></em>. The database fields are hidden when SQL Server Express is installed.</td></tr><tr><td><em><strong>Host</strong></em></td><td>Microsoft SQL Server or PostgreSQL server. For a local SQL Server without an instance name, the Devolutions Server Console uses the name of the local SQL Server instance it finds.</td></tr><tr><td><em><strong>Port</strong></em></td><td>PostgreSQL only. Default <code>5432</code>.</td></tr><tr><td><em><strong>File</strong></em></td><td>SQLite only. Absolute local path of the database file. The file must not exist yet. See <a href="https://docs.devolutions.net/server/getting-started/installation/database-setup/database-instance/sqlite.md">SQLite</a>.</td></tr><tr><td><em><strong>Authentication type</strong></em></td><td>SQL Server authentication (default) or Windows authentication. <em><strong>Username</strong></em> and <em><strong>Password</strong></em> are required with SQL Server authentication.</td></tr><tr><td><em><strong>Certificate</strong></em> – <em><strong>Default (Self-signed)</strong></em></td><td>Default. Creates a self-signed certificate and sets it on the HTTPS binding of the website; when the website has no HTTPS binding, the Devolutions Server Console adds one on port 443 (all IP addresses). The custom certificate is set the same way. The access URI is then <code>https://&#x3C;host FQDN>/dvls</code>, with the full DNS name of the Windows server.</td></tr><tr><td><em><strong>Certificate</strong></em> – <em><strong>Custom</strong></em></td><td>Imports your own certificate in IIS. <em><strong>File</strong></em> and <em><strong>Access URI</strong></em> are required; <em><strong>Password</strong></em> is the password of the certificate file. See <a href="https://docs.devolutions.net/server/knowledge-base/knowledge-base-articles/access-uri-format.md">Access URI format</a>.</td></tr></tbody></table>

The basic installation always creates a new database, named `dvls` (or `dvls1`, `dvls2`… when that name is already used on the server). It cannot use an existing database. When SQL Server Express is installed, the Devolutions Server Console downloads SQL Server 2022 Express, installs it as the instance `SQLEXPRESS` with the `sa` account enabled and a generated 12-character password, and creates the `dvls` database in this instance. Without internet access, the installation shows "An internet access is required to download SQL Express" followed by the download page.

The basic installation uses these settings, which can be changed later:

<table><thead><tr><th width="250">SETTING</th><th>VALUE</th></tr></thead><tbody><tr><td><strong>Server name</strong></td><td>Devolutions Server</td></tr><tr><td><strong>Website</strong></td><td><em><strong>Default Web Site</strong></em>, or the first IIS website when there is no website with that name.</td></tr><tr><td><strong>Web application and application pool</strong></td><td><code>/dvls</code> and <code>dvls</code>, or <code>dvls1</code>, <code>dvls2</code>… when the name is taken.</td></tr><tr><td><strong>Installation folder</strong></td><td>A folder named after the web application in the folder of the website, for example <code>C:\inetpub\wwwroot\dvls</code>.</td></tr><tr><td><strong>Version</strong></td><td>The current version, downloaded from Devolutions.</td></tr><tr><td><strong>Web features</strong></td><td>Telemetry, internet access, the compromised password check, Gravatar, blocking of Tor exit nodes, push notifications and the service update check are turned on. They are changed later in <a href="https://docs.devolutions.net/server/web-interface/administration/configuration/server-settings.md">Server settings</a>.</td></tr><tr><td><strong>HTTPS and connection string encryption</strong></td><td>Both turned on.</td></tr><tr><td><strong>Devolutions Server Console password</strong></td><td>None.</td></tr><tr><td><strong>Administrator</strong></td><td>Username <code>dvls-admin</code>, no email. The password is shown in the credentials dialog at the end of the installation, and Devolutions Server asks for a new password at the first sign-in.</td></tr><tr><td><strong>Recovery kit</strong></td><td>Saved locally in the <code>DVLS Recovery Kit</code> folder of the <em><strong>Documents</strong></em> folder of the Windows user, protected by a generated 12-character password. See <a href="https://docs.devolutions.net/server/devolutions-server-console/recovery-kit-generation.md">Recovery kit generation</a>.</td></tr></tbody></table>

Before the installation starts, the Devolutions Server Console checks the ports of the website: "Another application has reserved port '{0}' with the URL '{1}'. Windows can answer requests on this port with 503 Service Unavailable instead of Devolutions Server. If that application is no longer installed, remove the reservation with the command 'netsh http delete urlacl url={1}'. Do you want to continue?" means that another application has reserved the port in http.sys. When the reservations or the website bindings cannot be read, the installation log says that the port reservations were not checked, and the installation continues. The same check applies to the website of an advanced installation.

1. Click on ***Install***. A dialog provides the credentials that the installation creates: the ***SQL Express credentials*** (when SQL Server Express is installed), the ***Devolutions Server administrator credentials*** and the ***Encryption key password***. Save them in a file with ***Save as***. The same information is also saved in a text file on the desktop, named `<web application>_<yyyy-MM-dd>_passwords.txt`: store these values in a password manager, then delete the file.
2. Once the installation is successfully completed, the wizard displays the installation summary and automatically opens the default browser on the Devolutions Server web interface.
3. On the Devolutions Server web interface, sign in with the Devolutions Server administrator credentials provided by the installation. A prompt then requests a password change.

#### Advanced installation

The ***Advanced installation*** wizard shows the following pages. Some pages are skipped depending on the database: an existing Devolutions Server database already has its settings and administrator.

<table><thead><tr><th width="270">PAGE</th><th>SHOWN WHEN</th></tr></thead><tbody><tr><td><em><strong>Setting database information</strong></em></td><td>Always.</td></tr><tr><td><em><strong>General information</strong></em></td><td>New database only.</td></tr><tr><td><em><strong>Select installation file</strong></em></td><td>Always.</td></tr><tr><td><em><strong>Add the missing license files</strong></em></td><td>The licenses of an existing database must be migrated and some license files are missing.</td></tr><tr><td><em><strong>IIS settings</strong></em> (IIS), or <em><strong>Settings</strong></em> and the service account page (Kestrel)</td><td>Always.</td></tr><tr><td><em><strong>Create an administrator user</strong></em></td><td>New database only.</td></tr><tr><td><em><strong>Import encryption keys</strong></em></td><td>Existing Devolutions Server database only.</td></tr><tr><td><em><strong>Scheduler service</strong></em></td><td>Always.</td></tr><tr><td><em><strong>Devolutions Gateway</strong></em></td><td>IIS only, when Devolutions Gateway is not installed on the machine.</td></tr><tr><td><em><strong>Recovery kit</strong></em></td><td>Always.</td></tr><tr><td><em><strong>Summary</strong></em></td><td>Always.</td></tr></tbody></table>

1. ***Setting database information***: select the ***Database engine*** and enter the server and database information, then click ***Next***. The user account used to create the database must have sysadmin privileges in the SQL Server instance. On SQL Server, the database is created automatically if it does not exist. For a PostgreSQL database, see [PostgreSQL](https://docs.devolutions.net/server/getting-started/installation/database-setup/database-instance/postgresql.md). For each field, see [Database](https://docs.devolutions.net/server/devolutions-server-console/devolutions-server-settings/database.md). When the host is the local computer and no SQL Server is installed, the page shows "No SQL installation has been detected. SQL Express will be automatically installed, and login information will be provided.": click ***Use existing SQL instance*** to enter another server instead, or ***Install new SQL Express instance*** to go back to the SQL Server Express installation. When the selected database is an existing Devolutions Server database that contains encrypted data, the wizard asks "The Devolutions Server installation you have targeted contains encrypted data. Do you want to continue with the installation?" and then asks for its encryption keys on the ***Import encryption keys*** page.

   <div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p>To use <em><strong>Windows authentication</strong></em> to connect to the database, change the <em><strong>Application Pool Identity</strong></em> in the IIS Manager and set the proper permissions of the service account on the database. Consult <a href="https://docs.devolutions.net/server/knowledge-base/how-to-articles/configure-domain-single-sign-on-sso.md">Configure Devolutions Server to use domain single sign-on (SSO)</a>. <a href="https://docs.devolutions.net/server/knowledge-base/knowledge-base-articles/pre-deployment-account-survey.md">Pre-deployment account survey</a> describes the accounts that can be created before deploying Devolutions Server.</p></div>
2. ***General information***: enter a ***Server name*** and a ***Server description***. Check ***Disable telemetry*** to stop sending anonymous usage data to Devolutions. Click ***Next***. This page is skipped for an existing Devolutions Server database. The ***Server name*** is required and is shown in the Devolutions Server Console and the web interface. With Kestrel, it also names the Windows service, `Devolutions Server (<server name>)`, and must be unique on the machine: "The application name is already used by another instance." ***Disable telemetry*** is cleared by default and can be changed later in [Server settings](https://docs.devolutions.net/server/web-interface/administration/configuration/server-settings.md).
3. ***Select installation file***: select the ***Installation source***: ***Download version*** (choose the version in the list: the current version, and the beta or extended maintenance version when they differ; ***Show release notes*** displays its release notes) or ***Install from ZIP file*** (a ZIP file from the [Download](https://devolutions.net/server/home/download) page). A downloaded file whose digital signature cannot be verified asks for a confirmation. Click ***Next***. In the list, the versions are named ***Current (Latest)***, ***Beta*** and ***Extended maintenance***. ***Download version*** is unavailable without internet access, and ***Install from ZIP file*** is then selected automatically; ZIP files of older versions are on the [previous versions](https://devolutions.net/server/download/previous-versions/) page. When you click ***Next***, the wizard reads the requirements of the selected version ("Loading pre-install information..."):
   * "Console current version is {0}. You need to update to version {1} or above to install Devolutions Server version {2}.": the version needs a newer Devolutions Server Console. Update the Devolutions Server Console first.
   * "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 version needs an older Devolutions Server Console.
   * "We cannot validate that the installation version is supported on your console. Please contact support.": the requirements could not be read.
   * "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?": the confirmation for a file whose signature cannot be verified.
   * "Installation zip file is empty or it doesn’t contain the Devolutions Server website.": the ZIP file is not a Devolutions Server package.
4. ***Add the missing license files***: shown when the licenses of an existing database must be migrated and some license files are missing. Add the license files, then click ***Next***. The page explains: "Each license is required to have its associated file. We were unable to retrieve the files for some of your licenses. You can either provide the missing license files or delete those you no longer need." The list shows each ***License*** with its ***Serial*** and ***Is valid*** state. ***Select a file*** adds the license file of a license ("The provided file does not match the license details. Please ensure that you have selected the correct file for the license and try again." means that the file belongs to another license). ***Delete*** removes a license you no longer need, after "Do you want to delete this license?" The converted licenses are saved when the installation starts; "Unable to save migrated licenses. The database seems to be write-protected or unavailable." stops the installation.
5. ***IIS settings***: under ***General***, select the ***Website*** (or create one with ***Create a new website***: ***Site name*** and binding information), the ***Web application name*** and the [***Access URI***](https://docs.devolutions.net/server/knowledge-base/knowledge-base-articles/access-uri-format.md) used to reach the Devolutions Server web interface, which should be the full FQDN of the server (for example `https://myservername.mydomain.loc/dvls`). Under ***Installation destination***, set the ***Installation folder*** where the instance's files will be located: by default, a folder named after the web application in the folder of the website (`C:\inetpub\wwwroot\dvls` for the default website). Under ***Application pool***, set a ***Name***; ***Configure*** sets the ***Identity type*** of a new application pool. Under ***Security***, the options ***Disable HTTPS***, ***Disable connection string encryption*** and ***Enable client certificate negotiation*** are described in [IIS](https://docs.devolutions.net/server/devolutions-server-console/devolutions-server-settings/iis.md). Click ***Next***.

{% hint style="warning" %}
We do not recommend setting the installation folder to `C:\Program Files`, `C:\Program Files (x86)` or `C:\inetpub`: IIS does not have enough permissions to run web applications located under those folders, which results in unwanted behavior. The installation folder cannot be inside the Devolutions Server Console folder: "You cannot install the Server over the Server Console. Please choose a folder that doesn’t include this path '{0}'." If you set the web application folder in a location other than the default `C:\inetpub\wwwroot` folder, the IIS\_IUSRS built-in local group needs the Read and Read & Execute permissions on the entire Devolutions Server web application folder structure.
{% endhint %}

Details of the ***IIS settings*** page:

<table><thead><tr><th width="250">FIELD</th><th>DESCRIPTION</th></tr></thead><tbody><tr><td><em><strong>Website</strong></em></td><td>IIS website that hosts the instance. <em><strong>Create a new website</strong></em> opens the <em><strong>Create website</strong></em> dialog; after that, the button becomes <em><strong>Update website</strong></em>.</td></tr><tr><td><em><strong>Web application name</strong></em></td><td>Path of the web application in the website, for example <code>/dvls</code>. "The specified web application name cannot contain the following character: {0}". "There is already a web application defined at "{0}" in IIS. Do you want to replace it?" asks before replacing an existing application.</td></tr><tr><td><em><strong>Access URI</strong></em></td><td>The <em><strong>...</strong></em> button adds other access URIs.</td></tr><tr><td><em><strong>Application pool</strong></em> – <em><strong>Name</strong></em></td><td>Existing or new IIS application pool. Default: the web application name. "The specified application pool name cannot contain the following character: {0}".</td></tr><tr><td><em><strong>Configure</strong></em></td><td>Available for a new application pool. Sets its <em><strong>Identity type</strong></em>: LocalSystem, LocalService, NetworkService (default), SpecificUser or ApplicationPoolIdentity. SpecificUser requires a <em><strong>Username</strong></em> and <em><strong>Password</strong></em>: "Username and Password are required when IdentityType is {0}."</td></tr><tr><td><em><strong>Disable HTTPS</strong></em></td><td>Serves the instance over HTTP. New database only. When HTTPS is not forced and the access URI uses HTTPS, the wizard asks "You didn’t force HTTPS on your instance, and you set your access URI with HTTPS. Do you want to continue?"</td></tr><tr><td><em><strong>Disable connection string encryption</strong></em></td><td>Leaves the database connection strings unencrypted in the configuration files. New database only.</td></tr><tr><td><em><strong>Enable client certificate negotiation</strong></em></td><td>Asks the browser for a client certificate during the TLS handshake.</td></tr></tbody></table>

The ***Create website*** dialog has a ***Site name*** and ***Binding Information***: ***Protocol*** (https by default), ***IP address*** (All Unassigned by default), ***Port*** (443 for https, 80 for http), ***Hostname*** and, for https, the ***Certificate*** (an existing certificate, or ***Create Self-Signed Certificate***). Its messages are "The specified Site Name already exists. Please specify a valid Site Name.", "The name cannot contain any of the following characters: {0}", "The specified IP address is invalid. Specify a valid IP address." and "The binding information is assigned to another site. If you assign the same binding to this site, you will only be able to start one of the sites. Do you want to add this duplicate binding?" From the command line, a new website and a new web application cannot be created in the same installation: "You cannot create a new website and a new web app at the same time. You have to manually create the website beforehand."

Other checks on the installation folder:

* "The specified installation folder contains invalid characters."
* "'{0}' is not empty. Do you want to copy installation files to this path anyway?"
* "'{0}' is used by another web application. Do you want to copy the installation file to this path anyway?"

6. ***Create an administrator user***: under ***Administration credentials***, enter the ***Username***, ***Password***, ***Confirm Password*** and ***Email*** of a Devolutions Server custom administrator account. All fields are required. This page is skipped for an existing Devolutions Server database. "Password confirmation doesn’t match." appears when the two passwords differ.

{% hint style="warning" %}
Keep a copy of these credentials in a safe place outside of Devolutions Server: they could prove useful should any issue with the other authentication methods arise. It is a best practice to keep the Devolutions custom login enabled (***Administration*** – ***Server settings*** – ***Authentication***).
{% endhint %}

7. ***Import encryption keys***: shown for an existing Devolutions Server database. Select the encryption keys file in ***Import file*** and enter its ***Password***. The file is an export of the encryption keys or the `EncryptionKeys.bin` file of a recovery kit. "File ({0}) not found." and "Invalid password entered" are shown when the file or the password is wrong. See [Manage encryption keys](https://docs.devolutions.net/server/knowledge-base/how-to-articles/manage-encryption-keys.md).
8. ***Scheduler service***: choose the ***Service account*** of the Devolutions Scheduler service: a ***Predefined account*** (***LocalService***, ***NetworkService*** or ***LocalSystem***) or ***This account*** with its ***Password*** and ***Confirm Password***. The default is ***LocalService***. The page notes: "This service requires access to the Devolutions Server database and to specific locations on the file system. Depending on whether Devolutions Server is configured to use Integrated Security or SQL accounts, different settings must be applied." The Devolutions Scheduler service is installed only for a new database or a migration: with an existing Devolutions Server database, or when the service is already installed, the installation does not install it. Install it later with ***Install*** in the ***Scheduler Service*** group of the ***Companions*** tab, on the server that must run it. Use the proper VaultDBScheduler account. The following features depend on the Devolutions Scheduler service: [Backup manager](https://docs.devolutions.net/server/web-interface/administration/backup/backup-manager.md), [Domain users and users groups cache](https://docs.devolutions.net/server/web-interface/administration/configuration/server-settings/general/authentication/domain.md), [Microsoft Entra ID users and user groups cache](https://docs.devolutions.net/server/web-interface/administration/configuration/server-settings/general/authentication/microsoft-authentication-with-devolutions-server.md), [Email notifications](https://docs.devolutions.net/server/web-interface/administration/configuration/notifications.md), [Cleanup logs](https://docs.devolutions.net/server/web-interface/administration/database-retention-policies.md) and [Privileged Access Management](https://docs.devolutions.net/pam/pam-with-devolutions-server).

{% hint style="info" %}
If the Devolutions Scheduler service fails to start, search the services for ***Devolutions Scheduler*** (service name `DevolutionsSchedulerService<web application>` for an instance hosted in IIS, `DevolutionsScheduler<instance ID>` for an instance on Kestrel; see [Files, folders, and services](https://docs.devolutions.net/server/knowledge-base/knowledge-base-articles/files-folders-and-services.md#windows-services)), go into ***Properties*** and re-enter the username and password. Usually changing the account during the installation process does not work, in which case Devolutions Server will still be installed with the NetworkService account but will not be able to start. On recent instances, the service is displayed as ***Devolutions Scheduler (\<instance>)***, with the name of the instance in parentheses. The VaultDBScheduler account must also have read rights on the `encryption.config` file in the `App_Data` folder of the instance (for example `C:\inetpub\wwwroot\dvls\App_Data`).
{% endhint %}

9. ***Devolutions Gateway***: check ***Install Devolutions Gateway*** to install Devolutions Gateway side by side on this machine, then set its source and listeners. This page is skipped when Devolutions Gateway is already installed. See [Install Devolutions Gateway from the Devolutions Server Console](https://docs.devolutions.net/gateway/guides/devolutions-server/install-from-console) for more details.
10. [***Recovery kit***](https://docs.devolutions.net/server/devolutions-server-console/recovery-kit-generation.md): select the ***Location*** of the recovery kit (***None***, ***Local*** or ***Azure Key Vault***), its destination, and a ***Password*** to protect the encryption keys. If ***Include sensitive data*** is checked, the passwords of the database accounts are included in the recovery kit. With ***None***, the wizard warns: "The recovery kit will not be created. The encryption keys included in it could be needed if you have to restore a backup. It is recommended to create it."

    The page explains: "The recovery kit contains the encryption keys and configuration options (response file). Keep it somewhere safe in case you need to restore DVLS from a backup." The default ***Location*** is ***Local***: the recovery kit ZIP file is saved in the ***Export path***, named `<server name>_<date>_recoveryKit.zip`. With ***Azure Key Vault***, the ***Url***, ***Tenant ID***, ***Client ID*** and ***Client Secret*** of the vault and of the Microsoft Entra ID application that writes to it are all required, and the end of the installation lists the secrets created: "Here are the secrets that have been created in your Azure Key Vault: Recovery kit: {0} Encryption key password: {1}". The ***Password*** and ***Confirm Password*** of the encryption keys are required. ***Include sensitive data*** is under ***Response file***.

{% hint style="success" %}
Keep the recovery kit file and its password in a safe place outside of Devolutions Server: they can later be used to move or restore the database.
{% endhint %}

11. ***Summary***: review the configuration. The page shows the Remote Desktop Manager version required by this Devolutions Server version. Read Devolutions' ***Software License and Subscription Agreement*** (by clicking ***Install***, you confirm that you have read and accepted it), then click ***Install***.
12. Once the installation is complete, a summary indicates whether the Devolutions Server instance has been deployed correctly. Click ***OK*** to close the window.

On the ***Summary*** page, the Remote Desktop Manager version is shown in red: "If you are using RDM as the client, RDM version {0} is required for this DVLS version." The text under the buttons reads "By clicking on "Install", you confirm that you’ve read and accepted our Software License and Subscription Agreement." A progress window shows each step of the installation; at the end, "{0} installed successfully." or "Installation Failed. See logs for more information."

During the installation, the Devolutions Server Console raises the compatibility level of a SQL Server database to the highest level that the SQL Server supports. The installation fails when the level cannot reach 140 (SQL Server 2017): "SQL Compatibility level must be equal or greater than 140".

The ***Execution mode*** of the wizard can also save the parameters as a [response file](https://docs.devolutions.net/server/devolutions-server-console/open-response-file.md) instead of running the installation. Its options are ***Save response file***, ***Save response file with a password***, ***Build response file***, ***Build response file with password*** and ***Run command***.

#### What the installation does

In order, the Devolutions Server Console:

1. Installs SQL Server Express, when needed, and saves the passwords file of a basic installation.
2. Checks the settings and the requirements of the version.
3. Downloads or unzips the files and copies them to the installation folder.
4. Creates the IIS application pool and web application (IIS), or prepares the service settings (Kestrel).
5. Imports the encryption keys of an existing database.
6. Writes the connection strings and, when Devolutions Gateway is installed, its rewrite rule in `web.config`.
7. Creates or updates the database, and raises the compatibility level of a SQL Server database.
8. Converts the licenses, saves the settings, creates the administrator and the `encryption.config` file, and sets the access rights on `encryption.config`, `appsettings.json` and the log folder.
9. Registers the `DVLS` event source in the `Devolutions` Windows event log and allows the IIS feature delegation (handlers, modules, Windows, basic and anonymous authentication).
10. Applies the least permissions of the web application account on the database (not with SQLite). In Devolutions Server 2027.1 and later, with SQLite, it instead grants the web application and Devolutions Scheduler accounts the ***Modify*** permission on the folder of the database file (the IIS\_IUSRS group is not granted).
11. Creates the recovery kit, imports the certificate (basic installation), installs and starts the Devolutions Scheduler service and installs Devolutions Gateway when selected.
12. Deletes its temporary files and opens the website.

When a step fails, the log shows "Install failed. Initiating rollback..." and the Devolutions Server Console removes what it created: the copied files, the IIS application, application pool and self-signed certificate, and the database it created (an existing database is never deleted). The installation log is in the `DVLS` folder of the temporary folder (`%TEMP%`) of the Windows account that ran the Devolutions Server Console.

Common messages during the installation:

<table><thead><tr><th width="330">MESSAGE</th><th>CAUSE</th></tr></thead><tbody><tr><td>"Invalid credentials for database connection."</td><td>The database account or password is wrong. Variants name the console, vault or scheduler connection of <em><strong>Advanced credentials</strong></em>.</td></tr><tr><td>"Database host server cannot be empty.", "Database name cannot be empty.", "Database username cannot be empty.", "Database password cannot be empty."</td><td>A required database field is empty.</td></tr><tr><td>"SQLite database file must be an absolute local file path."</td><td>The SQLite <em><strong>File</strong></em> is a relative or network path.</td></tr><tr><td>"Server name already exists. Please choose another name."</td><td>Kestrel: another Kestrel instance on the machine has the same <em><strong>Server name</strong></em>.</td></tr><tr><td>"Unable to import key. Invalid password."</td><td>The password of the encryption keys file is wrong.</td></tr><tr><td>"Administrator user already exist."</td><td>The database already has a user with this administrator name.</td></tr><tr><td>"Security provider detected. Remove your security provider in order to migrate your current database to Devolutions Server."</td><td>Migration of a workspace that uses a security provider. See <a href="https://docs.devolutions.net/server/knowledge-base/how-to-articles/migrate-from-sql-server-to-devolutions-server.md">Migrate from SQL Server to Devolutions Server</a>.</td></tr><tr><td>"Unable to download the file"</td><td>The installation file could not be downloaded. Use <em><strong>Install from ZIP file</strong></em>.</td></tr><tr><td>"The digital signature could not be verified."</td><td>The downloaded file is not signed by Devolutions.</td></tr><tr><td>"Database update failed. Check the logs for errors."</td><td>The database schema could not be created or updated.</td></tr><tr><td>"The Devolutions Server password was not saved."</td><td>The Devolutions Server Console password could not be saved.</td></tr></tbody></table>

#### Change Devolutions Server application pool's identity to VaultDBRunner

1. Open IIS Manager, right-click on the dvls application, and click on ***Advanced Settings...***.
2. Under ***Process Model***, click on the ellipsis button next to ***Identity***, choose ***Custom Account***, set your VaultDBRunner information, and click ***OK***.
3. Go to the Devolutions Server Console, then ***Edit*** – ***Database*** – ***Advanced credentials***, click on ***Apply least permissions*** under ***Web application***, and click on ***OK***. The Devolutions Server Console shows "Least permissions applied." To let a database administrator make the change instead, open the menu of the button and select ***Generate script*** to save the SQL script to a file (see [Generate a script for database permissions](https://docs.devolutions.net/server/knowledge-base/how-to-articles/generate-a-script-for-database-permissions.md)).

The application pool of a new instance can also be set during the installation, with ***Configure*** on the ***IIS settings*** page.

#### Update Devolutions scheduler service account <a href="#update-devolutions-scheduler-service-account" id="update-devolutions-scheduler-service-account"></a>

1. Open ***Services*** on the server where Devolutions Server is hosted.
2. Update the account in the ***Log on*** tab of the Devolutions Scheduler service.
3. Go to the Devolutions Server Console, then ***Edit*** – ***Database*** – ***Advanced credentials***, click on ***Apply least permissions*** under ***Scheduler service***, and click on ***OK***.

#### Import a certificate or create a self-signed certificate <a href="#import-a-certificate-or-create-a-self-signed-certificate" id="import-a-certificate-or-create-a-self-signed-certificate"></a>

1. Open IIS Manager, select the server node in the tree view and double-click the ***Server Certificates*** feature in the list view.
2. Click on ***Import...*** in the ***Actions*** pane, and fill in the required information to import an existing certificate. To create a self-signed certificate, click on ***Create Self-Signed Certificate...***, give it a name and leave the certificate store to ***Personal***.

#### Create a SSL binding <a href="#create-a-ssl-binding" id="create-a-ssl-binding"></a>

1. Select the website in the tree view. Click ***Bindings...*** in the ***Actions*** pane. This opens the binding editor that creates, edits and deletes the bindings of the website.
2. Click ***Add...*** to add the new SSL binding to the site.
3. Select ***https*** in the ***Type*** drop-down list. Select the certificate you imported or created in the ***SSL Certificate*** drop-down list, then click ***OK***.
4. The site now has a new ***SSL*** binding.

#### Test the installation <a href="#test-the-installation" id="test-the-installation"></a>

To test the server installation, navigate to it (for example `https://<machine_name>/<instancename>`) with any web browser, or click on the ***Navigate to the website*** button in the Devolutions Server Console.

{% hint style="success" %}
In some situations, the web page may not load properly. Ensure that the IIS\_IUSRS local built-in group has full read access on the `encryption.config` file located in the `App_Data` subfolder of the Devolutions Server web application folder (for example `C:\inetpub\wwwroot\dvls\App_Data`). If there is still an issue, contact us at <service@devolutions.net>.
{% endhint %}

To test the connection from a client, create a workspace in Remote Desktop Manager. Consult [Configure a client workspace](https://docs.devolutions.net/server/knowledge-base/how-to-articles/configure-a-client-workspace.md) for more information.

### Kestrel web server installation <a href="#kestrel-web-server-installation" id="kestrel-web-server-installation"></a>

Installing Devolutions Server with the Kestrel web server requires fewer dependencies; in particular, IIS does not need to be installed on the machine. In the Devolutions Server Console, click on ***New*** – ***Kestrel web server*** – ***Advanced installation***. The Kestrel web server requires Devolutions Server 2023.3.0 or later: when the selected version is older, the wizard stops with "This feature requires a Devolutions Server version greater than or equal to 2023.3.0."

The wizard is similar to the [IIS web server advanced installation](#advanced-installation), with two different pages and no Devolutions Gateway page:

* ***Settings*** replaces ***IIS settings***: instead of an IIS website and web application, enter the ***HTTP listener***, the URL on which the application listens (`https://localhost:5000` by default), and the ***Access URI***, the external URI used to reach the application served on that listener. Set the ***Installation folder*** and the ***Certificate*** of the HTTPS listener: ***Select certificate*** in a Windows certificate store, or ***Generate self-signed certificate***. See [IIS](https://docs.devolutions.net/server/devolutions-server-console/devolutions-server-settings/iis.md) for the other options.
* A service account page sets the account of the Windows service that runs the instance: a ***Predefined account*** or ***This account***. This account is granted read access to the sensitive files of the application, and to the private key of the selected certificate. A dedicated service account is recommended.

Details of the ***Settings*** page, which explains: "The 'Access URI' is the external URI used to reach Devolutions Server (<https://contoso.com/>). The 'HTTP listener' is the internal URI on which the server receives requests (<http://localhost:4200>)."

<table><thead><tr><th width="270">FIELD</th><th>DESCRIPTION</th></tr></thead><tbody><tr><td><em><strong>HTTP listener</strong></em></td><td>Protocol, host and port on which Kestrel listens. Default <code>https://localhost:5000</code>. The port must be free: "The port {0} is already used by IIS." or "The port {0} is already used by another application."</td></tr><tr><td><em><strong>Access URI</strong></em></td><td>External address users type to reach Devolutions Server. Default <code>https://localhost:5000</code>.</td></tr><tr><td><em><strong>Installation folder</strong></em></td><td>Folder of the instance files. The checks on the folder are the same as with IIS.</td></tr><tr><td><em><strong>Disable connection string encryption</strong></em></td><td>Leaves the connection strings unencrypted.</td></tr><tr><td><em><strong>Enable client certificate negotiation</strong></em></td><td>Asks the browser for a client certificate.</td></tr><tr><td><em><strong>Certificate</strong></em> – <em><strong>Generate self-signed certificate</strong></em></td><td>Creates a self-signed certificate for the HTTPS listener.</td></tr><tr><td><em><strong>Certificate</strong></em> – <em><strong>Select certificate</strong></em></td><td>Picks a certificate in a Windows certificate store; the page shows its <em><strong>Subject</strong></em>, <em><strong>Store</strong></em> and <em><strong>Location</strong></em>.</td></tr><tr><td><em><strong>Allow invalid certificate</strong></em></td><td>Accepts a certificate that does not pass validation.</td></tr></tbody></table>

The service account page explains: "Please define the account to be used to operate the service. This account will be granted read access rights to the necessary sensitive files of the application, as well as to the private certificate selected in the previous step, if applicable. It is generally recommended to use a dedicated service account." The ***Predefined account*** is ***LocalService*** by default (or ***NetworkService***, ***LocalSystem***). When a Windows account cannot receive the right to log on as a service, the log shows "Failed to grant SeServiceLogonRight privilege to the user. You need to grant this privilege to the user manually."

What changes with Kestrel:

* The Devolutions Server Console installs the Windows service `Devolutions Server (<server name>)` and starts it.
* It adds an inbound Windows Firewall rule named after the server name, which allows TCP connections to `Devolutions.Server.exe` in the installation folder. "Authorize Devolutions Server in firewall failed." means that the rule could not be created.
* It writes the Kestrel endpoints in `appsettings.json` and grants the service account read access to the private key of the certificate.

Known limitations:

* The application must be served on / (`https://localhost:5000/`).
* Windows authentication is not currently supported under Kestrel.

#### See also <a href="#see-also" id="see-also"></a>

* [Devolutions Academy - Installing Devolutions Server](https://academy.devolutions.net/student/page/2942307-installing-devolutions-server?curriculum_activity_id=4493546\&path_id=2942210\&sid=1f0658ca-fdf5-4f74-a93f-a6a4b8853c09\&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/server/getting-started/installation/devolutions-server-instance-creation.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.
