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