Powershell – How to join a Windows Server 2016 Datacenter Core to a domain

domainpowershellwindows-command-promptwindows-server-2016

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?

Best Answer

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.