> 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/es/active-directory/enumeration/local-admin-access-discovery.md).

# Búsqueda de acceso de administrador local

### Encontrar máquinas donde el usuario es administrador local

{% code overflow="wrap" %}

```powershell
Find-LocalAdminAccess -Verbose
```

{% endcode %}

Este comando comprueba en qué máquinas el usuario actual tiene privilegios de administrador local.

Este es un comando muy útil en la fase de enumeración posterior al compromiso en un laboratorio.

<figure><img src="/files/ebc0d79f81961aed0658f881035c404838460ada" alt=""><figcaption></figcaption></figure>

### Enumerar los administradores locales en varias máquinas

{% code overflow="wrap" %}

```powershell
Invoke-EnumerateLocalAdmin -Verbose
```

{% endcode %}

Este comando permite identificar a los administradores locales en varios hosts del dominio.

<figure><img src="/files/2c274fbea813016690db999bde6a2f41e7f03bb1" alt=""><figcaption></figcaption></figure>

### Encontrar sesiones de usuario en un grupo

{% code overflow="wrap" %}

```powershell
Invoke-UserHunter -GroupName "RDPUsers"
```

{% endcode %}

Este comando busca sesiones establecidas por usuarios pertenecientes a `RDPUsers` grupo.

Este comando busca sesiones establecidas por usuarios pertenecientes a `RDPUsers` grupo.

Esto puede ayudar a identificar:

* en qué máquinas está activo un grupo;
* dónde están conectados algunos usuarios interesantes;
* qué máquinas merecen un análisis adicional.


---

# 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/es/active-directory/enumeration/local-admin-access-discovery.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.
