Since Windows Server 2012 allowed add/remove of GUI “on the fly” via Uninstall-WindowsFeature/Ininstall-WindowsFeature and their aliases amount of questions “How do I do X in Server Core” decreased drastically as there is now universal lazy man response to this – temporarily add GUI do thing X and remove GUI again. Not always time efficient but effective 🙂
Anyhow almost everything can be done without GUI. Here is your option to perform domain join operation for server core box:
1) Old-school crutch sconfig 🙂 Option (1):
You may see that it actually uses in netdom.exe in the background when it asks for password:
It even suggest you to change computer name in case you forgot do it in advance:
Assuming you entered correct password and DNS/IP settings allow you to locate and reach out domain controller you will receive reboot prompt in the end of this process:
Once restart is performed you can verify the results either via WMIC or PowerShell:
2) Add-Computer commandlet.
3) djoin command. This one allows to perform offline domain join.
There is also related dsadd command but this can only be used to pre-create computer account in domain. This utility will create a computer account in the domain, but will not join the local computer from a workgroup to a domain.