Sunday, January 9, 2011

Attempt to configure Terminal Server failed with error code 0x80004005. Error HRESULT E_FAIL has been returned from a call to a COM component

I've gotten this error twice when installing the terminal services role on a Windows 2008 machine connected to a domain:

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.


3 comments:

Unknown said...

Hey man thanks a bunch for posting this. I was racking my brain trying to figure out what was going on with my TS install.

Compass SMI said...
This comment has been removed by a blog administrator.
eddyshaw9272711 said...

Youre so cool! I dont suppose Ive read anything like this before. So nice to find someone with some authentic ideas on this subject. realy thank you for starting this up. this web site is one thing that's needed on the net, somebody with just a little originality. useful job for bringing one thing new to the web! online casino gambling