SharePoint 2019 Pre-Req and Configuration via PowerShell

SharePoint Server 2019 has some small changes to note about the prerequisites as well as the configuration of a farm via PowerShell. For the prerequisites, you’ll want to download the following.

Microsoft Sync Framework Runtime v1.0 SP1

Microsoft SQL Server 2012 SP4 Native Client

Windows Server AppFabric

Microsoft Identity Extensions

WCF Data Services 5.6 Tools

Cumulative Update 7 for Microsoft AppFabric 1.1 for Windows Server

Active Directory Rights Management Services Client 2.1

Microsoft .NET Framework 4.7

Microsoft Visual C++ 2012 Redistributable (x64)

Microsoft Visual C++ 2017 Redistributable (x64)

To install the prerequisites via PowerShell, copy them to a single folder. You’ll want to fix-up the paths in this script, but you’ll need to call the prerequisites installer executable on the SharePoint 2019 ISO. In this particular case, I’ve copied the ISO contents to C:\SharePoint2019 and the prerequisites above to a subfolder called PrerequisiteInstallerFiles.

Start-Process "C:\SharePoint2019\PrerequisiteInstaller.exe" -ArgumentList "/SQLNCli:`"C:\SharePoint2019\PrerequisiteInstallerFiles\sqlncli.msi`" `
/Sync:`"C:\SharePoint2019\PrerequisiteInstallerFiles\Synchronization.msi`" `
/AppFabric:`"C:\SharePoint2019\PrerequisiteInstallerFiles\WindowsServerAppFabricSetup_x64.exe`" `
/IDFX11:`"C:\SharePoint2019\PrerequisiteInstallerFiles\MicrosoftIdentityExtensions-64.msi`" `
/MSIPCClient:`"C:\SharePoint2019\PrerequisiteInstallerFiles\setup_msipc_x64.exe`" `
/KB3092423:`"C:\SharePoint2019\PrerequisiteInstallerFiles\AppFabric-KB3092423-x64-ENU.exe`" `
/WCFDataServices56:`"C:\SharePoint2019\PrerequisiteInstallerFiles\WcfDataServices.exe`" `
/DotNet472:`"C:\SharePoint2019\PrerequisiteInstallerFiles\NDP472-KB4054531-Web.exe`" `
/MSVCRT11:`"C:\SharePoint2019\PrerequisiteInstallerFiles\vcredist_x64.exe`" `

One other thing to note is as SharePoint Custom Help is no longer available, we no longer need to run Install-SPHelpCollection while creating or adding a SharePoint server to the farm. The complete set of commands to create a farm are now:

#New Farm
#New-SPConfigurationDatabase -DatabaseName Config -DatabaseServer SPSQL -AdministrationContentDatabase Admin -FarmCredentials (Get-Credential) -Passphrase (ConvertTo-SecureString "Password1" -AsPlainText -Force) -LocalServerRole Custom
#Join Farm
#Connect-SPConfigurationDatabase -DatabaseName Config -DatabaseServer SPSQL -Passphrase (ConvertTo-SecureString "Password1" -AsPlainText -Force) -LocalServerRole Custom

#New Farm
#New-SPCentralAdministration -Port 8080 -WindowsAuthProvider NTLM
Install-SPFeature -AllExistingFeatures

The above is not the most secure way to set up Central Admin, or does it necessarily include the correct switches for creating or joining your particular farm. Adjust accordingly!