How to install a SharePoint 2019 farm using PowerShell and AutoSPInstaller (Part 1)
Tags: sharepoint2019, sharepoint, autospinstaller, collaboration
Published: 2018-12-14 14:03:33

---
title: How to install a SharePoint 2019 farm using PowerShell and AutoSPInstaller (Part 1)
published: true
tags: SharePoint 2019,SharePoint,AutoSPInstaller,Collaboration
canonical_url: https://blogit.create.pt/miguelisidoro/2018/12/09/how-to-install-a-sharepoint-2019-farm-using-powershell-and-autospinstaller-part-1/
---

The post [How to install a SharePoint 2019 farm using PowerShell and AutoSPInstaller (Part 1)](https://blogit.create.pt/miguelisidoro/2018/12/09/how-to-install-a-sharepoint-2019-farm-using-powershell-and-autospinstaller-part-1/) appeared first on [Blog IT](https://blogit.create.pt).


The SharePoint world is rapidly moving into the Cloud with SharePoint Online and Office 365, but a new SharePoint Server release was recently announced by Microsoft with improved hybrid support. To learn more about all the new features in SharePoint 2019, click [here.](https://dev.to/mlisidoro/meet-the-new-modern-sharepoint-server-sharepoint-2019-rtm-is-here-2oak)

This post is the first part of a two part series where I will talk about a great way to install SharePoint 2019 in a fully automated way using PowerShell.7

To read the second part, click [here](https://blogit.create.pt/miguelisidoro/2018/12/09/how-to-install-a-sharepoint-2019-farm-using-powershell-and-autospinstaller-part-2/).

# Introduction

Installing a SharePoint farm can be a complex task and the installation process is composed by a series of steps:

- Downloading and installing SharePoint prerequisites
- Downloading and installing the SharePoint binaries
- Downloading and installing the lastest SharePoint updates
- Downloading and installing the required language packs (optional, necessary if you want the SharePoint interface to be presented in a language other than English)
- Configuring the SharePoint farm using SharePoint Products and Configuration Wizard

All the above steps are time consuming and can be error prone if, for example, you miss to download any of the prerequisites.

Fortunately, it is possible to fully automate a SharePoint farm installation using PowerShell by using a script called [AutoSPInstaller](https://autospinstaller.com/). The installation process can be divided in two major steps:

- Downloading the SharePoint installation package
- Installing SharePoint and configuring the SharePoint farm

This process can be used for the following versions of SharePoint:

- SharePoint 2010
- SharePoint 2013
- SharePoint 2016
- SharePoint 2019 (to learn more about all the new features in SharePoint 2019, click [here)](https://dev.to/mlisidoro/meet-the-new-modern-sharepoint-server-sharepoint-2019-rtm-is-here-2oak)

In this post, I will talk about the first part of the process: downloading the SharePoint installation package and I will use SharePoint 2019 as an example.

# Downloading the SharePoint installation package

The download process will be managed by a script called [AutoSPSourceBuilder](https://github.com/brianlala/AutoSPSourceBuilder) that will download the SharePoint installation package and all its dependencies and will create a folder structure ready to be used in [AutoSPInstaller](https://autospinstaller.com/). The [AutoSPSourceBuilder](https://github.com/brianlala/AutoSPSourceBuilder) script will download:

- All SharePoint prerequisites
- The latest SharePoint updates
- If specified. the desired language pack

To download the SharePoint 2019 installation package, follow the steps below:

1 - Download [SharePoint 2019](https://www.microsoft.com/en-us/download/details.aspx?id=57462).

![](https://i2.wp.com/blogit.create.pt/wp-content/uploads/2018/12/SP2019_Download.png?w=696&ssl=1)

2 - Download [AutoSPSourceBuilder](https://github.com/brianlala/AutoSPSourceBuilder). After download, the folder should contain the following structure.

![](https://i0.wp.com/blogit.create.pt/wp-content/uploads/2018/12/AutoSPSourceBuilder_SP2019_Files.png?w=696&ssl=1)

3 - Mount the SharePoint 2019 .iso image.

![](https://i0.wp.com/blogit.create.pt/wp-content/uploads/2018/12/SP2019_Mount.png?w=696&ssl=1)

After mount, the mounted drive will have SharePoint installation files.

![](https://i1.wp.com/blogit.create.pt/wp-content/uploads/2018/12/SP2019_Binaries.png?w=696&ssl=1)

4 - Run the following script in a PowerShell window (run as administrator).

**.\AutoSPSourceBuilder.ps1 -GetPrerequisites $true -SharePointVersion “2019” -Languages “pt-pt”**

This script will download SharePoint 2019 with all prerequisites and (if available) the Portuguese language pack. Change the “Languages” parameter to the Language Pack you want to include in your installation.

The script will start by detecting the SharePoint image that was previously downloaded. If successfully detected, it will extract the SharePoint installation files from the mounted image to the C:\SP\2019 folder.

![](https://i0.wp.com/blogit.create.pt/wp-content/uploads/2018/12/AutoSPSourceBuilder_SP2019_StartDownload.png?w=696&ssl=1)

5 - Once the SharePoint installation files extraction is completed, you will be asked to select the SharePoint update that you want to include on your installation package. Select the latest available package (all SharePoint 2019 updates are cumulative and include all updates contained in the previous updates). At this time, only one update is available.

![](https://i0.wp.com/blogit.create.pt/wp-content/uploads/2018/12/AutoSPSourceBuilder_SP2019_UpdateDownload.png?w=696&ssl=1)

6 - After selecting the update, the script will resume and start downloading the SharePoint prerequisites. the selected language pack and the selected SharePoint update.

To learn all about the process of generating a SharePoint 2019 installation package, click [here](https://blogit.create.pt/miguelisidoro/2018/12/09/how-to-install-a-sharepoint-2019-farm-using-powershell-and-autospinstaller-part-1/).

Happy SharePointing!


The post [How to install a SharePoint 2019 farm using PowerShell and AutoSPInstaller (Part 1)](https://blogit.create.pt/miguelisidoro/2018/12/09/how-to-install-a-sharepoint-2019-farm-using-powershell-and-autospinstaller-part-1/) appeared first on [Blog IT](https://blogit.create.pt).