Welcome to part four of my series on how to “Quickly Build a Multi-Server SharePoint 2013 Developer Environment”.  In this section I am going discuss how to configure SharePoint servers and prepare our last two VMs.  We’ll be using a series of tools to accomplish this, including AutoSPSourceBuilder and AutoSPInstaller (which if you followed the prep from part two you already have downloaded and ready to go).  The other thing we are going to do that has been different than the steps done so far is we are going to configure both SP servers and then install SharePoint and configure the farm all at once.  To do this we will be using the remote installation option that AutoSPInstaller gives us.

Posts in this series:

Special note: I like to give credit where it is due. Some of the ideas and code I use in this series come from Vlad’s blog series that you can find here.  And a huge thank you to Joanne Klein (@JoanneCKlein) for reviewing and editing the series for me.

Prep the SharePoint App Server

As seen in the previous posts; before we can install anything we first have to configure the server (can’t copy over our files until then).  So let’s start off with the following script to allow us to run ps1 files later:

Next run the following script to set the server name, configure network settings, enable remote desktop, disable firewall and a few other things.

We also may be using this server for some web traffic so I suggest we disable that annoying IE Security

It is more likely that we are going to use the WFE for testing with client tools, but just in case, let’s enable the Desktop Experience here too.  We’ll reboot the server when we are done:

Prep the SharePoint Web Server

The steps here are pretty much exactly the same, but I separated out the scripts as I didn’t want the server names and IP Addresses to get mixed together.  As with the App server you need to ensure you can run PowerShell scripts on the server:

Next run the script to configure the basic OS requirements

Next we want to disable IE Security

And like the App server, we want to enable the Desktop Experience

The next step we are going to do is join the servers to the domain.  Run the following script on both servers:

You can now shut down both VMs and enable your external switch.

 

Configure for Remote Installations

Next thing we need to do is configure the Web Server to allow the App server to install and configure SharePoint for us.  To do this run the following script:

Test to ensure things are configured properly by running the following command from the App server

You should receive a message back similar to the following:

TestRemoteConfig

Configure Installation Files

Next let’s prepare the installation files.  Do the following steps on the App Server

  1. Mount the SharePoint installation ISO.  If prompted, cancel the setup window.
  2. Copy over the SharePoint folder to the C: drive of each server.
  3. Open a PowerShell command window as admin and run the following commands:

  1. The script will copy the binaries to the destination as well as the prerequisites to be used by AutoSPInstaller.
  2. When prompted for: “Please type the name of an available CU:” enter the CU you wish to download and slipstream and press Enter.  At one time there was an issue slipstreaming SharePoint 2013 CUs, but this has since been rectified.  If you do not wish to slipstream your build you will need to remove the CU listing from the AutoSPSourceBuilder xml config file.
  3. Only perform this step if you choose to not slipstream your install with a CU.  Do this after or while the source is being built.  Download the latest CU that you wish to install in your farm.  (https://technet.microsoft.com/en-us/library/dn789211(v=office.14).aspx#BKMK_2013).  Unzip the exe and .cab files into c:\SharePoint\SP\2013\Updates

Finally, copy your C:\SharePoint folder from the App server to the C: drive of all of your other SharePoint servers.
That’s it.  Everything is ready for you to move to the SharePoint servers and install.  Except one thing.  We still need to create an AutoSPInstaller answer file.

Click here for the next post in this series: Creating the AutoSPInstaller Answer File and Installing SharePoint

 

Thanks for reading!