Home > SharePoint 2010, SharePoint Administration > Adding Servers to a SharePoint 2010 Farm using PowerShell

Adding Servers to a SharePoint 2010 Farm using PowerShell

This is assuming that all the SharePoint 2010 Pre-requists have been installed on the server and that the SharePoint 2010 setup wizard has been ran WITHOUT having ran the SharePoint 2010 Products Configuration Wizard at the end of the installation.

1.  After installing all SharePoint 2010 Prerequists and running the Setup Wizard, make sure to uncheck the box at the end of the installation to avoid running the SharePoint 2010 Products Configuration Wizard.
2.  Open up SharePoint 2010 Management Shell (PowerShell)
3.  Type:

ConnectSPConfigurationDatabase -DatabaseServer “<$DatabaseServer>” -DatabaseName “<$RunSettings.ConfigurationDatabaseName>” -Passphrase “<$Passphrase>

Where:

  • <$DatabaseServer> is the name of the server that hosts the configuration database
  • <$RunSettings.ConfigurationDatabaseName> is the name of the configuration database
  • <$Passphrase> is the passphrase for the farm

4.  Next type and hit enter

Install-SPHelpCollection -All

5. Next type and hit enter 

 Initialize-SPResourceSecurity

6.  Next type and hit enter

Install-SPService

7.  Next type and hit enter

Install-SPFeature -AllExistingFeatures

8.  Finally type and hit enter

Install-SPApplicationContent

That’s it.  The new server should now be added to the farm.  Head over to Central Administration -> Manage Servers in this Farm and you should see the new server just added.

Of course all this can be done via the SharePoint 2010 Products Configuration Wizard without running PowerShell, but what fun is that!!

Advertisements
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: