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

# Konfigurer en gruppeadministreret tjenestekonto til brug med Devolutions Server

Konfigurer en gruppeadministreret tjenestekonto (gMSA) til Devolutions Server på Windows, herunder KDS-rodnøgler, AD-grupper og opsætning af IIS-programpuljen.

Denne artikel indeholder trinnene til at konfigurere en gruppeadministreret tjenestekonto (gMSA) med Devolutions Server. Det er kun muligt for Windows-operativsystemer.

Miljøværdierne i denne vejledning (f.eks. `dvls01.domain.local`) er pladsholdere. Erstat dem med de specifikke værdier for Deres miljø.

1. Opret en KDS-rodnøgle. Gør det på domænecontrolleren, hvis det er første gang, De bruger gMSA.

   ```
   Add-KdsRootKey –EffectiveTime ((Get-Date).AddHours(-10))
   ```
2. Opret en Active Directory-gruppe til godkendte værter for Devolutions Server.

   ```
   New-ADGroup -Name "DVLS Authorized Hosts" -SamAccountName "DVLSHosts" -GroupScope DomainLocal
   ```
3. Opret en gMSA på domænecontrolleren.

   ```
   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. Føj computerkontoen DVLS01 til gruppen DVLSHosts. Computerne skal genstartes efter dette trin. De kan gøre det via Active Directorys ***Brugere og computere*** eller ved at bruge PowerShell.
5. Installér gMSA'erne på DVLS01. PowerShell-modulet til Active Directory er påkrævet.

   ```
   Install-ADServiceAccount DVLS_Runner
   Install-ADServiceAccount DVLS_Sched
   ```
6. Konfigurer IIS-programpuljen til at køre som `domain.local\DVLS_Runner$`. Giv rettigheder til batchlogon: Tildel enten ***Log på som et batchjob*** i ***Gruppepolitik***, eller føj kontoen `DVLS_Runner$` til gruppen IIS\_IUSRS.

   Adgangskodefelterne forbliver tomme, hvilket er forventet funktionsmåde for en gMSA.<br>
7. Konfigurer [planlægningstjenesten](/server/da/devolutions-server-console.md#companions) i Devolutions:

   * Åbn Windows' konsol Tjenester (services.msc).
   * Højreklik på ***DevolutionsSchedulerService***, og klik på fanen ***Egenskaber*** – ***Log på***.
   * Markér ***Denne konto***, og angiv `domain.local\DVLS_Sched$`.
   * Klik på ***Gennemse*** for at finde kontoen.
   * Lad adgangskodefelterne være tomme.

   Tilladelsen ***Log på som en tjeneste*** tildeles automatisk for gMSA'er.
8. Giv tilladelser til databasen i [Devolutions Server Console](/server/da/devolutions-server-console.md).
   * Gå til ***Administration*** – ***Rediger*** – ***Database*** – ***Avancerede legitimationsoplysninger***.
   * Aktivér ***Anvend mindste tilladelser***.
   * Angiv kontiene `DVLS_Runner$` og `DVLS_Sched$` i de respektive felter.
9. Genstart DVLS01, bekræft, at programpuljen og planlægningstjenesten starter korrekt, og sørg for, at webgrænsefladen i Devolutions Server og baggrundsjobbene fungerer korrekt.


---

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