Chitika

Monday, November 8, 2010

How to install Active directory on windows 2008 Server Core?

Server Core can host a few roles. One of these roles can be the Active Directory Directory Services (AD DS) role, where the server will act as a Domain Controller for an Active Directory domain. This Domain Controller (or DC for short) can be used as one of the following DC scenarios:
  • The first DC in a new Active Directory Domain, inside a new Active Directory Forest
  • An additional (replica) DC in an existing Active Directory Domain
  • A Read Only DC (RODC) in an existing Active Directory Domain, in case you already have at least one regular DC running Windows Server 2008 in that domain
  • The first DC in a new Active Directory Domain (child domain), under an existing Active Directory Tree, inside an existing Active Directory Forest
  • The first DC in a new Active Directory Domain, as a new Active Directory Tree, inside an existing Active Directory Forest
So, now let's go to the business of actually installing the role. In order to install Active Directory DS on your server core machine you will need to perform the following tasks:
  1. Configure an unattend text file, containing the instructions for the DCPROMO process
  2. Configure the right server core settings + meet the DCPROMO requirements
  3. Copy that file to the server core machine
  4. Run the DCPROMO process with the unattend file
  5. Reboot the computer

Configure an unattend text file

First, let's create the unattend, or answer, file. The unattend file is an ASCII text file that provides automated user input for each page of the Active Directory Domain Services Installation Wizard.
One method of creating the unattend file is by editing a sample file you've created before or obtained from other sources (like this website). This is an example of such an Unattend file. In this example you will create an additional DC for a domain called petrilab.local:

Configure the right server core settings

After that you need to make sure the core machine is properly configured.
  1. Perform any configuration setting that you require (tasks such as changing computer name, changing and configure IP address, subnet mask, default gateway, DNS address, firewall settings, configuring remote desktop and so on).
  2. After changing the required server configuration, make sure that for the task of creating it as a DC – you have the following requirements in place
  • A partition formatted with NTFS (you should, it's a server…)
  • A network interface card, configure properly with the right driver
  • A network cable plugged in
  • The right IP address, subnet mask, default gateway
And most importantly, do not forget:
  • The right DNS setting, in most cases, pointing to an existing internal DNS in your corporate network

Copy the unattend file to the server core machine

Now you need to copy the unattend file from wherever you've stored it. You can run it from a network location but I prefer to have it locally on the core machine. You can use the NET USE command on server core to map to a network path and copy the file to the local drive. You can also use a regular server/workstation to graphically access the core's C$ drive (for example) and copy the file to that location.

Run the DCPROMO process

Next you need to manually run DCPROMO. To run the Active Directory Domain Services Installation Wizard in unattended mode, use the following command at a command prompt:

Reboot the machine

In order to reboot the server core machine type the following text in the command prompt and press Enter.

After the server comes back online you'll have yourself a new and shining DC running on a server core machine.

Good Luck

No comments:

Post a Comment