Install SharePoint 2013 on Windows Server 2016
I just attempted my first SharePoint Foundation 2013 install on a Windows 2016 Server; and it was not very straight forward. I hope this guides helps.
- 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 Mircrosoft KB article talking about this https://docs.microsoft.com/en-us/sharepoint/troubleshoot/migration-tool/products-preparation-tool-not-progress-past-configuring-application
I found this did not fully help.
I used the following scripts to be compatible with Server 2016 and complete the prerequisities installation.
4. When you prerequisities fails 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.
This will allow the prerequisites to install and setup.
You might think you are making progress but the installer will not work. 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 recognised by SharePoint 2013.
You need to extract the SharePoint installation:
sharepoint.exe /extract:C:\SharePointInstaller
Then you need to download an updated wssetup file and replace the once in the installer.
You will still need to install a couple of pieces of software, but should be able to complete the installation now.
This was originally posted here.
*This post is locked for comments