> 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/rdm/da/knowledge-base/how-to-articles/run-as-another-user/built-in-runas.md).

# Indbygget RunAs

Brug den indbyggede metode Kør som i Remote Desktop Manager til at starte understøttede sessioner, værktøjer og tilføjelser under andre legitimationsoplysninger.

{% hint style="info" %}
Denne artikel beskriver den indbyggede metode til at bruge \`RunAs\`. For sessionstyper, der endnu ikke understøtter den indbyggede metode, kan De følge de manuelle trin, der er beskrevet i [Manuel RunAs](/rdm/da/knowledge-base/how-to-articles/running-remote-desktop-manager-as-another-user.md).
{% endhint %}

### Indstillinger

#### Understøttede typer

Følgende typer understøtter i øjeblikket ***Kør som***:

| Valgmulighed              | Beskrivelse                                                                                      |
| ------------------------- | ------------------------------------------------------------------------------------------------ |
| Session                   | <ul><li>Kommandolinje</li><li>PowerShell</li></ul>                                               |
| Makroer/scripts/værktøjer | <ul><li>Kommandolinje</li><li>PowerShell lokal</li><li>PowerShell fjern</li><li>PSExec</li></ul> |
| Sessionstilføjelse        | <ul><li>SQL Server Management Studio</li></ul>                                                   |

### Session

Sessioner, der understøtter Kør som, har en fane Kør som, hvor De angiver, hvilke legitimationsoplysninger der skal bruges, når De starter med Kør som.

<table><thead><tr><th width="278">Valgmulighed</th><th>Beskrivelse</th></tr></thead><tbody><tr><td>Ingen</td><td>Der udføres ikke Kør som.</td></tr><tr><td>Aktuel session</td><td>Brug de samme legitimationsoplysninger som dem, der er defineret i sessionen.</td></tr><tr><td>Brugerdefinerede legitimationsoplysninger</td><td>Brug angivne brugerdefinerede legitimationsoplysninger.</td></tr><tr><td>Legitimationslager</td><td>Brug en tilknyttet legitimationspost.</td></tr><tr><td>Brug mine personlige legitimationsoplysninger</td><td>Brug en tilknyttet personlig legitimationspost.</td></tr></tbody></table>

### Makroer/scripts/værktøjer

Med værktøjssessionstyper behøver De kun at angive ***Kør som en anden bruger*** på fanen ***Avanceret***. På udførelsestidspunktet opløses legitimationsoplysningerne og bruges til at starte Windows-legitimationsoplysningerne, medmindre De vælger ***Brug sessionslegitimationsoplysninger***. I så fald bruges dem, der er aktive for sessionen.

Med værktøjssessionstyper behøver De kun at angive ***Kør som en anden bruger*** På udførelsestidspunktet opløses legitimationsoplysningerne og bruges til at starte processen Kør som.

### Sessionstilføjelse

SQL Server Management Studio understøtter Kør som. Konfigurer det, som De ville konfigurere en normal session.

Klik på ***Kør som en anden bruger*** for at ændre indstillingerne for ***Kør som***.

### Bemærkninger

Kør som en anden bruger og Kør som administrator udelukker hinanden.

Kør som en anden bruger tillader ikke Shell Execute

#### Eksempel: Kommandolinjesession med Kør som en anden bruger på den samme arbejdsgruppe/det samme domæne

1. Opret en ny kommandolinjesession.
2. Sæt kommandoen til ***CMD***.
3. Angiv legitimationsoplysningerne for ***Kør som***.
4. Gem sessionen.
5. Kør kommandolinjesessionen.


---

# 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/rdm/da/knowledge-base/how-to-articles/run-as-another-user/built-in-runas.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.
