Comment accéder à la web-application hébergé sur l'autre ferme en utilisant SharePoint 2010 Management Shell?

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

  •  16-10-2019
  •  | 
  •  

Question

Je tente d'accéder à la demande Web qui est hébergé sur l'autre SharePoint 2010 à l'aide agricole cmdlets SharePoint 2010 Management Shell, mais il échoue avec le message d'erreur ci-dessous

$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

même compte est utilisé comme compte FARM dans les deux fermes.

Même, j'ai essayé avec le script ci-dessous powershell a également échoué.

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

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

Est-ce que cela signifie que nous ne pouvons pas accéder à la demande web hébergé sur une autre ferme?

Était-ce utile?

La solution

D'abord, vous devez activer PowerShell remoting: Activer-PSRemoting

Vous aurez envie d'utiliser ces commandes ainsi:

Get-Credential

Activer-WSManCredSSP

Invoke-Command

Voici un billet de blog qui décrit rel="nofollow"> les étapes.

scroll top