Obj 4 Enumeration

Task - Enumerate all Domains in the forest, map the trusts, map external trusts, identify external trusts.

Enumeration Cont.

List all domains in forest

Get-ForestDomain -Verbose

Map all the trusts of the domain

Get-DomainTrust

List Only the external trusts in a domain

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

Identify External Trusts

Get-DomainTrust | ?{$_.TrustAttributes -eq "FILTER_SIDS"}

List trusts of external forest

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

This is only works because we have a bidirectional trust with the external forest.

Last updated