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.


4 comments:

Chris 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.
joy said...

I accidentally viewed your blog and I was so amazed with your work that it touched the deepness of my heart. It made me sentimental. Thanks for posting.

n8fan.net

www.n8fan.net

Leslie Lim said...

First time I commented in a blog! I really enjoy it. You have an awesome post. Please do more articles like this. I'm gonna come back surely. God bless.

Rica
www.imarksweb.org