Come accedere al web-application ospitata sul un'altra Farm utilizzando SharePoint 2010 Management Shell?

sharepoint.stackexchange https://sharepoint.stackexchange.com/questions/15423

  •  16-10-2019
  •  | 
  •  

Domanda

Sto cercando di accedere al web-application che è ospitato sul un'altra SharePoint 2010 Farm utilizzando SharePoint 2010 Management Shell cmdlet ma sta venendo a mancare con il sottostante messaggio di errore

$spsite = Get-SPSite http://demoserver:8080<br/>
Get-SPSite : Cannot find an SPSite object with Id or Url: http://demoserver:8080.
At line:1 char:21
+ $spsite = Get-SPSite <<<<  http://demoserver:8080
    + CategoryInfo          : InvalidData: (Microsoft.Share...SPCmdletGetSite:SPCmdletGetSite) [Get-SPSite], SPCm
    + FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletGetSite

stesso account viene utilizzato come account della farm in entrambe le aziende agricole.

Anche, ho provato con lo script PowerShell di seguito non è riuscito.

[void][reflection.assembly]::Loadwithpartialname("Microsoft.SharePoint")

$spsite=[Microsoft.SharePoint.SPSite]("http://demoserver:8080")

E 'questo significa che non siamo in grado di accedere al web-application ospitati su altri Farm?

È stato utile?

Soluzione

Per prima cosa è necessario abilitare PowerShell remoting: Enable-PSRemoting

Ti consigliamo di utilizzare questi comandi così:

Get-Credential

Enable-WSManCredSSP

Invoke-Command

Ecco un post sul blog che descrive i passi.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a sharepoint.stackexchange
scroll top