> 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/knowledge-base/how-to-articles/allow-devolutions-scheduler-to-read-encrypted-connection-strings.md).

# Allow Devolutions Scheduler to read encrypted connection strings

### Using SQL Server login accounts

When using SQL Server Login accounts, it is of the utmost importance that the server configuration file (**appsettings.json**) be encrypted, for it stores the database connection strings. These include the HostName of the database server, the name of the database (Initial Catalogue), and the credentials (User ID and Password).

However, since the encryption of the **appsettings.json** file requires using ***RsaProtectedConfigurationProvider*** from .NET Framework, additional permissions are necessary to access the ***NetFrameworkConfigurationKey*** container used by RSA Provider.

Omitting to obtain these permissions prevents the ***DevolutionsSchedulerService*** from starting and returns an error message if the ***Disable connection string encryption*** option is disabled in Devolutions Server Console (right-click on an instance, then ***Edit –*** ***IIS** –* ***Disable connection string encryption***).

{% hint style="danger" %}
Granting access to the ***NetFrameworkConfigurationKey*** container could be a security concern, therefore it is recommended to not grant this permission to ***Network Service*** or ***Local Service***.
{% endhint %}

We recommend using a dedicated account for the ***DevolutionsSchedulerService*** service, and setting the service to run under it.

Then run the following command from an elevated command prompt:

```bash
"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis" -pa "NetFrameworkConfigurationKey" "SchedSvcLocalAccount"
```

This should return:

```
Microsoft (R) ASP.NET RegIIS version 4.0.30319.0
Administration utility to install and uninstall ASP.NET on the local machine.
Copyright (C) Microsoft Corporation.  All rights reserved.
Adding ACL for access to the RSA Key container...
Succeeded!
```

### Using SQL Server domain accounts (Integrated security)

Like with login accounts, omitting to get the permissions ***NetFrameworkConfigurationKey*** container used by RSA Provider prevents the ***DevolutionsSchedulerService*** from starting, likely returning this error from Windows Services Console.

The account set on the ***DevolutionsSchedulerService*** (referred to as the VaultDBScheduler account in Pre-Deployment Account Survey) will require permission to read the ***NetFrameworkConfigurationKey*** container.

To obtain these, run the following command from an elevated command prompt:

```
"C:\"Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis" -pa "NetFrameworkConfigurationKey" "<YourDomain>\<VaultDBSchedulerAccount>"
```

This should return:

```
Microsoft (R) ASP.NET RegIIS version 4.0.30319.0
Administration utility to install and uninstall ASP.NET on the local machine.
Copyright (C) Microsoft Corporation.  All rights reserved.
Adding ACL for access to the RSA Key container...
Succeeded!
```


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.devolutions.net/server/knowledge-base/how-to-articles/allow-devolutions-scheduler-to-read-encrypted-connection-strings.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
