About Help

Choose a topic from the list on the left or search for a specific topic. Choose a topic from the list or search for a specific topic.
Cmdlets  Providers  Aliases  Modules







# Description 
    This resource is used to trust a remote SharePoint farm. This is used when 
    federating search results between two different SharePoint farms. The 
    technique is described at 
    Key - string 
    A name of the remote farm, used to create token issuer and root authority 
.PARAMETER RemoteWebAppUrl 
    Required - string 
    The URL of a web app in the remote farm, must use HTTPS 
.PARAMETER LocalWebAppUrl 
    Required - string 
    The URL of a local web app to connect the remote farm to 
    Write - string 
    Allowed values: Present, Absent 
    Set to present to ensure the trust exists, or absent to ensure it is removed 
.PARAMETER InstallAccount 
    Write - String 
    POWERSHELL 4 ONLY: The account to run this resource as, use PsDscRunAsCredential if using PowerShell 5 


    This example creates a remote farm trust so that the local web app trusts calls  
    that will come from the remote web app.  
    Configuration Example  
            [Parameter(Mandatory = $true)] 
        Import-DscResource -ModuleName SharePointDsc 
        node localhost { 
            SPRemoteFarmTrust TrustRemoteFarmForSearch 
                Name = "CentralSearchFarm" 
                RemoteWebAppUrl = "https://search.sharepoint.contoso.com" 
                LocalWebAppUrl = "https://local.sharepoint2.contoso.com"