Sometimes SharePoint 2013 Prerequisites Wizard failed with the following error:
The tool was unable to install Application Server Role, Web Server (IIS) Role.
In most cases the reason for this error two things:
- Unable to install .NET Framework 3.5
- Or Current SharePoint setup is not compatible with Windows version, for example to install SharePoint 2013 in Windows Server 2012 R2 then you need to have SharePoint Server 2013 with Service Pack 1
To fix the first reason, follow the notes in this post https://fabdulwahab.com/2018/01/11/install-sharepoint-2016-prerequisites-offline-manually/
For the second reason, try the following solution:
Go to C:\windows\System32 folder, find and copy “ServerManager.exe” as “ServerManagerCMD.exe” then run the prerequisite installer for SharePoint again.