SharePoint Foundation 2013 install error1

Install SharePoint Foundation 2013 on Windows Server 2016 Solution

I just performed my first SharePoint Foundation 2013 install on a Windows 2016 Server; and it was way more complex than I would have imagined.  I’ve put the steps below if any one else runs into issues and also so I can remember how to repeat the install in the future.

This is what worked for me:

1 – Download the SharePoint 2013 SP1 installer

2 – Run the Prerequisites install

3 – The install will eventually give the error message “Application Server Role, Web Server (IIS) Role:  configuration error” part way through:

There is a Microsoft KB article about this here:

But unfortunately the hotfix described on the page will not install on Server 2016 and the scripts also give errors in Server 2016.
I modified the scripts to be compatible with Server 2016 and the ones below should work.

4-When you recieve the error message run Powershell as administrator and run the 3 commands below:

Import-Module ServerManager

Add-WindowsFeature NET-WCF-HTTP-Activation45,NET-WCF-TCP-Activation45,NET-WCF-Pipe-Activation45

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,WAS,WAS-Process-Model,WAS-NET-Environment,WAS-Config-APIs,Web-Lgcy-Scripting,Windows-Identity-Foundation,Server-Media-Foundation,Xps-Viewer

5 – Once you have run these commands in PowerShell, rerun “Install software prerequisits” and it should now complete successfully.


6 – Restart your server
7 – At this point you are probably feeling like you are making progress, but alas, if you run the SharePoint instalerl you will get an error that the .NET Framework 4.5 is not installed. This is due to .NET 4.6 being installed with Server 2016, which is not recognized by SharePoint 2013. This issue is described here:
To work around this you need to extract the installer files from the SharePoint.exe that you downloaded:
sharepoint.exe /extract:C:\SharePointInstaller
8 – Then download a DLL fix from the Microsoft site here:
9 – Unzip the contents and copy the wsssetup.dll file into your c:\SharePointInstaller folder.
(yes, i thought this was a crazy amount of steps as well, they are described in painful detail in the support link in step 7)
10 – Now run setup.exe from your c:\SharePointInstaller folder and it will (finally) finish the regular install steps.

