> 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/it/knowledge-base/how-to-articles/configure-a-group-managed-service-account-for-use-with-devolutions-server.md).

# Configurare un Group Managed Service Account da utilizzare con Devolutions Server

Questo articolo contiene i passaggi per configurare un Group Managed Service Account (gMSA) con Devolutions Server. Ciò è possibile solo per i sistemi operativi Windows.

I valori dell'ambiente riportati in questa guida (ad es. `dvls01.domain.local`) sono segnaposto: li sostituisca con i valori specifici del suo ambiente.

1. Creare una chiave radice KDS. Esegua questa operazione sul controller di dominio se è la prima volta che utilizza gMSA.

   ```
   Add-KdsRootKey –EffectiveTime ((Get-Date).AddHours(-10))
   ```
2. Creare un gruppo di Active Directory per gli host autorizzati di Devolutions Server.

   ```
   New-ADGroup -Name "DVLS Authorized Hosts" -SamAccountName "DVLSHosts" -GroupScope DomainLocal
   ```
3. Creare un gMSA sul controller di dominio.

   ```
   New-ADServiceAccount -Name "DVLS_Runner" -DnsHostName "dvls01.domain.local"
   -ServicePrincipalNames "http/DVLS_Runner.domain.local" `
   -PrincipalsAllowedToRetrieveManagedPassword "DVLSHosts"

   New-ADServiceAccount -Name "DVLS_Sched" -DnsHostName "dvls01.domain.local"
   -ServicePrincipalNames "sched/DVLS_Sched.domain.local" `
   -PrincipalsAllowedToRetrieveManagedPassword "DVLSHosts"
   ```
4. Aggiungere l'account computer DVLS01 al gruppo DVLSHosts. I computer dovranno essere riavviati dopo questo passaggio; può farlo tramite ***Utenti e computer*** di Active Directory oppure utilizzando PowerShell.
5. Su DVLS01, installare i gMSA. È richiesto il modulo PowerShell di Active Directory.

   ```
   Install-ADServiceAccount DVLS_Runner
   Install-ADServiceAccount DVLS_Sched
   ```
6. Configurare il pool di applicazioni IIS in modo che venga eseguito come `domain.local\DVLS_Runner$`. Concedere i diritti di accesso batch: assegni ***Accedi come processo batch*** in ***Criteri di gruppo*** oppure aggiunga l'account `DVLS_Runner$` al gruppo IIS\_IUSRS.

   I campi della password rimarranno vuoti, il che è il comportamento previsto per un gMSA.<br>
7. Configurare il [servizio Scheduler](/server/it/devolutions-server-console.md#companions) di Devolutions:

   * Apra la console Servizi di Windows (services.msc).
   * Faccia clic con il tasto destro su ***DevolutionsSchedulerService***, quindi clicchi su ***Proprietà*** – scheda ***Connessione***.
   * Selezioni ***Account*** e inserisca `domain.local\DVLS_Sched$`.
   * Clicchi su ***Sfoglia*** per trovare l'account.
   * Lasci vuoti i campi della password.

   L'autorizzazione ***Accedi come servizio*** viene concessa automaticamente per i gMSA.
8. Concedere le autorizzazioni al database in [Devolutions Server Console](/server/it/devolutions-server-console.md).
   * Vada su ***Amministrazione*** – ***Modifica*** – ***Database*** – ***Credenziali avanzate***.
   * Attivi ***Applica autorizzazioni minime***.
   * Imposti gli account `DVLS_Runner$` e `DVLS_Sched$` nei rispettivi campi.
9. Riavvii DVLS01, confermi che il pool di applicazioni e lo scheduler si avviino correttamente e verifichi che l'interfaccia web di Devolutions Server e i processi in background funzionino correttamente.


---

# 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, and the optional `goal` query parameter:

```
GET https://docs.devolutions.net/server/it/knowledge-base/how-to-articles/configure-a-group-managed-service-account-for-use-with-devolutions-server.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
