> For the complete documentation index, see [llms.txt](https://activedirectory.mrw0l05zyn.cl/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://activedirectory.mrw0l05zyn.cl/escalamiento-de-privilegios-en-relaciones-de-confianza-de-dominio/foreign-group-membership.md).

# Foreign group membership

## Descripción

Enumeración de grupos con usuarios que no pertenecen al dominio.

## Windows

### PowerView

Obtener grupos con usuarios que no pertecencen al dominio en el dominio objetivo.

```powershell
Get-DomainForeignGroupMember -Domain <ACME.LOCAL>
```

Obtener cuenta de usuario a partir del SID.

```powershell
Convert-SidToName <SID>
```

### Windows Remote Management (WinRM)

#### PowerShell remoting

```powershell
Enter-PSSession -ComputerName <computer-name> -Credential <ACME.LOCAL>\<user>
```
