PowerShell Logo Small

Get-ADTrust



This is the built-in help made by Microsoft for the command 'Get-ADTrust', in PowerShell version 3 - as retrieved from Windows version 'Microsoft Windows Server 2012 Standard' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

Returns all trusted domain objects in the directory.

SYNTAX


Get-ADTrust [-AuthType <ADAuthType>] [-Credential <PSCredential>] [-Properties <String[]>] [-Server <String>] -Filter <String>
[<CommonParameters>]
Get-ADTrust [-Identity] <ADTrust> [-AuthType <ADAuthType>] [-Credential <PSCredential>] [-Properties <String[]>] [-Server <String>]
[<CommonParameters>]
Get-ADTrust [-AuthType <ADAuthType>] [-Credential <PSCredential>] [-Properties <String[]>] [-Server <String>] -InputObject <Object>
[<CommonParameters>]
Get-ADTrust [-AuthType <ADAuthType>] [-Credential <PSCredential>] [-Properties <String[]>] [-Server <String>] -LDAPFilter <String>
[<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Get-ADTrust cmdlet returns all trusted domain objects in the directory.



<

RELATED LINKS


Online Version: http://go.microsoft.com/fwlink/?LinkId=216369

REMARKS

<

Examples


-------------------------- EXAMPLE 1 --------------------------

C:\PS>Get-ADTrust -Filter *



Description

-----------

Get all the trusted domain objects in the forest.




-------------------------- EXAMPLE 2 --------------------------

C:\PS>Get-ADTrust -Filter {Target -eq "corp.contoso.com"}



Description

-----------

Get all the trusted domain objects with 'corp.contoso.com' as the trust partner.




-------------------------- EXAMPLE 3 --------------------------

C:\PS>Get-ADTrust "corp.contoso.com"



Description

-----------

Get the trusted domain object with name 'corp.contoso.com'