Per deployare la Central Administration di SharePont 2010 su uno specifico server tramite Powershell, procedere come segue:
elencare le istanze

PowerShell

Get-SPServiceInstance | Where-Object {$_.TypeName -eq 'Central Administration'} |  select server, Status, Id, TypeName
da un output simile al seguente:

Text

Server                    Status Id
------                    ------ --
SPServer Name=SRV-01      Online 6854375b-82c2-4c99-a997-a25bc2d6f59a
SPServer Name=SRV-02    Disabled c65df5cf-de2e-4299-ab73-f3a5cfcf4842
a questo punto tramite l'id si seleziona l'istanza specifica (quella in stato Disabled);

PowerShell

Get-SPServiceInstance | Where-Object {$_.TypeName -eq 'Central Administration'} |  ? {id -eq '6854375b-82c2-4c99-a997-a25bc2d6f59a'}
e poi si fa il doploy (Start-SPServiceInstance)

PowerShell

Get-SPServiceInstance | ? {id -eq '6854375b-82c2-4c99-a997-a25bc2d6f59a'} |  Start-SPServiceInstance
o l'undeploy (Stop-SPServiceInstance)

PowerShell

Get-SPServiceInstance | ? {id -eq '6854375b-82c2-4c99-a997-a25bc2d6f59a'} |  Stop-SPServiceInstance
Tags:
PowerShell199 SharePoint497 SharePoint 2010224
Potrebbe interessarti anche: