Saturday, 23 July 2016

How to Easily Install Microsoft SharePoint Server 2016 Using PowerShell

Hi,

I will show you about how to install  Easily Install Microsoft SharePoint Server 2016 Using PowerShell.
Below is requirement for installation and pre-requites.

Hardware Requirement

ServerProcessorRAMHard disk
Database Server64-bit, 4 cores8-24 GB80 GB for system drive, 100 GB for second drive and additional drives
SharePoint Server64-bit, 4 cores8-12 GB80 GB for system drive, 80 GB for second drive

Software Requirement

ServerOSInstallation media
Database ServerWindows Server 2012 R2 – with latest updatesSQL Server 2014 with SP1 – x64
SharePoint ServerWindows Server 2012 R2 – with latest updatesSharePoint Server 2016 Preview

Need to mount Microsoft share point 2016 DVD to machine.

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 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.

Windows Shell Script
@ECHO OFF  
Echo SharePoint 2016 - Pre-requisites installation... 
Echo: 
 
Start "SP2016 Prerequisite Installer" /wait /d "" "PrerequisiteInstaller.exe" "/unattendedEcho  -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 
Goto End 
 
:Success 
Echo  -FinishedGoto End 
 
:ErrIns 
Echo  -Another instance of this application is already running. 
Goto End 
 
:ErrIns 
Echo  -Invalid command line parameter. 
Goto End 
 
:ErrCom 
Echo  -A pending restart blocks the installation. You need to run the prerequisites installer again. 
Goto Restart 
:ErrRes 
Echo  -A restart is needed. You need to run the prerequisites installer again. 
Goto Restart 
 
:Restart 
Echo  -The server is restarted in a few seconds if you press a key. Otherwise close the window. 
Echo: 
pause 
shutdown /g 
Exit 
 
:End 
Echo: 
pause
 
 
PowerShell
Write-Host "SharePoint 2016 - Pre-requisites installation..." 
 
Start-Process "SharePoint\PrerequisiteInstaller.exe" -ArgumentList "/unattended" -WindowStyle Minimized -wait 
 
cmd.exe /c pause
 

1 comment:

  1. Thanks for sharing the post.. parents are worlds best person in each lives of individual..they need or must succeed to sustain needs of the family. SharePoint Intranet

    ReplyDelete