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 Answers 2

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. Feb 5, 2018 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, 2018 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? Mar 30, 2020 at 0:17

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .