Problem Statement:
Reason:
Actually, Prerequisites installer on SharePoint 2013 tries to execute the executable C:\Windows\System32\ServerManagerCMD.exe but Windows 2012 R2 comes with C:\Windows\System32\ServerManager.exe.
Resolution:
When I run Prerequisite Installer for SharePoint 2013 on Server 2012 R2, it gives following error: "The tool was unable to install Application Server Role, Web Server (IIS) Role"
Reason:
Actually, Prerequisites installer on SharePoint 2013 tries to execute the executable C:\Windows\System32\ServerManagerCMD.exe but Windows 2012 R2 comes with C:\Windows\System32\ServerManager.exe.
Resolution:
You just need to make a copy of ServerManager.exe and rename the copy to ServerManagerCMD.exe and execute Prerequisites Installer.
That's it folks :)
..::Keep on SharePointing::..
..::Keep on SharePointing::..