Test-MtAdTrustStaleCount
SYNOPSIS
Counts the number of stale trusts in Active Directory (trusts not validated for >60 days).
SYNTAX
Test-MtAdTrustStaleCount [-ProgressAction <ActionPreference>] [<CommonParameters>]
DESCRIPTION
This test retrieves the count of stale trusts in Active Directory. Stale trusts are those that have not been validated for more than 60 days, which may indicate connectivity issues, decommissioned domains, or trusts that are no longer needed. Stale trusts should be reviewed and removed if no longer required to reduce the attack surface.
EXAMPLES
EXAMPLE 1
Test-MtAdTrustStaleCount
Returns $true if trust data is accessible, $false otherwise. The test result includes the count of stale trusts.
PARAMETERS
-ProgressAction
Determines how PowerShell responds to progress updates generated by a script, cmdlet, or provider, such as the progress bars generated by Write-Progress.
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.