Skip to content
GitHub Action edited this page Jul 10, 2026 · 3 revisions

SPSTrust - SharePoint Trust Farm Tool

SPSTrust is a PowerShell script tool to configure trust relationships between SharePoint Server farms — exchanging STS/ROOT certificates, publishing service applications, granting Topology and published service-application permissions, and connecting service application proxies across farms.

It follows the Microsoft guidance Share service applications across farms in SharePoint Server and is compatible with all supported on-premises versions (SharePoint Server 2016 to Subscription Edition).

Key Features

  • Declarative, JSON-free configuration via a PowerShell data file (.psd1)
  • Idempotent: safe to re-run — it only creates what is missing
  • -CleanServices switch to tear down published services and trust
  • Shared logic packaged in the reusable SPSTrust.Common module
  • Transcript logging with automatic retention/rotation

Documentation

Requirements

  • PowerShell 5.1 or later
  • CredSSP configured between the servers
  • Administrative privileges on the SharePoint servers
  • The same farm service account used across all farms being trusted

Clone this wiki locally