Most of the virtual machines I build are not connected to the internet due to some corporate restrictions my company has enforced. Therefore, I always need to do offline installations of all of my software. Now, I do build a lot of SharePoint farms and by a lot I mean, A LOT. I probably spin off a new farm every two days or so for various purposes, so for me having a repeatable installation process is key. The first thing I did when SharePoint 2016 IT Preview came out on August 24th 2015 was to download all of the prerequisites components and write a PowerShell script that would automatically go and install them offline.
For SharePoint 2016, the prerequisites are almost essentially the same as they were for SharePoint 2013, with one or two differences (e.g. .Net Framework 4.5.2). The following is a list of all of the SharePoint 2016 Prerequisites components you would need to download if you were to do an offline installation. Note, that if your virtual machine is connected to the internet, the prerequisite installer module of the SharePoint 2016 media will automatically take care of downloading and installing the bits for you, so you don’t need to manually download them all.
- SQL Client (SQLnCli.msi)
- Microsoft Identity Extension (MicrosoftIdentityExtensions-64.msi)
- Microsoft Sync Framework 1.0 SP1 (Synchronization.msi)Extract the appropriate file from the ZIP package.
- AppFabric 1.1 (WindowsServerAppFabricSetup_x64.exe)
- Cumulative Update 7 (KB3092423) for Microsoft AppFabric 1.1 for Windows Server (AppFabric-KB3092423-x64-ENU.exe)
- Active Directory Rights Management Services Client 2.1 (setup_msipc_x64.exe)
- Windows Communications Framework Data Services 5.6.0 (WcfDataServices56.exe)
- .NET Framework 4.6 (NDP453-KB2969351-x86-x64-AllOS-ENU.exe)
- Visual C++ 2012 Redistributable Package (vcredist_x64.exe)
- Visual C++ 2015 Redistributable Package (vc_redist.x64.exe)
The way my script works is that it requires you to download all of the prerequisites components listed above and have them placed in a new folder called “prereqs” at the root of the server’s C:\ drive (e.g. C:\prereqs\). Then, making sure the SharePoint 2016 installation media is loaded (and in my case on drive D:), execute the following two lines of PowerShell code:
$SharePoint2016Path = "C:\Prereqs"
Start-Process "D:\PrerequisiteInstaller.exe" –ArgumentList "/SQLNCli:$SharePoint2016Path\sqlncli.msi /IDFX11:$SharePoint2016Path\MicrosoftIdentityExtensions-64.msi /Sync:$SharePoint2016Path\Synchronization.msi /AppFabric:$SharePoint2016Path\WindowsServerAppFabricSetup_x64.exe /MSIPCClient:$SharePoint2016Path\setup_msipc_x64.exe /WCFDataServices56:$SharePoint2016Path\WcfDataServices.exe /DotNetFx:$SharePoint2016Path\NDP453-KB2969351-x86-x64-AllOS-ENU.exe /MSVCRT11:$SharePoint2016Path\vcredist_x64.exe /MSVCRT14:$SharePoint2016Path\vc_redist.x64.exe /KB3092423:$SharePoint2016Path\AppFabric-KB3092423-x64-ENU.exe"
Executing the above lines of PowerShell will automatically launch the SharePoint 2016 Prerequisites installer application:
From there you can simply click Next on the wizard to initiate the installation sequence. Please note that you may be asked to reboot the server once or twice during the installation. After a reboot, the prerequisites installer should automatically continue its execution where it left.
14 thoughts on “Installing the SharePoint 2016 Prerequisites Offline using PowerShell”
If running on Windows Server 2012 R2, please use the following arguments instead:
$SharePoint2016SP1Path = “C:\Prereqs”
Start-Process “D:\PrerequisiteInstaller.exe” –ArgumentList “/SQLNCli:$SharePoint2016SP1Path\sqlncli.msi /IDFX:$SharePoint2016SP1Path\Windows6.1-KB974405-x64.msu /IDFX11:$SharePoint2016SP1Path\MicrosoftIdentityExtensions-64.msi /Sync:$SharePoint2016SP1Path\Synchronization.msi /AppFabric:$SharePoint2016SP1Path\WindowsServerAppFabricSetup_x64.exe /KB3092423:$SharePoint2016SP1Path\AppFabric-KB3092423-x64-ENU.exe /MSIPCClient:$SharePoint2016SP1Path\setup_msipc_x64.exe /WCFDataServices56:$SharePoint2016SP1Path\WcfDataServices56.exe /DotNet452:$SharePoint2016SP1Path\NDP452-KB2901907-x86-x64-AllOS-ENU.exe /MSVCRT11:$SharePoint2016SP1Path\vcredist_x64.exe /KB2898850:$SharePoint2016SP1Path\Windows8.1-KB2898850-x64.msu”
Thank you for the help. I have some questions. How can I add to this script the installation of msodbcsql.msi and Visual C++ 2015 Redistributable Package. Meaning, how can I know the parameters they use? Thank you in advance.
Alex, the parameter you are looking for is /MSVCRT14 . You can obtain a full list of accepted parameters by opening command prompt and go
> prerequisiteinstaller.exe -?
KB3092423 shows at “AppFabric1.1-RTM-KB2671763” instad, please fix.
Fixed in the comments. Thanks
Hi Nik, thank you very much for your work – VERY USEFUL. Also I found that under link to AppFabric1.1-RTM-KB2671763-x64-ENU.exe downloads AppFabric1.1-RTM-KB2671763-x86-ENU.exe.
Good catch. The article and link has been updated. Thanks Dima!
Hey mate, i’ve been trying to execute your script on windows server 2016 evaluation (full release, release a week ago) and no luck, tried everything, it start prerequisite launcher but it says error and it breaks at :
2016-10-03 17:37:44 – Analyzing the following command line argument:
2016-10-03 17:37:44 – /IDFX:c:\prereqs\Windows6.1-KB974405-x64.msu
2016-10-03 17:37:44 – Found the following command line option:
2016-10-03 17:37:44 – IDFX
2016-10-03 17:37:44 – Error: Unrecognized command line option
any idea how can this work on windows server 2016?
Post has been updated to reflect newest version (including .NET 4.6 support). Please try with this package https://download.microsoft.com/download/2/C/6/2C6E1B4A-EBE5-48A6-B225-2D2058A9CEFB/Win8.1AndW2K12R2-KB3134758-x64.msu
I am trying to setup a sharepoint server 2016 on server 2012r2 std edition. have installed the sql server (licence copy) 2014 sp1 . and when i run the prerequisite then am am unable to install Appfabric. thanx in advance
Thank you so much Bro.
i tried many articles, then ended up using your script and it ran as a charm
just to highlight to everyone, in 3rd download “Microsoft Sync Framework 1.0 SP1” don’t forget to Extract the appropriate file from the ZIP package.
thanks alot its really help alot
I’ve beat my head on this for three days now, trying a variety of steps other articles offered. Your article was the only thing that worked for me. Thank you!!