PowerShell Logo Small

Get-ADTrust



This is the built-in help made by Microsoft for the command 'Get-ADTrust', in PowerShell version 5 - as retrieved from Windows version 'Microsoft Windows Server 2012 R2 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 {Negotiate | Basic}] [-Credential <PSCredential>] [-Properties <String[]>] [-Server <String>] -Filter <String> [<CommonParameters>]
Get-ADTrust [-Identity] <ADTrust> [-AuthType {Negotiate | Basic}] [-Credential <PSCredential>] [-Properties <String[]>] [-Server <String>] [<CommonParameters>]
Get-ADTrust [-AuthType {Negotiate | Basic}] [-Credential <PSCredential>] [-Properties <String[]>] [-Server <String>] -InputObject <Object> [<CommonParameters>]
Get-ADTrust [-AuthType {Negotiate | Basic}] [-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/p/?linkid=291053

REMARKS

<

Examples


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

PS C:\>Get-ADTrust -Filter *



This command gets all the trusted domain objects in the forest.




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

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



This command gets all the trusted domain objects with corp.contoso.com as the trust partner.




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

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



This command gets the trusted domain object with name corp.contoso.com.