Install a Domain Controller under windows server 2012 – Microsoft Active Directory

In a company, a domain controller allows you to manage all your ressources (users, computers) on a repository, the Active Directory.

In this article, we will install a Domain controller under windows server 2012 and attach one computer to the new domain created step by step.

Launch Server Manager dashboard and click on add Role and Features

1_openServerManager

2_AddRolesAndFeaturesWizard

Let the default option of installation type to make the install on a single server

3_InstallationTypeRoleBased

select the current server (or the server you want)

4_ServerSelection

select Active Directory Domain Service role, it will popup features attached to ADDS role (GUI…)

5_ActiveDirectoryDomainService

Group policy feature is selected

6_GroupPolicyFeature

and active directory tools too 😉

7_ActiveDirectoryTools

a screen ADDS explains what is ADDS.

8_ActiveDirectoryDomainServices

Confirm the installation the selection and click install

9_ConfirmationADDSInstall

installation is in progress

10_ADDSProgressInstall

Now, after installing ADDS, you have to promote your server as a domain controller, so a notification on the server manager appears on the top right side.

11_NotificationToPromoteYourDomainController

ADDS configuration wizard appears when clicking on the url “Promote this server to a domain controller ”

Select add a new forest because we install the primary domain controller for the new domain and enter the domain name (here boutougha.company.com)

12_ADDSWizardDeploymentConfiguration

select the compatibility level you want around OS, here we select a windows server 2012 compatibility

13_DomainControllerOption

below, OS you can select if you want to manage older OS

14_FunctionalLevel

a warning appears for delegation

15_WarningOnDelegation

the wizard check the NetBIOS name

16_NetBiosName

the location of repository and log for Active Directory is specified here.

It’s a good practice to use different drive for repository and log as on Database server world 😉

for the demo, I use C: for both.

17_ADDSDBlocation

here you can review all options configured :

18_ReviewOptions

you are able to get the powershell script if you want to batch it on your IT.

19_PowerShellCommandADDS

Oops, our controller domain name is too long, we have to rename it (max 15 caracters 😉

20_NameTooLongError

Return on the NetBIOS name and change it

21_ModifyAdditionalOptions

22_PrerequiseSuccessfully

Now, you see ADDS on the left side and on the main screen

23_ADDSComponent

you can launch the Active Directory Manager through Tools

24_ToolsADDS

Open the Network configuration, to configure a static IP for your domain controller

25_OpenNetworkAndSharingCenter

access to Ethernet properties :

26_ControlPanelPropertiesNetwork

and IPv4 properties to change IP address

27_IPv4

I set for my intranet an IP 192.168.3.1 with a mask to manage 254 computers

28_IPFixed

as you can see the actual domain is boutougha.company.com waw 😉

29_DomainNetwork

We will attach some client computer to our new domain, so go to another computer. (here the client is under windows server 2012 too)

In this client computer, Open Network and Shared Center to modify the IP of a client computer in order to put it on the same subnet

as your Domain Controller (192.168.3.0/8 which means with a  255.255.255.0 Mask).We set ip value to 192.168.3.16. We have also configured our DNS (domain Name Sserver with

the IP address of our Domain controller, that is 192.168.3.1)

30_FixIpClientAndDnsClient

click in the Server manager on Local Server (left side) and on Workgroup to change the domain of your client computer

31_ServerManagerSetClientOnDomain

Click on change button

32_ClickChangeOnSystemProperties

click on domain and set the domain value (here boutougha.company.com) and a popup will appear to put your administrator credentials

33_AttachComputerToDomain

it’s good, your client has joined your domain

34_SuccessonattachADDS