11 Responses to Install SharePoint Foundation 2013 on Windows Server 2016 Solution

  1. Stefan May 19, 2017 at 3:18 am #

    Thank you. Was running into the same issue and your article helped me a lot.

  2. Thomas May 31, 2017 at 6:37 am #

    Hey Roger,
    thanks for the great explanation!!!

    Just in case somebody ran into the same problem i had:
    During the installation process an error occurred and the installation canceled.
    I fixed it by leaving the wsssetup.dll file in the folder c:\SharepointInstaller original and copied the fixed DLL into the folder c:\SharepointInstaller\updates instead, this helped.

  3. Thomas May 31, 2017 at 6:38 am #

    Hey Roger,
    thanks for the great explanation!!!

    Just in case somebody ran into the same problem i had:
    During the installation process an error occurred and the installation canceled.
    I fixed it by leaving the wsssetup.dll file in the folder c:\SharepointInstaller original and copied the fixed DLL into the folder c:\SharepointInstaller\updates instead, this helped.

  4. Tim June 20, 2017 at 3:23 am #

    Hi Roger,

    good article there, however I needed additional steps to install SP 2013 Foundation on a fresh Windows Server 2016.

    The SP Install exe (Sharepoint_2013_Foundation.exe) tries to find and download some of the prereq. components on MS Servers. But they are not there anymore. So you need to download all those components you mentioned 1 by 1 from here: http://jpwaldin.com/blog/?p=236

    Extract the SP Install exe and place those files like shown in that link. Then run

    prerequisiteinstaller.exe /PowerShell:prerequisiteinstallerfiles/Windows6.1-KB2506143-x64.msu /NETFX:prerequisiteinstallerfiles/dotNetFx45_Full_x86_x64.exe /IDFX:prerequisiteinstallerfiles/Windows6.1-KB974405-x64.msu /Sync:prerequisiteinstallerfiles/Synchronization.msi /AppFabric:prerequisiteinstallerfiles/WindowsServerAppFabricSetup_x64.exe /IDFX11:prerequisiteinstallerfiles/MicrosoftIdentityExtensions-64.msi /MSIPCClient:prerequisiteinstallerfiles/setup_msipc_x64.msi /WCFDataServices:prerequisiteinstallerfiles/WcfDataServices.exe /WCFDataServices56:prerequisiteinstallerfiles/WcfDataServices56.exe /KB2671763:prerequisiteinstallerfiles/AppFabric1.1-RTM-KB2671763-x64-ENU.exe

    (I had to leave you sqlncli.msi there, not sure why but the install routine was not able to find the file)

    Now you still can not install SP 2013 on Server 2016, because Server 2016 comes with .NET 4.6. SP 2013 only runs on .NET 4.5 tho. Luckly (!!!) theres a fix for this from MS: https://support.microsoft.com/en-us/help/3087184/sharepoint-2013-or-project-server-2013-setup-error-if-the-.net-framework-4.6-is-installed

    You need a file called “wsssetup.dll” to place in the extracted SP Install exe (in the “updates” dir). Then run setup.exe from the extracted SP Install exe and SP 2013 installs even with .NET 4.6 :).

  5. Sim June 29, 2017 at 3:00 am #

    Hi,

    Great guide, though after I ran the powershell script i still have error running on prerequisite install, open the log last 2 lines are Opened action for user then after that is log.

  6. Anonymous July 20, 2017 at 4:13 pm #

    Thanks for your post! It works for me, but stay the configuration forever configuring… “Configuring Application Server Role, Web Server IIS Role… hours without changes…

  7. Luis July 21, 2017 at 11:16 am #

    Thanks A LOT!!!

  8. mike July 25, 2017 at 4:46 pm #

    thx a lot …

    on my fresh installed server 2016 not all worked fine even with ur tipps BUT ..

    the combination of your tips and the tipss from here (https://gallery.technet.microsoft.com/DownloadInstall-SharePoint-e6df9eb8) made it work finally

  9. Clint July 27, 2017 at 9:11 am #

    Excellent work, Roger. Exactly what I needed to get rolling.

  10. Marek Jansa August 2, 2017 at 7:24 am #

    In Step 4 it failed for me:

    Add-WindowsFeature : The request to add or remove features on the specified server failed.
    Installation of one or more roles, role services, or features failed.
    The source files could not be found.
    Use the “Source” option to specify the location of the files that are required to restore the feature. For more
    information on specifying a source location, see http://go.microsoft.com/fwlink/?LinkId=243077. Error: 0x800f081f
    At line:1 char:1
    + Add-WindowsFeature Net-Framework-Features,Web-Server,Web-WebServer,We …
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : InvalidOperation: (@{Vhd=; Credent…Name=localhost}:PSObject) [Install-WindowsFeature],
    Exception
    + FullyQualifiedErrorId : DISMAPI_Error__Failed_To_Enable_Updates,Microsoft.Windows.ServerManager.Commands.AddWind
    owsFeatureCommand

    Success Restart Needed Exit Code Feature Result
    ——- ————– ——— ————–
    False No Failed {}

    ———–

    So I had to insert Window 2016 DVD (D:\) and add “-Source D:\sources\sXs” at the end of the command:

    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,WAS,WAS-Process-Model,WAS-NET-Environment,WAS-Config-APIs,Web-Lgcy-Scripting,Windows-Identity-Foundation,Server-Media-Foundation,Xps-Viewer -Source D:\sources\sXs

  11. GGV September 26, 2017 at 11:39 am #

    Thank you very match!!!

Leave a Reply

Powered by WordPress. Designed by WooThemes