Several years ago Steve Syfuhs and I sat down and figured out how to create a new Active Directory forest in Windows Server Core. It was an interesting experience, and even though I later gave rights to that article to the Canadian IT Pro Team (at the time it was Damir Bersinic) when you search Bing.com for the term ‘Create AD Forest Server Core’ my article still comes up first.
I have gotten a bit more adept with the command prompt of late (especially with my diving into Windows PowerShell recently, but even before), so when I had the need to create a new AD Forest for a courseware environment I am building, I decided to revisit this topic, and see what changes I could make.
dcpromo /InstallDNS:yes /NewDomain:forest /NewDomainDNSName:alpineskihouse.com
/DomainNetBIOSName:SKI /ReplicaOrNewDomain:domain /RebootOnCompletion:yes
For the record I had to break up the text into three lines, but obviously this should all be typed onto a single line.
The first time I ran this command it failed. I suspect this is because I had a DHCP address assigned. Before embarking on this trip, I suggest you assign a static IP address to your Server Core box. While it is simpler to do it with the sconfig text-mode configuration menu tool, you can also use the following netsh command:
netsh interface ipv4 set address name=”Local Area Connection” source=static address=172.16.0.10 mask=255.255.0.0 gateway=172.16.0.1
At this point you should be ready to go… remember that with Windows Server 2012 (and R2) once you have the OS installed it is easy to manage it remotely using either PowerShell or the Server Manager console. Just make sure you have the right credentials, and you are good to go!