Emad GabrielThoughts, tips and shortcuts about building software
SharePoint

Error Installing SharePoint 2013 Prerequisites on Windows 2016 or 2012R2 (Error: The tool was unable to install Application Server Role, Web Server (IIS) Role)

When trying to install SP2013 on a windows 2012R2 or 2016 you may get the error : Error: The tool was unable to install Application Server Role, Web Server (IIS) Role

A quick fix might be to go to C:\Windows\System32\ , look for ServerManager.exe, make a copy and name it ServerManagerCMD.exe as this is the file that the SP prereqs is trying to call

Reference: http://www.someshinyobject.com/posts/server-2012-r2-and-sharepoint-2013-the-tool-was-unable-to-install-application-server-role-web/ (archived copy)