So now that our domain is built, servers are configured and SharePoint 2019 template is installed, we need to prep the servers that will be running SharePoint for the installation.  We have done most of the work already, but some steps need to be done for the install to go smoothly.  In this post, I’ll show you how to finish prepping the servers to effect an easy install which we will accomplish in the next post.  I am going to do as much of this with PowerShell in because we will be doing this on multiple servers.  PowerShell scripts are the easiest for ensuring correct, repeatable steps.

This is a multi-part series.  You can see what is coming and review other posts in the series by clicking one of the following links:

Prep the Folder Structure

As you may have noticed when we build the templates, the servers are going to require a certain file structure for the install.  The file structure is for installing the binaries, but also for storing data within SharePoint.  We need to ensure the following folders exist on each server:

  • C:\SharePoint2019\
  • C:\SharePoint2019\Installation
  • C:\SharePoint2019\Data
  • C:\SharePoint2019\SearchIndex (Search Server(s) only)
  • C:\SharePointLogs\
  • C:\SharePointLogs\ULS
  • C:\SPInstall\SP2019

To do this run the following script on each server:

It will create the necessary structure and only add the extra where needed:

Building a SharePoint 2019 MinRole Environment in Microsoft Azure - Prepping SharePoint Servers - Build File Structure           Building a SharePoint 2019 MinRole Environment in Microsoft Azure - Prepping SharePoint Servers - No Search Index

Prepare Install Files

Next, we are going to prep the environment for our installation media.  The intent here is to be able to “slipstream” our installation media.  Slipstreaming is the packaging of installation media along with all of the service packs, updates and if necessary, add-ons.  First, we need to copy the SharePoint ISO onto the server.

Next, we are going to install “AutoSPSourceBuilder”.  This tool allows you to download all of the prerequisites, service packs (if any) and the latest CU\PU patches you wish to install.  It will then write them all to a location of your choosing and prepare them for a slipstream installation.

The servers will need Nuget first to be able to continue.  First, find the latest version.

As of the creation of this post, 2.8.5.208 is the latest version so we will install that one.

Next, install the AutoSPSourceBuilder tool:

The next step has us building our slipstream install. The command I am using will indicate the SP2019 source location, where I want to put the slipstreamed information, where to put the patches (UpdateLocation), the CU to get and to get all the pre-requisites SP2019 requires.  Note, as per the documentation the CU text format in the command should be Month Year (ex. June 2019).

Building a SharePoint 2019 MinRole Environment in Microsoft Azure - Prepping SharePoint Servers - Run AutoSPSourceBuilder

Once complete you will find all the files necessary to install SP2019 to the CU level you selected.  You will find the pre-requisites in the PrerequisiteInstallerFiles folder and the patches in the Updates folder.  You could run the process on each server if you wish, but the easiest method is probably just to copy the files off to each server.

Prepare Web Server for Remote Setup

AutoSPInstaller will utilize Remote PowerShell to install SharePoint from the app server.  But before that can happen we have to configure the webserver for remote connections by PowerShell.

To configure the WFE server run the following PowerShell commands:

To make sure the settings are set up properly run this command on the App server

If it was successful you will receive the following:

Preparing Servers for SharePoint 2019 - Test Remote Installation Config

Next step will be installing SharePoint 2019.

 

Thanks for reading!