2

I want to join a Windows Server 2016 Datacenter Core (Command-Only) to a domain (Which is also using Windows Server 2016 Datacenter).

Domain name: rsft.net Username (Both servers): Administrator Password (Both servers): Aa1234

I tried some "netdom" commands I found online and also tried to go on with its own "help" command but I get a syntax error or this one:

The syntax of this command is:

NETDOM [ ADD | COMPUTERNAME | HELP | JOIN | MOVE | QUERY | REMOVE |
     MOVENT4BDC | RENAMECOMPUTER | RESET | TRUST | VERIFY | RESETPWD ]


Try "NETDOM HELP" for more information.

Anyone knows the right command or steps?

0
2

You could use the Server Core configuration utility for this.

  1. Type sconfig at the command prompt.
  2. Choose Option 1 (Domain/Workgroup) by typing 1 and press ENTER
  3. Then type D to join a Domain
  4. Type the domain name to join, and a valid user for this domain (domain\user)
  5. Type the user password when prompted.
  6. Reboot when asked.
2
  • 1
    SCONFIG is deprecated in 2016 which means it will go away at some point (cf. docs.microsoft.com/en-us/windows-server/get-started/…). Add-Computer (after Rename-Computer, if necessary) is the better answer. – MikeBaz - MSFT Feb 5 '18 at 4:53
  • @MikeBaz - MSFT Thank you for the point. You are absolutely right, so that i've just upvoted the other answer (and your comment). – krisFR Feb 5 '18 at 16:08
2

Powershell is your friend.

Check out Add-Computer

Add-Computer

1
  • Link only answers are bad, what if link goes down? – FreeSoftwareServers Mar 30 '20 at 0:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.