The domain join cannot be completed because the SID..

1I recently worked on fixing the following issue on my Windows 2012 R2 Data Center Edition servers in my Hyper-V lab:

The domain join cannot be completed because the SID of the domain you attempted to join was identical to the SID of this machine

Basically, I was trying to join a virtual machine to the domain, which is the clone of domain controller 🙂  Hyper-V helps us to take the vhdx files for re-use and you may also face this issue in your server life. Don’t worry about this. I have found the solution too as follows

You want to go through sysprep again on the machine as follows:

1. Open a command prompt

2. Change the path to  %WINDIR%\system32\sysprep

3. Run: sysprep /oobe /generalize (This will release the current SID). Shows the progress as below:


4. Server will restart automatically.

5. During starting, you have to enter the product key (depends the type of license you use), password etc.

6. The network settings shouldbe checked again and substitute the required IPs

7. Done !! See how I was able to join the domain after these steps 🙂


How useful was this post?

Click on a star to rate it!

Average rating / 5. Vote count:

As you found this post useful...

Follow us on social media!

We are sorry that this post was not useful for you!

Let us improve this post!

3 thoughts on “The domain join cannot be completed because the SID..

  1. Thank you for commands and steps.

    I work in a secure environment so the lab I had this issue did not have internet access. These steps failed without an internet connection. This may be a no brainer, but it wouldn’t be a bad idea to make a Note in your notes.

    I had to grant access to the internet, followed your steps, it worked, then removed access.

    Thanks again.

Leave a Reply

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

Protected by WP Anti Spam