TRUSTED_BY
Summary
Description
Identification
PowerShell
Active Directory Module
function Find-ADTrusts {
[CmdletBinding()]
param([string]$OutputPath = ".\ADTrusts.csv")
try { $trusts = Get-ADTrust -Filter * -Properties Name,Direction,Source,TrustType}
catch {Write-Error "Failed to enumerate trusts: $($_.Exception.Message)"; return}
$rows = foreach ($t in $trusts) {
[pscustomobject]@{
Source = $t.Source
Name = $t.Name
Direction = $t.Direction
Type = $t.TrustType
}
}
if ($rows) { $rows | Export-Csv -Path $OutputPath -NoTypeInformation -Encoding UTF8 ; $rows }
else { Write-Host "No trust objects found." }
}.NET Directory Services
Active Directory Domains and Trusts

Exploitation
References
Last updated
Was this helpful?