The SharePoint 2013 Product Preparation tool failed with following error message:
There was an error during installation. The tool was unable to install application server Roles, Web Server (IIS) Roles.
By default, the installation process is looking for ServerManagerCMD.exe to execute these task. Verify that the ServerManagerCMD.exe exist in C:\Windows\System32\ folder. The ServerManagerCMD.exe command is available only on servers that are running Windows Server 2008 or Windows Server 2008 R2. The Servermanagercmd.exe command has been deprecated, and is not available in Windows Server 2012. Recommended option is to use Windows PowerShell cmdlets. In Windows Server 2012, ServerManager.exe file exist in C:\Windows\System32\ folder. As a workaround, you can copy the ServerManager.exe to ServerManagerCMD.exe to complete the pre-requisite installation.