Jump to content


Trust Relationship Error

Recommended Posts

Sometimes the error "The trust relationship between this workstation and the primary domain failed." occurs, and it's usually a pain to fix this. This is why I made a simple HTA application that easily fixes this error without ever leaving your computer!



You need to know the target's "computer name", "local administrator username" and "local administrator password"

You also need a domain user/pass with the rights to join domain.


The ONLY manual work you need to do is change the OU path;

"OU=ExampleSubOU,OU=ExampleOU,DC=contoso,DC=org" to the OU path your company uses.

If you forget to do this, it will fail with the following, ERROR: Domain Name not found!

It only uses this OU path if the computer account does not exist in AD.


This is what the application 1.0 looks like:

Newest version:


Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...