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.

27 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. Sebastian July 20, 2017 at 4:15 pm #

    Thanks! Works for me, but stays hours “configuring Application Server and Role, Web Server (iis) Role forever…
    Shareppoint Fundation 2013 and Windows Server 2016 on Azure… Can you help me to make it work?

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

    Thanks A LOT!!!

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

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

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

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

  12. Omar August 23, 2017 at 5:42 pm #

    how do I extract that exe?

    I’m so confused

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

    Thank you very match!!!

  14. Christian December 6, 2017 at 4:01 am #

    Great Guide, that saved my day 🙂

    If you disable IE enhanced Security on the Server, all the preq downloads still work

  15. Chen January 5, 2018 at 12:55 am #

    Roger U R The best !!!

    Thanks a lot for this great guide.

  16. Jaime Aguiló February 5, 2018 at 1:10 pm #

    Thanks a lot…

  17. Andrew Lockwood March 1, 2018 at 12:22 pm #

    Brilliant! It worked flawlessly for me. Thanks a lot.

  18. Eugene March 11, 2018 at 9:24 am #

    Very useful thank you!

  19. JCH March 29, 2018 at 9:59 pm #

    I think I already gave you HUGE KUDOS for this months ago but ran into the same problem again and you have worked a miracle!!!!

  20. Rudi April 30, 2018 at 1:29 am #

    Thanks for sharing this information, much appreciated !

  21. Rustam May 10, 2018 at 3:49 am #

    good article, thanks

  22. Stephanie May 15, 2018 at 2:26 pm #

    Thank you! This saved me lots of time. I did have to download a different wsssetup.dll from here:
    https://support.microsoft.com/en-us/help/3087184/sharepoint-2013-or-project-server-2013-setup-error-if-the-net-framewor

  23. Poda May 18, 2018 at 9:01 am #

    big thanks

  24. Dariusz August 1, 2018 at 2:31 am #

    Thanks Roger

    You just made this world a bit better and saved a lot of time for me.

  25. David D. August 29, 2018 at 11:57 am #

    I never could get the prerequisites install to finish after the three listed powershell commands. Maybe Microsoft changed something since this how-to was written. Maybe I wasn’t holding my mouth just right. I dunno. Guess I’ll drop back to Server 2012 and see if Foundations 2013 still works there…

  26. David D. August 29, 2018 at 2:02 pm #

    actually, my previous comment isn’t totally accurate. The failure might have been my fault – the 2016 server isn’t completely fresh – earlier this week I had installed WebDeploy on it and copied an existing website onto it. So maybe that threw off the Prerequisites installation somehow.

    I did get Foundations 2013 to install on a fresh and fully patched Server 2012 box, although even that took a little fiddling.

  27. NG October 4, 2018 at 9:53 am #

    Thanks for the detailed instructions.

    I recommend to also go into server manager and disable IE Enhanced security as explained in the solution for: https://community.spiceworks.com/topic/1991530-fixed-sharepoint-2016-never-installs-pre-requisites-properly

    This also helped me: https://blogs.technet.microsoft.com/praveenh/2013/02/21/sharepoint-2013-prerequisites-fails-with-msi-installer-error-code-1603-while-installing-appfabric-1-1/
    I added “c:\Program Files\AppFabric 1.1 for Windows Server\PowershellModules” to the PSModulePath entry in the environment variables.

    Good luck

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Powered by WordPress. Designed by WooThemes