none
Unable to join domain in Windows Server 2012 R2 CORE with powershell.

    Question

  • Hello,

    I am trying to join my domain with powershell, but there is always an error. Everything is working fine (DNS,DHCP,AD) and I am even able to ping my domain controller, but the message "the domain does not exist or could not be contacted" keeps coming up.

    Here's the command I use : Add-Computer -DomainName domain1.local -credential Administrator@domain1.local

    I then type my administrator password in and the following error comes up :

    + CategoryInfo            : OperationStopped: (2012CORE-19:String) [Add-Computer], InvalidOperationException

    + FullyQualifiedErrorId : FailToJoinDomainFromWorkgroup,Microsoft.Powershell.Commands.AddComputerCommand 

     I've tried everything and nothing seems to be working. I appreciate all the help

    Thanks!

    Tuesday, March 7, 2017 12:11 AM

All replies

  • I'd check that the DC and problem machine both have the address of DC for DNS and no others such as router or public DNS. Also check the \Windows\debug\netsetup.log for errors.

     

     



    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows Server] Datacenter Management

    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.

    Tuesday, March 7, 2017 12:14 AM
  • Thank you for the help. Unfortunately, there's nothing useful in the netsetup.log file. If it is a problem with DNS, then I honestly have no clue what it is because it seems to be working fine.  
    Tuesday, March 7, 2017 12:32 AM
  • Any others you can test with? Is it only the powershell method fails? New DC or existing? An unedited ipconfig /all of both might help.

     

     



    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows Server] Datacenter Management

    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.


    Tuesday, March 7, 2017 12:34 AM
  • After typing ipconfig /all, I noticed that there is a disconnected media (Tunnel Adapter). Could it be the issue?
    Tuesday, March 7, 2017 12:39 AM
  • Probably not. It will be quicker if you can answer all I asked in one reply.

     

     



    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows Server] Datacenter Management

    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.

    Tuesday, March 7, 2017 12:42 AM
  • The power shell method is the only one I tried and the only one I know. Windows server 2012 is in a virtual machine and my DC is the main machine. The DC isn't new.
    Tuesday, March 7, 2017 1:10 AM
  • Still need to unedited ipconfig /all from both.

     

     

     



    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows Server] Datacenter Management

    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.

    Tuesday, March 7, 2017 1:16 AM
  • Hi,

    Was your issue resolved? If you resolved it using our solution, please "mark it as answer" to help other community members find the helpful reply quickly.

    If you resolve it using your own solution, please share your experience and solution here. It will be very beneficial for other community members who have similar questions. If no, please reply and tell us the current situation in order to provide further help.

    Best Regards,

    Wendy


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com

    Tuesday, March 14, 2017 9:29 AM
    Moderator