Here we will discuss how we can install SharePoint 2016 using PowerShell. We have discussed previously how we can do using setup files. Need to mount Microsoft share point 2016 DVD to a machine.
New to Office 365 SharePoint Online? Get Office 365 Enterprise E3 Subscription & Try out all the features
Create the Service Accounts needed. We have added the following Service Accounts with permissions to the SQL and SharePoint servers.
Member of the Local Administrators group on SharePoint Server and SQL Server.
(Go to Local Users and Groups -> Administrators group Properties -> Add)
Access to the server that runs SQL Server.
Member of the following SQL Server roles:
securityadmin fixed server role
dbcreator fixed server role
Public fixed server role
Prerequisite tools for Offline Installation: You need to configure Roles and Features on Windows Server 2012 R2.
We need to double click on .Bat file and it will start running.
Echo SharePoint 2016 – Pre-requisites installation…
Start “SP2016 Prerequisite Installer” /wait /d “” “PrerequisiteInstaller.exe” “/unattended”
Echo -The installer finished with exit Code: %errorlevel%
if %errorlevel% == 0 goto Success
if %errorlevel% == 1 goto ErrIns
if %errorlevel% == 2 goto ErrCom
if %errorlevel% == 1001 goto ErrPen
if %errorlevel% == 3010 goto ErrRes
Echo -There was an error during installation.
Echo -Please check the log file: %TEMP%\prerequisiteinstaller.<date>.<time>.log
Echo -Another instance of this application is already running.
Echo -Invalid command line parameter.
Echo -A pending restart blocks the installation. You need to run the prerequisites installer again.
Echo -A restart is needed. You need to run the prerequisites installer again.
Echo -The server is restarted in a few seconds if you press a key. Otherwise, close the window.
Write-Host “SharePoint 2016 – Pre-requisites installation…”
Start-Process “SharePoint\PrerequisiteInstaller.exe” -ArgumentList “/unattended” -WindowStyle Minimized -wait
Read some Windows tutorials:
- Windows Server 2016 Installation Step by Step with Screenshots
- How to install Active Directory on Windows server 2016 Step by step?
- How to rename domain name in windows server 2016?
- How to enable wireless in windows server 2016 or windows server 2012 r2?
- How to add a user in active directory in windows server 2016?
- What are the new features in Windows Server 2016?
Hope this will be helpful.
FREE SHAREPOINT 2019 PDF
(Installation & Features)