SharePoint Prerequisites
• PowerShell Add-WindowsFeature
• PrerequisiteInstaller.exe
Add-WindowsFeature
The Add-WindowsFeature is a command from the ServerManager PowerShell module that
allows us to add the Roles and Features that SharePoint 2013 Requires before
installation.
Installing:
Run PowerShell like a Administrator and execute the follow script
#Import ServerManager
Import-Module ServerManager
#Add .Net 4.5 features first
Add-WindowsFeature NET-WCF-HTTP-Activation45,NET-WCF-TCP-Activation45,NET-WCF-Pipe-Activation45
#Add the rest of the needed features for the IIS Role
Add-WindowsFeature Net-Framework-Features,Web-Server,Web-WebServer,Web-Common-Http,Web-Static-Content,Web-Default-Doc,Web-Dir-Browsing,Web-Http-Errors,Web-App-Dev,Web-Asp-Net,Web-Net-Ext,Web-ISAPI-Ext,Web-ISAPI-Filter,Web-Health,Web-Http-Logging,Web-Log-Libraries,Web-Request-Monitor,Web-Http-Tracing,Web-Security,Web-Basic-Auth,Web-Windows-Auth,Web-Filtering,Web-Digest-Auth,Web-Performance,Web-Stat-Compression,Web-Dyn-Compression,Web-Mgmt-Tools,Web-Mgmt-Console,Web-Mgmt-Compat,Web-Metabase,Application-Server,AS-Web-Support,AS-TCP-Port-Sharing,AS-WAS-Support, AS-HTTP-Activation,AS-TCP-Activation,AS-Named-Pipes,AS-Net-Framework,WAS,WAS-Process-Model,WAS-NET-Environment,WAS-Config-APIs,Web-Lgcy-Scripting,Windows-Identity-Foundation,Server-Media-Foundation,Xps-Viewer
When you finish installing we must restart our server
Restart-Computer -force
Then section started on the server where sharepoint install features ... in my case
is "SPWFE2013" will powershell and execute the following script
Enter-PSSession SPWFE2013
Ahead we will install the prerequisites using almost the same commands that we have
already used
#Import ServerManager
Import-Module ServerManager
#Add .Net 4.5 features first
Add-WindowsFeature NET-WCF-HTTP-Activation45,NET-WCF-TCP-Activation45,NET-WCF-Pipe-Activation45-Source
#Add the rest of the needed features for the IIS Role
Add-WindowsFeature Net-Framework-Features,Web-Server,Web-WebServer,Web-Common-Http,Web-Static-Content,Web-Default-Doc,Web-Dir-Browsing,Web-Http-Errors,Web-App-Dev,Web-Asp-Net,Web-Net-Ext,Web-ISAPI-Ext,Web-ISAPI-Filter,Web-Health,Web-Http-Logging,Web-Log-Libraries,Web-Request-Monitor,Web-Http-Tracing,Web-Security,Web-Basic-Auth,Web-Windows-Auth,Web-Filtering,Web-Digest-Auth,Web-Performance,Web-Stat-Compression,Web-Dyn-Compression,Web-Mgmt-Tools,Web-Mgmt-Console,Web-Mgmt-Compat,Web-Metabase,Application-Server,AS-Web-Support,AS-TCP-Port-Sharing,AS-WAS-Support, AS-HTTP-Activation,AS-TCP-Activation,AS-Named-Pipes,AS-Net-Framework,WAS,WAS-Process-Model,WAS-NET-Environment,WAS-Config-APIs,Web-Lgcy-Scripting,Windows-Identity-Foundation,Server-Media-Foundation,Xps-Viewer
Now proceed to close section and then restart the web server.
Exit-PSSession
Restart-Computer –ComputerName SPWFE2013
Downloading the Prerequisite files
SharePoint 2013 requires the following Prerequisites to be installed on Windows Server
2012 prior to installing SharePoint 2013. The following is a complete list of
the Prerequisites along with their download links. Please note that .NET 4.5
and Windows Management Framework 3.0 are also prerequisites and have been intentionally
omitted from this list as they are both installed by default on Windows Server
2012.
Obviously you need to download these from the Internet. This is the only portion
of this deep dive that can’t be done offline. You’ll need to copy/save these
into a location accessible to the SharePoint 2013 Prerequisite installer. See
the next section for more details regarding their installation.
• Microsoft SQL Server 2008 R2 SP1 Native Client
http://download.microsoft.com/download/9/1/3/9138773A-505D-43E2-AC08-9A77E1E0490B/1033/x64/sqlncli.msi
• Microsoft Sync Framework Runtime v1.0 SP1 (x64)
http://download.microsoft.com/download/E/0/0/E0060D8F-2354-4871-9596-DC78538799CC/Synchronization.msi
• Windows Server AppFabric
http://download.microsoft.com/download/A/6/7/A678AB47-496B-4907-B3D4-0A2D280A13C0/WindowsServerAppFabricSetup_x64.exe
• Cumulative Update Package 1 for Microsoft AppFabric 1.1 for Windows Server (KB2671763)
http://download.microsoft.com/download/7/B/5/7B51D8D1-20FD-4BF0-87C7-4714F5A1C313/AppFabric1.1-RTM-KB2671763-x64-ENU.exe
(Note: this is the English version. Other languages can be downloaded from http://www.microsoft.com/en-us/download/details.aspx?id=29241
)
• Windows Identity Foundation (KB974405)
http://download.microsoft.com/download/D/7/2/D72FD747-69B6-40B7-875B-C2B40A6B2BDD/Windows6.1-KB974405-x64.msu
• Microsoft Identity Extensions
http://download.microsoft.com/download/0/1/D/01D06854-CA0C-46F1-ADBA-EBF86010DCC6/rtm/MicrosoftIdentityExtensions-64.msi
• Microsoft Information Protection and Control Client
http://download.microsoft.com/download/9/1/D/91DA8796-BE1D-46AF-8489-663AB7811517/setup_msipc_x64.msi
• Microsoft WCF Data Services 5.0
http://download.microsoft.com/download/8/F/9/8F93DBBD-896B-4760-AC81-646F61363A6D/WcfDataServices.exe
Installing the Downloaded Prerequisite files using PrerequisiteInstaller.exe
For a TechNet reference to the PrerequisiteInstaller.exe and its switches, see http://technet.microsoft.com/en-us/library/ff686793.aspx
.
For the purposes of example, let’s assume the following:
• You have the SharePoint 2013 installation media copied locally within Windows Server
2012 at c:\sharepoint2013bits.
• You have copied the downloaded Prerequisite files to the c:\sharepoint2013bits\PrerequisiteInstallerFiles
folder. (See the previous section regarding which files to download)
• As a note – if you have multiple SharePoint 2013 servers to build, you will be
better off placing the SharePoint 2013 installation files on a network share.
In addition, you should also copy the downloaded prerequisite files to the location
specified above within SharePoint 2013 installation media prerequisiteinstallerfiles
directory on said network share. This will make your life easier. Although this
example uses local paths, UNC paths on a network share are fully supported as
long as the logged in user installing the prerequisites has read rights to the
UNC network path location.
Based on the scenario outlined above you can execute the following PowerShell code
(at an elevated prompt, i.e. Run as Administrator) to install the prerequisites.
Make sure the second line is all on one line.
$SharePoint2013Path = "c:\sharepoint2013bits"
Start-Process "$SharePoint2013Path\PrerequisiteInstaller.exe" –ArgumentList "/SQLNCli:$SharePoint2013Path\PrerequisiteInstallerFiles\sqlncli.msi /IDFX:$SharePoint2013Path\PrerequisiteInstallerFiles\Windows6.1-KB974405-x64.msu
/IDFX11:$SharePoint2013Path\PrerequisiteInstallerFiles\MicrosoftIdentityExtensions-64.msi
/Sync:$SharePoint2013Path\PrerequisiteInstallerFiles\Synchronization.msi /AppFabric:$SharePoint2013Path\PrerequisiteInstallerFiles\WindowsServerAppFabricSetup_x64.exe
/KB2671763:$SharePoint2013Path\PrerequisiteInstallerFiles\AppFabric1.1-RTM-KB2671763-x64-ENU.exe
/MSIPCClient:$SharePoint2013Path\PrerequisiteInstallerFiles\setup_msipc_x64.msi
/WCFDataServices:$SharePoint2013Path\PrerequisiteInstallerFiles\WcfDataServices.exe"
When you execute this the Microsoft SharePoint 2013 Products Preparation Tool will
appear. Follow the prompts and your Prerequisites will install.
Note that even if you are installing these Prerequisites on a server that is Online,
using this procedure will be faster due the fact that the Prerequisites are available
locally and don't need to be downloaded.
SharePoint 2013 Setup Configuration
SETUP.EXE has multiple Config files to choose from when installing SharePoint 2013.
Each of these configs is located on the sharepoint installation DVD/ISO in the
following location:
DVD Drive:
\Files\<ConfigName>\Config.xml
There are total of 6 preset configuration files depending on type of installation
Standalone Installation
Setup
SetupSilent
SetupUpdrade
Farm Installation
SetupFarm
SetupFarmSilent
SetupFarmUpgrade
SharePoint 2013 Installation
All the hard work done. Now we can simply and easily install using the Start-Process
command
Formant:
Start-Process “Process Path and file name” –ArgumentsList “Any arguments that are
needed”
In our case:
Start-Process “E:\setup.exe” – ArgumentList “/config C:\Config.xml”
My Config.xml file:
<?xml version="1.0"?>
<Configuration>
<!-- SharePoint Foundation package to be installed -->
<Package Id="sts">
<Setting Id="LAUNCHEDFROMSETUPSTS" Value="Yes" />
</Package>
<!-- SharePoint Server package to be installed -->
<Package Id="spswfe">
<Setting Id="SETUPCALLED" Value= "1"/>
</Package>
<!-- Enter your Key below -->
<PIDKEY Value="****-****-****-****-****" />
<!-- Setup the Display Values -->
<Display
Level="None"
CompletionNotice= "No"
AcceptEula="Yes" />
<!-- Setup Logging options -->
<Logging
Type= "Verbose"
Path="%temp%"
Template="Sharepoint 2013 (*).log” />
<Setting Id="SERVERROLE" Value="APPLICATION"/>
<Setting Id="USINGUIINSTALLMODE" Value="0"/>
<Setting Id="SETUP_REBOOT" Value= "AutoIfNeeded" />
<Setting Id="SETUPTYPE" Value="CLEAN_INSTALL"/>
</Configuration>
We have to wait 10 to 30 minutes, depending on your server, and review the log to
see if the installation finished.
Go to the Windows Explorer window and we put "% temp%" and see the log
of the installation.
Congratulations you installed sharepoint server 2013