Resolve “Unable to Install Application Server Role” Issue During SharePoint Setup

SharePoint Server can be installed either in a single server farm or as a multi-server farm. Once the prerequisites for SharePoint are installed, we can install SharePoint Server in the farm. However, recently when I was trying to install the SharePoint pre-requisites in Windows Server 2012 Server, I was faced with a problem - “Tool was unable to install Application Server Role, Web Server (IIS) Role”.


A quick search revealed that it is a common issue and Microsoft has provided a KB article on how to resolve this.

Run the below commands that will add the required Windows features for the pre-requisite installer to continue.

  1. Import-Module ServerManager  
  2. Copy-Item -Path "$($ENV:SystemRoot)\System32\ServerManager.exe" `  
  3.     -Destination "$($ENV:SystemRoot)\System32\ServerManagerCmd.exe" –Force  
  4.   
  5. Add-WindowsFeature NET-WCF-HTTP-Activation45,NET-WCF-TCP-Activation45,NET-WCF-Pipe-Activation45  
  6.    
  7. Add-WindowsFeature Net-Framework-Features,Web-Server,Web-WebServer, `  
  8.     Web-Common-Http,Web-Static-Content,Web-Default-Doc,Web-Dir-Browsing, `  
  9.     Web-Http-Errors,Web-App-Dev,Web-Asp-Net,Web-Net-Ext,Web-ISAPI-Ext, `  
  10.     Web-ISAPI-Filter,Web-Health,Web-Http-Logging,Web-Log-Libraries,Web-Request-Monitor, `  
  11.     Web-Http-Tracing,Web-Security,Web-Basic-Auth,Web-Windows-Auth,Web-Filtering, `  
  12.     Web-Digest-Auth,Web-Performance,Web-Stat-Compression,Web-Dyn-Compression, `  
  13.     Web-Mgmt-Tools,Web-Mgmt-Console,Web-Mgmt-Compat,Web-Metabase,Application-Server, `  
  14.     AS-Web-Support,AS-TCP-Port-Sharing,AS-WAS-Support, AS-HTTP-Activation, `  
  15.     AS-TCP-Activation,AS-Named-Pipes,AS-Net-Framework,WAS,WAS-Process-Model, `  
  16.     WAS-NET-Environment,WAS-Config-APIs,Web-Lgcy-Scripting,Windows-Identity-Foundation, `  
  17.     Server-Media-Foundation,Xps-Viewer  

This has added the required Windows features.


Once the commands are run, restart the computer and run the pre-requisites installer again. This time, it proceeds without any issue.


Summary

Thus, we have seen how to resolve the “Unable to install the Application Server Role” issue that occurs during the run of SharePoint 2013 pre-requisite installer.

Ebook Download
View all
Learn
View all