Applies to: Exchange Server 2013

Topic Last Modified: 2012-09-17

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

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

Syntax

Get-Trust [-DomainName <Fqdn>]

Examples

EXAMPLE 1

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

Copy Code
Get-Trust -DomainName Contoso.com

Detailed Description

The Get-Trust cmdlet is used by the Exchange Administration Center in Microsoft Exchange Server 2013 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 and Shell Infrastructure Permissions topic.

Parameters

Parameter Required Type Description

DomainName

Optional

Microsoft.Exchange.Data.Fqdn

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

Input Types

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.

Return Types

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.