Your best source of information and news about windows, windows vista and software on the internet

Vista ARTICLES TOP 50 Spyware Virus Vista SOFT Vista HELP

Setting up DC roles in Server Core


One of the new features in Windows 2008 is Server Core - the "thin" layer of Windows operating system which bring benefits of:

1) Less resource hungry
2) More secure
3) Easier to manage (Patch management+++)

Yes, it is in a command shell, but still be able to do major and cools stuff, eg:

1) Domain Controller
2) DNS
3) Hyper-V
4) File Services
5) DHCP and more.

Its definately a great deals for branch office deployment.

However, after setting up Server Core, its only a command shell. How are we going to setup a DC?

In this post, we will like to share:

First of all, we will need to configure the IP Address and put in DNS configuration:

netsh int ip show config will show you the existing configuration.

To configure static IP address on an interface:
netsh int ip set address static

eg: netsh int ip set address "Local Area Connection" static 10.10.100.10 255.255.255.0 10.10.100.254 1

To configure DNS server: (let say pointing DNS to HQ DNS server)
set dnsserver "Local Area Connection" static 10.10.10.10 primary

After configure TCP/IP configuration, its the time to install AD.

Since this is Server Core, DCPROMO GUI will not prompt for you. You will need to prepare the answer file.

NOTE: Please ensure you make ness testing before the deployment. In this scenario, we are setting up additional DC (With same forest, domain with existing AD setup. This is a replica).

EG of the answer file


; dcpromo.exe /unattend:C:\AdditionalDC.txt
; You may need to fill in password fields prior to using the unattend file.
; If you leave the values for "Password"
; as "*", then you will be asked for credentials
[DCInstall]
ReplicaDomainDNSName=MyDomain.local
SiteName=Default-First-Site-Name
InstallDNS=No
ConfirmGc=Yes
CreateDNSDelegation=No
UserDomain=MyDomain.local
UserName=MyDomain\administrator
Password=*
DatabasePath="C:\Windows\NTDS"
LogPath="C:\Windows\NTDS"
SYSVOLPath="C:\Windows\SYSVOL"
SafeModeAdminPassword=MyP@ss123
; Run-time flags (optional)
; CriticalReplicationOnly=Yes
; RebootOnCompletion=Yes


Copy After the and before the . Save it into a file, eg: MyUnattend.txt in to the ServerCore C:\

Then you will need to run the following command to setup the additional DC replica in Server Core:

c:\dcpromo /unattend:MyUnattend.txt

You will then see the results. Happy DCing.Popularity: 1%


Written by magakos. Read more great feeds at is source WEBSITE
no comments.
Read more articles on ServerCore and Installation/Upgrade and otherSoftware and Active Directory.

Related articles

No comments

There are still no comments on this article.

Leave your comment...

If you want to leave your comment on this article, simply fill out the next form:




You can use these XHTML tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong> .