Get-Trust

 

Applies to: Exchange Server 2016

This cmdlet is available only in on-premises Exchange Server 2016.

Use the Get-Trust cmdlet to return external and forest trusts.

For information about the parameter sets in the Syntax section below, see Exchange cmdlet syntax.

Get-Trust [-DomainName <Fqdn>]

This example enumerates all trusts for the domain Contoso.com.

Get-Trust -DomainName Contoso.com

The Get-Trust cmdlet is used by the Exchange admin center in to populate fields that display recipient information.

You need to be assigned permissions before you can run this cmdlet. Although all parameters for this cmdlet are listed in this topic, you may not have access to some parameters if they're not included in the permissions assigned to you. To see what permissions you need, see the "Active Directory Domain Services server settings" entry in the Exchange infrastructure and PowerShell permissions topic.

 

Parameter Required Type Description

DomainName

Optional

Microsoft.Exchange.Data.Fqdn

The DomainName parameter specifies that trusts returned are restricted to the domain name specified.

To see the input types that this cmdlet accepts, see Cmdlet Input and Output Types. If the Input Type field for a cmdlet is blank, the cmdlet doesn’t accept input data.

To see the return types, which are also known as output types, that this cmdlet accepts, see Cmdlet Input and Output Types. If the Output Type field is blank, the cmdlet doesn’t return data.

 
Show: