Welcome to TechNet Blogs Sign in | Join | Help
How to Configure a Server Core Domain Controller: Vanilla to First DC in a Forest

Hi All

 

Sometimes you just want a new Domain created quickly for a bit of testing.  Given that Windows 2008 ships with server core, a light footprint version of the OS, it’s ideal for being the domain controller.  As I am fairly inexperienced with Server Core I had to search all over the place to find information on how to go from a vanilla server core build, to a dc running a brand new domain.  I figured out a set of commands that achieve this, so thought I would share them with the world. 

 

Rename Host

Netdom renamecomputer <OldName> /NewName:<NewName>

 

Set IP

netsh int ip set address "Local Area Connection" static 192.168.0.210 255.255.255.0 192.168.0.1 1

 

Set DNS

Netsh interface ipv4 add dnsserver name=”<idxname>” address=<IP Address> index = 1

 

Install DNS Role

start /w ocsetup DNS-Server-Core-Role

 

Create New Domain

dcpromo /unattend:c:\unattend.txt

 

Unattend.txt Contents

[DCINSTALL]
AutoConfigDNS=Yes
DomainNetBiosName=benpdom
NewDomainDNSName=benpdom.com
ReplicaOrNewDomain=Domain
NewDomain=Forest
ForestLevel=3
DomainLevel=3
SafeModeAdminPassword=Password1234
RebootOnSuccess=Yes

 

Another cool Server Core reference can be found on Mark’s blog here:

 

http://blogs.technet.com/mempson/archive/2008/03/19/server-core-quick-reference-guide.aspx

 

Hope this helps

 

Cheers


BenP

 

Posted: Friday, June 20, 2008 8:43 AM by benp

Comments

James O'Neill's blog said:

One of the things I have pointed people to a few times recently&#160; is the Windows Server Core document

# June 25, 2008 4:55 PM

The things that are better left unspoken said:

The Read-only Domain Controller is one of the new and most existing features of Windows Server 2008.

# July 13, 2008 3:55 AM

Randy said:

In my case i have seen that i had to first disable the firewall on the server core, only then could i ping that machine...is that a requirement?

# October 15, 2009 11:44 AM
Leave a Comment

(required) 

(required) 

(optional)

(required) 

  
Enter Code Here: Required

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Page view tracker