API Reference
Get-ADXTrust
Explores domain/forest trusts using typed ADPlayground models.
Remarks
Enumerates domain and forest trust relationships, returning typed Assessment rows enriched with LDAP data (attributes, encryption types, suffixes). Use -SkipValidation:$false to attempt lightweight LDAP checks (e.g., probing a target group) and classify TrustStatus.
Examples
Example 1: Enumerate trusts in current forest
PS>
Get-ADXTrust
Outputs typed trust assessments for the current forest's domains and forest trusts.
Example 2: Enumerate starting at a specific forest (recursively)
PS>
Get-ADXTrust -Forest 'contoso.com' -Recursive
Walks remote forests linked by forest trusts and includes their trusts as well.
Example 3: Attempt validation of targets
PS>
Get-ADXTrust -SkipValidation:$false
Performs lightweight LDAP checks to classify trust connectivity (may require permissions and network reachability).
Common Parameters
This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters.
Syntax
Get-ADXTrust [-Forest <string>] [-CommunicationIssues] [-DirectionFilter <string>] [-Impermeability] [-InactiveDays <int>] [-OldProtocol] [-Recursive] [-SkipValidation] [-Status <string>] [-Summary] [-SummaryBy <string>] [-SummaryMatrix] [-Type <string>] [<CommonParameters>]#Parameters
- Forest string
- Optional forest root name. Defaults to the current forest when omitted.
- CommunicationIssues SwitchParameter
- Emits trust communication issues discovered in logs (NetLogon/System).
- DirectionFilter string
- Filters by trust direction.
- Impermeability SwitchParameter
- Filters to trusts that lack both selective authentication and SID filtering.
- InactiveDays int
- Threshold in days used to classify trusts as inactive.
- OldProtocol SwitchParameter
- Filters to trusts that use downlevel protocols (no AES or using RC4 / non-uplevel).
- Recursive SwitchParameter
- Recursively explore remote forests linked by forest trusts.
- SkipValidation SwitchParameter
- Skip target validation lookups (default: true). Pass -SkipValidation:$false to attempt basic LDAP validation.
- Status string
- Filters by activity state derived from modification age: Any/Active/Inactive.
- Summary SwitchParameter
- Emits grouped summary rows instead of raw assessments.
- SummaryBy string
- Controls the summary grouping key (Type or Direction).
- SummaryMatrix SwitchParameter
- Emits a 2D matrix summary combining Type × Direction counts.
- Type string
- Filters by trust type.
Outputs
ADPlayground.Trusts.TrustExplorer+Assessment, ADPlayground.Trusts.TrustSummaryRow