# Enumeración de Group Policy Object (GPO)

## Windows

### PowerView

Enumeración de GPO.

```powershell
Get-DomainGPO
Get-DomainGPO | Select DisplayName | Sort-Object DisplayName
```

Enumeración de permisos sobre GPO para usuarios del dominio.

```powershell
$sid = Convert-NameToSid "Domain Users"
Get-DomainGPO | Get-ObjectAcl | ?{$_.SecurityIdentifier -eq $sid}
```

Enumeración de GPO por computador.

```powershell
Get-DomainGPO -ComputerName <computer>
```

Enumeración de unidades organizativas (OU).

```powershell
Get-DomainOU
Get-DomainOU | Select Name | Sort-Object Name
```

Obtener GPO aplicada a una unidad organizativa (UO). El valor del parámetro `GPOname` se puede obtener desde el valor `gplink` al ejecutar el comando `Get-DomainOU`.

```powershell
Get-NetGPO -GPOname "{<id>}"
```

### Group Policy Management Tools

Enumeración de GPO.

```powershell
Get-GPO -All | Select DisplayName
```


---

# Agent Instructions: 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:

```
GET https://activedirectory.mrw0l05zyn.cl/recoleccion-de-informacion-y-enumeracion/enumeracion-autenticada/enumeracion-de-group-policy-object-gpo.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
