I am trying to install SharePoint 2013 on a machine where I have Windows Server 2012 R2 OS. When I run the software prerequisites installer, it gives me an error which says that -

"the tool was unable to install application server role web server (iis) role sharepoint 2013"

I have added roles in the server manager on the server. Along with that I have also tried a few options from two three blogs but no success.

One link that I got repeatedly in my search is this. I followed the given steps but got no success.

Please guide me on this.

  • did you install the prerequisites softwares?
    – Marco
    Commented Dec 10, 2014 at 13:09
  • Are you using SP1 media? Was the .net 3.5 role installed sucessfully? (you sometimes need to point it to the Windows ISO)
    – Choggo
    Commented Dec 10, 2014 at 13:10
  • I get this error when I run the install prerequisites option from SharePoint 2013 installation file. Commented Dec 10, 2014 at 13:11
  • 1
    Make sure you are running the SP1 installation (it is required for Windows 2012R2) and try to manually install the .net 3.5 feature before running the prerequisites installer
    – Choggo
    Commented Dec 10, 2014 at 13:14
  • How can I manually install .net 3.5 feature? Please guide me on that. Commented Dec 10, 2014 at 13:16

1 Answer 1


The SP 2013 exe installer needs a file named servermanagercmd.exe, which is not present in the windows server 2012 R2 OS. So we need to rename the file servermanager.exe, to servermanagercmd.exe which is located in windows\system32 directory.

This is what has solved my problem.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.