Couple of months back while provisioning a SharePoint 2013 farm at a client, I ended up hitting an error during the SharePoint Prerequisite install… wtf!!!
After some further investigation on the script’s error log, I manage to trace the root cause of the error and noticed that it occurred when enabling ASP.net v4.0.30319 during the “Web Server and IIS Role installation…”
The script failed at …“Failed at “C:\Windows\system32\cscript.exe” “C:\Windows\system32\iisext.vbs” /enext “ASP.NET v4.0.30319”
The reason is iisext.vbs (IIS Web Service Extension script) was missing in folder ‘C: \Windows\system32’
In order to get this working, add/enable “IIS 6 Scripting Tools” role service as part of the Web Server role installation via Server Manager -> Add Roles. (See the screenshot below)
Once the role installation is completed, SharePoint prerequisite install can commence.