Skip to main content

Trust

Trust info​

nltest [server:<fqdn_foreign_domain>] /domain_trusts /all_trusts /v
nltest /dsgetfti:<domain>
nltest /server:<ip_dc> /domain_trusts /all_trusts
([System.DirectoryServices.ActiveDirectory.Domain]::GetCurrentDomain()).GetAllTrustRelationships()
([System.DirectoryServices.ActiveDirectory.Forest]::GetForest((New-Object System.DirectoryServices.ActiveDirectory.DirectoryContext('Forest', '<FQDN_forest>')))).GetAllTrustRelationships()

PowerView

Get-Forest
Get-ForestDomain
Get-DomainTrust
Get-DomainTrustMapping | Export-CSV -NoTypeInformation trusts.csv
Get-ForestTrust