When I try to install Sharepoint 2013 on a new Windows 2012 R2 server, I encounter the following error with the Product Preparation Tool:

> 
> Unable to install Application Server Role
> 
> 
> 

[![enter image description here](https://i.stack.imgur.com/zt0dW.jpg)](https://i.stack.imgur.com/zt0dW.jpg)

I followed [a KB article](https://support.microsoft.com/en-us/kb/2765260) of Microsoft but without any result.

**Update:**
I manually installed all prerequisites. They are successfully installed, but the Product Preparation Tool still gives an error:

[![enter image description here](https://i.stack.imgur.com/lhMjs.jpg)](https://i.stack.imgur.com/lhMjs.jpg)