I'm writing some powershell and I can easily access local farm resources but I would like to access a remote farm? Is this possible?
The code works below when targeting the local server:
$site = new-object Microsoft.SharePoint.SPSite("http://mylocalserver") $web = $site.RootWeb Write-Host $web.Title $web.Dispose() $site.Dispose()
but it gives the error below for a remote farm:
The Web application at http://myotherfarm.localdomain could not be found.