PowerShell cmdlet from the ActiveDirectory module for retrieving one or more Active Directory objects. The included example filters trusted-domain objects and reports the partner name, SID, trust direction, and attributes; this is domain trust discovery, not a test of whether a trust grants access to partner resources.
PowerShell
RESTRICTED_ACCESS_BLUR_MARKER