PowerView

Get-DomainTrust
Get-DomainTrust -Domain us.dollarcorp.moneycorp.local

Forest mapping

Details about current Forest AND external Forests

Get-Forest
Get-Forest -Forest eurocorp.local

FILTER_SIDS = External Trusts

Get-ForestDomain | %{Get-DomainTrust -Domain $_.Name} |
?{$_.TrustAttributes -eq "FILTER_SIDS"}

All domains in current Forest

Get-ForestDomain
Get-ForestDomain -Forest eurocorp.local

All global catalogs for the current forest

Get-ForestGlobalCatalog
Get-ForestGlobalCatalog -Forest eurocorp.local

Enumerate trusts for a trusting / external forest

Get-ForestDomain -Forest eurocorp.local | %{Get-DomainTrust -Domain $_.Name}

Map trusts of a forest

Get-ForestTrust
Get-ForestTrust -Forest eurocorp.local

Last updated