Configuration error in SharePoint 2013 Product Preparation Tool

Configuration error in SharePoint 2013 Product Preparation Tool

While running the SharePoint 2013 Product Preparation Tool on Windows Server 2012 I got this error: There was an error during installation. The tool was unable to install Application Server Role, Web Server (IIS) Role. […] Application Server Role, Web Server...