Rejoin computer to domain remotely

From time to time you’ll come across the problem where a system’s machine account in active directory has either become out of sync (Usually due to multiple systems with the same name) or has just been deleted somehow! Telltale signs of this are errors about domain’s being unavailable, and trust relationships failing whenever the system tries to perform any authentication. In these situations you can usually log in as a local administrator, unjoin/rejoin the domain, then reboot and the problem is sorted.

However, this isn’t so easy if you aren’t in front of the system (which is often the case), although it is possible to do:

First you need to locate the IP address of the system (Names will be unreliable if you’ve got multiple systems with the same name!). The best way to find the IP is probably from looking at DHCP leases on your DHCP server. Once you have the IP address, run regedit.exe on another system, then from the file menu select ‘Connect remote registry’. In the following box, connect to \\<IPaddress>. You should then be able to log on to the system as the local admin user (SYSTEMNAME\Administrator), you should then be able to navigate to:

HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server

In this key, look for the ‘fDenyTSConnection’ value, and set this to 0. This should enable remote desktop if it isn’t already, you’ll need to reboot in order to enable this:

shutdown -m \\<IPAddress> -r

Once the system has rebooted, you should be able to remote desktop to it, log in as the local admin user, and rejoin as if you were in front of it. Although if it was a case of multiple systems with the same name, don’t forget to give it a unique name!

I should also point out that if it was a deleted computer account, you could always restore the object in AD, but that’s another story…

9 Comments

  • Tom Ashton commented on January 27, 2009

    This just saved my bacon!!

  • to domain name
  • music making software commented on December 29, 2013

    I love your blog.. very nice colors & theme. Did you design this website yourself or did you hire someone to do it for you?
    Plz reply as I’m looking to design my own blog and would like to know where u got this from.
    thanks a lot

  • how to treat hemorrhoids commented on February 10, 2014

    Howdy! I know this is kinda off topic but I was wondering
    which blog platform are you using for this website? I’m getting sick and tired of
    Wordpress because I’ve had problems with hackers and I’m looking at alternatives for another platform.
    I would be great if you could point me in the direction of a good platform.

  • stop masturbating commented on March 28, 2014

    Awesome blog! Is your theme custom made
    or did you download it from somewhere? A design like yours with a few simple adjustements would really make my blog jump out.
    Please let me know where you got your theme.
    Thanks a lot

  • Despicable Me Minion Rush cheat android commented on August 6, 2014

    Its this contributing factor we made the Despicable Me
    Minion Rush Cheaqts Codes working for your current iphone, ipad, ipod, and android smart systems.
    Frollo (The Hunchback of Notre Dame)One of many scariest
    issues about Choose Claude Frollo is his utter self-righteousness throughout all of his actions.
    While minion rush cheats could also be an enormous amongst males, is it
    a dwarf amongst coverage.

    Here is my web site Despicable Me Minion Rush cheat android

  • eliquid commented on September 27, 2014

    Hi to all, it’s truly a fastidious for me to pay a quick visit this website,
    it consists of precious Information.

  • Zuvor hatte ich man überlegt, dass ich vermutlich schwer neun Riesenkürbisse via den Kindern schnitzen könnte.

  • rablók commented on February 13, 2015

    Excellent weblog right here! Also your website so much up fast!
    What host are you the use of? Can I am getting your affiliate link for your host?
    I wish my site loaded up as quickly as yours lol

Leave a Reply

Your email address will not be published. Required fields are marked *