The installation of terminal server has failed given the error message
Attempt to configure Terminal Server failed with error code 0x80004005. Error HRESULT E_FAIL has been returned from a call to a COM component.
This is usually due to a group policy being applied to the Terminal Server. I have noticed this when installing onto a member server in an SBS 2008 domain.
Solution: Recommend creating a new OU at the root of the forest and calling it “terminal servers”. Move the computer object for this server into this OU. (NB-I would recommend doing this anyway so you can apply “lockdown” group policies to the terminal server(s).). Remove, restart and re-add the terminal services role.