1 Pluspunkt 0 Minuspunkte
Wie kann ich in Powershell alle vorhandenen Vertrauensstellungen (Domain Trust) anzeigen?
von  

1 Antwort

0 Pluspunkte 0 Minuspunkte

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 ""
}
von (732 Punkte)