Attempt to configure Terminal Server failed with error code 0x80004005. Error HRESULT E_FAIL has been returned from a call to a COM component.
The error appears after the reboot to install the role and looks like this:
As per this page:
there are properties in the OU that the server belongs to that create a problem with terminal services. It seems as though the terminal services role has been installed correctly, but here's what I do:
remove the terminal services role from the terminal server
create a new OU on the domain controller named "terminal servers":
Then open Group Policy Management and and tell your new OU to "block inheritance" so that it doesn't inherit the other problematic policies that create the problem.
move the server to the new OU
if you reboot here, after removing the inherited group policies, you'll likely be unable to use remote desktop to connect to the future terminal server since remote desktop was enabled by the group policies you just removed.
reinstall the terminal services role on the terminal server.
You'll see that the the terminal services role installs with no problems.