Configuring a domain controller
In a production environment, it is not recommended to install the domain controller with any of your other server software.
Note
Note that this section is optional. You do not need to configure a domain controller to start using the recipes in this book.
For development and testing purposes (such as ours), however, we will install them on the same machine. Should you want to mimic a production setup, you can create another Windows Server 2008 R2 VM with a different computer name, and follow the steps given:
Launch VMWare Player.
Play SQL2012 VM.
Log in to our VM,
KERRIGAN
.Go to Administrative Tools | Server Manager.
Click on Add roles. This will launch the Add Roles Wizard dialog.
In the Select Server Roles screen, choose Active Directory Domain Services. This action will trigger the display of another window prompting if you want to install required features. Click on Add Required Features.
Click on Next in the Introduction to Active Directory Domain Services window.
Click on Next in the Confirm Installation Selections window.
When done, view the results. Note that you will get a warning because we disabled automatic updates. For our purposes, this is acceptable.
To configure the domain, go to Start and in the textbox type
dcpromo
and press Enter. This will start the Active Directory Domain Services Installation Wizard application.Click on Next on the wizard until you hit the Deployment Configuration window. Select Create a new domain in a new forest.
In the Name the Forest Root Domain window, type
queryworks.local
in the FQDN of the forest root domain textbox.For Forest functional level, select Windows Server 2008 R2 and click on Next.
In the Additional Domain Controller Options window, select DNS server as shown in the following screenshot:
You will receive a warning about the computer having a dynamically assigned IP address. Click on Yes, the computer will use an IP address automatically assigned by a DHCP server. For our purposes, this is acceptable. Note that if this option is chosen, it is assumed that a DHCP server is already available on the network. Otherwise, the server will use an APIPA scheme, or Automatic Private IP Addressing, which does not work well with domain controllers.
Another warning dialog will appear, informing you that delegation for the DNS server cannot be created. Click on Yes to continue.
Accept the default folders for Location for database, log files, and SYSVOL.
Type the password.
Review the Summary of your selections.
Finish the installation process of the wizard. When done, you will be prompted to restart as shown in the following screenshot:
Once the Virtual Machine is back online, you will notice that the login screen no longer shows KERRIGAN\Administrator. It should now show QUERYWORKS\Administrator.