Rebinding a Workstation to a Domain

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

lochlomonder

Colin
Thread Starter
Trusted Advisor
Spam Fighter
Joined
Jul 24, 2015
Messages
3,539
I'm sure domain administrators have seen this infamous message more than once: "The trust relationship between this workstation and the primary domain failed." More often than not, this has required removing the workstation from Active Directory, deleting the associated Computer object, and then re-adding it to the domain. Here's a quicker way to do it:

  1. Log on to the affected machine using the Workstation Administrator account.
  2. Open PowerShell with Administrative privileges.
  3. Enter the following commands:
    1. $credential = Get-Credential (enter the Domain Administrator password when prompted)
    2. Reset-ComputerMachinePassword -Server DC -Credential $credential (replace DC with the name of your closest domain controller)
This will re-bind the workstation to the domain in a couple of steps, instead of having to go through the rigmarole noted in the first paragraph.


Source
 

valis

Moderator
Joined
Sep 24, 2004
Messages
78,234
Thanks, this is very good to know. I see this error waaaay too much and its always a pain.
 

lochlomonder

Colin
Thread Starter
Trusted Advisor
Spam Fighter
Joined
Jul 24, 2015
Messages
3,539
Same here, valis. This was such an easy fix, I thought it would be good to share with fellow administrators on the forum.
 

Triple6

Rob
Retired Moderator
Joined
Dec 26, 2002
Messages
52,933
You don't need to remove the computer from the domain or delete it from AD, just run the Network ID Wizard to re-join it, it also keeps the computer in the correct OU and everything.
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Staff online

Members online

Top