> 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/powershell/fr/remote-desktop-manager-powershell/use-gsudo-for-elevated-powershell-sessions.md).

# Utiliser GSudo pour des sessions PowerShell élevées

Configurez GSudo comme méthode d'élévation pour les sessions de terminal PowerShell dans Remote Desktop Manager afin d'éviter les invites UAC de Windows répétées.

Lors de l'exécution de scripts PowerShell élevés, la méthode `UseShellExecute` combinée à `runas` n'est pas systématiquement fiable, et sélectionner ***Exécuter en tant qu'administrateur*** peut ne pas produire le résultat souhaité. GSudo offre une solution plus fiable en permettant l'élévation sans exiger que Remote Desktop Manager soit exécuté en tant qu'administrateur.

GSudo prend en charge la [mise en cache configurable](https://gerardog.github.io/gsudo/docs/credentials-cache), ce qui vous permet d'éviter les invites UAC de Windows répétées, une limitation de ShellExecute, qui déclenche généralement une invite UAC toutes les 15 minutes pour les processus élevés.

Vous pouvez choisir **GSudo** comme méthode d'exécution des terminaux PowerShell dans Remote Desktop Manager.

1. Créez ou modifiez une entrée de terminal PowerShell (local) dans Remote Desktop Manager.
2. Allez à l'onglet ***Exécuter en tant que***.
3. Réglez ***Mode Exécuter en tant que*** à ***GSudo*** (au lieu de la valeur par défaut ***ShellExecute***).
4. Cliquez sur ***Ajouter*** ou ***Mettre à jour*** pour enregistrer l'entrée


---

# 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/powershell/fr/remote-desktop-manager-powershell/use-gsudo-for-elevated-powershell-sessions.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.
