The tool was unable to install application server role, web server (IIS) role error in SharePoint 2013

The tool was unable to install application server role, web server (IIS) role error in SharePoint 2013

In this post, we will discuss how to resolve an error The tool was unable to install the application server role, web server (IIS) role which comes while installing SharePoint 2013 rerequisiteInstaller.exe.

When I was trying to install SharePoint 2013, before installing when I run SharePoint 2013 Prerequisites I got the below error.

There was an error during installation.

The tool was unable to install application server role, web server (IIS) role. Check the screenshot below:

The tool was unable to install application server role, web server (IIS) role
The tool was unable to install application server role, web server (IIS) role

Open SharePoint PowerShell command prompt in administrator mode and then run the below command.

Import-Module ServerManager

Add-WindowsFeature NET-WCF-HTTP-Activation45,NET-WCF-TCP-Activation45,NET-WCF-Pipe-Activation45-Source E:\Sources\sxs

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,Application-Server,AS-Web-Support,AS-TCP-Port-Sharing,AS-WAS-Support, AS-HTTP-Activation,AS-TCP-Activation,AS-Named-Pipes,AS-Net-Framework,WAS,WAS-Process-Model,WAS-NET-Environment,WAS-Config-APIs,Web-Lgcy-Scripting,Windows-Identity-Foundation,Server-Media-Foundation,Xps-Viewer -Source E:\Sources\sxs

Here the Source parameter is very important and Here if you have mounted the Windows Server 2012 installation media (ISO) to drive E of the server. Then the path will be E:\Sources\sxs.

You may like following SharePoint migration tutorials

Hope this will help to resolve The tool was unable to install application server role, web server (IIS) role error in SharePoint 2013.

Donwload Hub site pdf

Download SharePoint Online Tutorial PDF FREE!

Get update on Webinars, video tutorials, training courses etc.

>