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.

42 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:

    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:

    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 #


    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 ( 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 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],
    + FullyQualifiedErrorId : DISMAPI_Error__Failed_To_Enable_Updates,Microsoft.Windows.ServerManager.Commands.AddWind

    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

    • Leslie June 15, 2021 at 5:52 pm #

      Thanks, that worked for me.

  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:

  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:

    This also helped me:
    I added “c:\Program Files\AppFabric 1.1 for Windows Server\PowershellModules” to the PSModulePath entry in the environment variables.

    Good luck

  28. Tony H November 25, 2018 at 6:21 pm #

    Awesome work Roger. Worked exactly as you said.
    Many thanks

  29. Jos Verberkmoes December 15, 2018 at 9:24 am #

    Thanks for the TOP described instructions. All worked fine for me in the end.
    Unfortunately I spend many hours (i.e. reading articles in Google) to get the job done and . But then I found your blog. After that the job has been quickly done.

    Kind regards,
    Jos Verberkmoes
    Distrian BV
    The Netherlands

  30. David January 3, 2019 at 7:36 pm #


    Great explanation, I could actually install, but I have a problem with lists and libraries when adding item or creating folder. Give the following error: “The server can not save the form at this time, please try again later.”

    Has anyone experienced this error?

  31. Leigh Webber February 18, 2019 at 1:25 am #

    After multiple attempts to get the SharePoint 2013 pre-requisites to install on my fresh Windows Server 2016 Essentials box, I simply downloaded SharePoint 2019 from the Microsoft site and ran its prerequisite installer. Worked perfectly. Looks like the 2019 pre-requisites provide everything that SharePoint 2013 needs. And the 2019 pre-req installer ran flawlessly. Well, flawlessly after I uninstalled AppFabric which had been installed while I tried to get the 2013 pre-req to complete.

  32. Peter Issue April 9, 2019 at 5:22 am #

    Thank you for this. I tried it all.
    I had no luck. It still stops with the error IIS: configuration error.
    Tried all the hints and links, nothing helped.

  33. Rob Dixon August 1, 2019 at 5:25 pm #

    Someone give this man a raise! You saved me a bunch of time, and cursing. Very much appreciated.

  34. Marcin August 10, 2019 at 8:28 am #

    Great article. Saved my life. 🙂

  35. Hossam August 26, 2019 at 2:25 pm #

    This’s perfect, thank you so much.

  36. Romain B. November 26, 2019 at 7:46 am #

    Hello, thank you for your Post, I have mix several tips of comment, and website.

    Download Sharepoint 2013 Foundation SP1
    Download Sharepoint 2019 Server

    Download Appfabric 1.1

    Download Appfabric patch

    Start 2019 Prequiries
    Uninstall AppFabric

    Install AppFabric Offline
    Copy AppFabric to C:
    With powershell
    .\WindowsServerAppFabricSetup_x64.exe /i CacheClient,CachingService,CacheAdmin /gac
    if you have problem :

    Install Patch Appfabric
    Install Sharepoint Foundation 2013 SP1
    Extract from Sharepoint.exe
    sharepoint.exe /extract:C:\SharePointInstaller

    Run Setup.exe

    Have a nice day

    If you have problem, reboot, update your 2016.

  37. pradeep February 20, 2020 at 10:08 am #

    I am trying to install SharePoint 2013 prerequisite files on Windows Server 2016. While installing AppFabric, it it throwing an error. “Installation failed”. Any inputs on this please.

  38. Romain B July 7, 2020 at 8:55 am #

    Hello, I find in an old installation of Sharepoint WSSSetup.dll.
    I put it in my repo

    Have a nice day and thank you for your Share

  39. Sunny March 4, 2021 at 6:29 am #

    yes, its work, But my question is if we install the SharePoint 2013 in window server 2016 then by default ApI in not working.




    Can any one Help me for this matter.

  40. Marcus Hammer June 24, 2021 at 11:05 am #


    I got it installed. When I am trying to create the inital Sharepoint Configuration Wizard it throws following SPException

    Failed to create the configuration database.
    This is a critical task. You have to fix the failures before you can continue.
    An exception of type Microsoft.SharePoint.SPException was thrown. Additional exception information: There is no file with URL ‘_catalogs/masterpage/minimal.master’ in this Web.

    Any help or idea ?

    • MasterMind August 12, 2021 at 8:37 am #


      Have you been able to solve it?

      I just came accross this error and could not find any solution so far.


Leave a Reply

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

Powered by WordPress. Designed by WooThemes