Hier ist ein Powershell Script dass dir alle vorhandenen Vertrauensstellungen in Active Directory anzeigt.
Import-Module ActiveDirectory
$trusts = Get-ADTrust -Filter *
Write-Host ($trusts).Count
foreach ($trust in $trusts) {
Write-Host "Trust Name: $($trust.Name)"
Write-Host "Trust Type: $($trust.TrustType)"
Write-Host "Source Domain: $($trust.SourceDomain)"
Write-Host "Target Domain: $($trust.TargetDomain)"
Write-Host "Trust Direction: $($trust.TrustDirection)"
Write-Host "Trust Attributes: $($trust.TrustAttributes)"
Write-Host "Is Active: $($trust.IsActive)"
Write-Host "Is Intra-Forest: $($trust.IsIntraForest)"
Write-Host "Is Cross-Organizational: $($trust.IsExternal)"
Write-Host "Is Forest-Transitive: $($trust.IsForestTransitive)"
Write-Host "Trust Status: $($trust.TrustStatus)"
Write-Host ""
}