Back to Lab Listing

Lab Objective:

Learn how to install Active Directory at Windows Server 2012 R2.

At the end of the whole lab, you’ll be able to realize the scenario shown below:

Lab Purpose:

You will learn how to install Active Directory on a network if you want other devices to join into a Domain Controller machine on your LAN.

Lab Tool:

Windows Server 2012 R2 + Windows 10

Lab Topology:

Use two machines either on your home network or on the same virtual network in VMware.

install microsoft active directory

We will be creating the below configurations over this and the next few labs.

install microsoft active directory2

Lab Walkthrough:

Task 1:

Setup a new Windows Server 2012 R2 machine at VMware/VirtualBox.

Task 2:

Set the Administrator password.

Password: Password123!

install microsoft active directory3

install microsoft active directory4

Task 3:

Change the Windows Server name (Hostname) and then set a fixed IP Address.

When a server is installed, the first thing to do is to assign a name and a fixed IP Address so that it is always accessible from every client.

To change the name of the server, proceed as follow:

In the Server Manager – Local Server window click on Computer name:

install microsoft active directory5

Click on ‘Change’.

install microsoft active directory6

install microsoft active directory7

We will rename the Server as DC1 (Domain Controller 1).

Note:

In a company, it may be necessary to have more than one domain controller server. For this reason, we give the name DC (Domain Controller) followed by the number 1.

Tomorrow, we may need to insert another Domain Controller which will take the number 2, etc.

install microsoft active directory8

Confirm the change with ‘OK’ and reboot the server.

install microsoft active directory9

After restarting the server, its name has changed to DC1

Next, we need to assign a fixed IP Address to the server.

Note:

It is very important that a server has always a fixed IP Address.

To change the IP Address of the server, proceed as follows:

In the Server Manager – Local Server window click on IPv4 as shown in the image below:

install microsoft active directory10

Double-click on Ethernet0 (if this is the interface connected to the network, check with ‘ipconfig’).

install microsoft active directory11

Click on ‘Details…’.

install microsoft active directory12

Please take note of these values:

install microsoft active directory13

To assign a fixed IP Address, we need to know:

IPv4 Address: 192.168.112.136
IPv4 Subnet Mask: 255.255.255.0
IPv4 Default Gateway: 192.168.112.2
IPv4 DNS Server: 192.168.112.2

 

In our case, our VMware DHCP (Dynamic Host Configuration Protocol) assigned this IP Address to our server through the NAT (Network Address Translation) automatically.

This IP Address is at the moment Dynamic which means that it can change any minute to a new IP Address.

We will also use this IP Address and set it up to our server as fixed.

Close the window and click on ‘Properties’.

install microsoft active directory14

Remove the flag at the Internet Protocol Version 6 (TCP/IPv6) and click on ‘OK’.

install microsoft active directory15

Select Internet Protocol Version 4 (TCP/IPv4) and click on ‘Properties’.

install microsoft active directory16

install microsoft active directory17

Click on ‘Use the following IP address:’ and insert the values we got before like the image shown below:

install microsoft active directory18

Finally, click on ‘OK’.

Click on ‘Close’.

install microsoft active directory19

The system has still not acquired the IP Address settings. We need to ‘Disable this network device’ and then Re Enable it again to make the changes work.

install microsoft active directory20

install microsoft active directory21

Now click on ‘Enable this network device’ to apply the changes.

install microsoft active directory22

As you can see, the Ethernet0 has now changed to a fixed IP Address.

Close the Network window.

Task 4:

Windows Server initial configuration.

Disable IE Enhanced Security Configuration.

install microsoft active directory23

install microsoft active directory24

These settings allow you to browse the Internet without the IE Security block.

Task 5:

Enable Remote Desktop

install microsoft active directory25

Click on ‘Allow remote connections to this computer’.

install microsoft active directory26

Remove the flag to Allow connections only from computers running Remote Desktop with Network Level Authentication (recommended) as shown at the image below.

install microsoft active directory27

Confirm with ‘Apply’ and ‘OK’.

These settings allow you to login remotely to the server through the Remote Desktop Connection.

Click on ‘OK’ again.

Whenever you change something at the Server Manager, you need to refresh the window by clicking the icon shown at the image below so that you can see the changes.

install microsoft active directory28

install microsoft active directory29

You can now login remotely at your server through the Remote Desktop Connection from your Window Client machine. You would need to have an IP address on the remote machine in the same subnet to do this.

install microsoft active directory30

install microsoft active directory31

install microsoft active directory32

Confirm with ‘Yes’ and connect to the server remotely.

install microsoft active directory33

Task 6:

Install Microsoft Updates

install microsoft active directory34

Click on ‘Windows Update – Not configured’ as shown at the image below to configure Windows Update.

install microsoft active directory35

 

Click on ‘Let me choose my settings’.

install microsoft active directory36

 

Select ➔ ‘Download updates but let me choose whether to install them’.

install microsoft active directory37

Flag both Recommended updates and Microsoft Update as shown at the image below.

install microsoft active directory38

Then click on ‘OK’.

The system now starts checking for updates and downloads them.

install microsoft active directory39

install microsoft active directory40

Click on ‘115 important updates are available to install the updates’.

install microsoft active directory41

Click on ‘Install’.

install microsoft active directory42

install microsoft active directory43

We need to reboot our server before we can proceed with the next steps.

Please reboot the server every time you install new updates.

install microsoft active directory44

Task 7:

Setup Windows Firewall

install microsoft active directory45

As you can see from the image above, the Firewall is setup that self the Private is On.

We need to change these settings so that our clients will be able to reach out the server.

Click on ‘Private: On’ as shown below.

install microsoft active directory46

Right now, our Firewall with these settings blocks everything.

install microsoft active directory47

We want to allow our Local Clients to reach out the server and use its resources.

We will also deactivate the Firewall for our Local Network and will let the Public Rules activated.

Click on ‘Turn Windows Firewall on or off’.

install microsoft active directory48

  1. Select ‘Turn off Windows Firewall’ at the Private network settings tab (with these settings we allow the communication between our LAN (Local Area Network)).
  2. Select ‘Notify me when Windows Firewall blocks a new app’ at the Public network settings as shown below (with these settings we get notified whenever the Firewall blocks something then we can decide to allow or deny it and a new firewall rule will be automatically generated).

install microsoft active directory49

Click on ‘OK’.

install microsoft active directory50

Close this window.

Task 8:

Install Active Directory and DNS server roles.

In the Server Manager window, select ➔ Manage ➔ then Add Roles and Features as shown below:

install microsoft active directory51

Click ‘Next’.

install microsoft active directory52

Select ➔ Role-base or feature-based installation ➔ then click on Next as shown below:

install microsoft active directory53

Select a server from the server pool ➔ Click on Next as shown below:

install microsoft active directory54

Flag ➔ Active Directory Domain Services ➔

install microsoft active directory55

Confirm your choice with Add Features ➔

install microsoft active directory56

Do not close the window and flag ➔ DNS Server.

install microsoft active directory57

Click on ➔ Add Features.

install microsoft active directory58

Click on ➔ Next.

install microsoft active directory59

Click on ➔ Don’t select anything here.

install microsoft active directory60

Click on ➔ Next.

install microsoft active directory61

Click on ➔ Next.

install microsoft active directory62

Flag ➔ Restart the destination server automatically if required.

install microsoft active directory63

Click on ➔ Yes.

install microsoft active directory64

Click on ➔ Install.

install microsoft active directory65

The installation process starts. Please wait until the process is completed.

install microsoft active directory66

Click on ➔ Close.

Before we proceed with the promotion of this server to a Domain Controller, we need to setup our DNS Server.

From the Tools Menu Select ➔ DNS.

install microsoft active directory67

We need to setup a Forward and then a Reverse lookup Zone.

Note:

A forward lookup zone is a DNS function that takes a domain name and resolves it to an IP address.

A reverse lookup zone is a DNS function that takes an IP address and resolves it to a domain name.

We first create a forward lookup zone.

Right-click on ➔ Forward Lookup Zone ➔ then select ➔ New Zone…

install microsoft active directory68

install microsoft active directory69

Click on ➔ Next.

Select ➔ Primary zone ➔ then click on Next.

install microsoft active directory70

Insert the Domain Name you want to assign to your server and click on ➔ Next:

install microsoft active directory71

Leave everything as it is like the image shown below and click on ➔ Next.

install microsoft active directory72

Select ➔ Do not allow dynamic updates and click on ➔ Next.

install microsoft active directory73

Click on ➔ Finish.

install microsoft active directory74

You now have a running DNS server which will take the server domain name and resolve it to an IP address.

install microsoft active directory75

Next, we will create Reverse Lookup Zones.

Right-click on ➔ Reverse Lookup Zone ➔ then select ➔ New Zone…

install microsoft active directory76

install microsoft active directory77

Click on ➔ Next.

install microsoft active directory78

Select ➔ Primary zone ➔ then click on ➔ Next.

install microsoft active directory79

Select ➔ IPv4 Reverse Lookup Zone ➔ then click on ➔ Next.

Here, we need only to insert the first 3 octets of the server IP Address:

IPv4 Address:    192.168.112

The wizard automatically creates the Reverse lookup zone name.

install microsoft active directory80

Click on ➔ Next.

install microsoft active directory81

Click on ➔ Next.

install microsoft active directory82

Click on ➔ Next ➔ then click on ➔ Finish.

install microsoft active directory83

install microsoft active directory84

Right-click on ➔ Reverse Lookup Zones ➔ Select the Reverse Zone with your right mouse key ➔ Select All Tasks ➔ then click on ➔ Reload.

install microsoft active directory85

This operation will reload the Reverse Lookup Zone and make it work!

install microsoft active directory86

You can close this window now.

Next, we need to promote this server to a domain controller. Click as shown below:

install microsoft active directory87

install microsoft active directory88

This is our first Domain Controller, and we don’t have a Forest still so we will Add a new forest.

Please select ➔ Add a new forest ➔ Specify the domain information for this operation:

Root domain name:

Note:

If your domain has to end with “lab.local” then this is your forest name.

install microsoft active directory89

Click on ➔
We need to insert a password for the Domain Administrator here:

We will use the same password as before: Password123!

install microsoft active directory90

Click on ➔ Next (ignore any DNS warnings which may appear).

install microsoft active directory91

Click on ➔ Next.

install microsoft active directory92

Click on ➔ Next.

install microsoft active directory93

Click on ➔ Next.

install microsoft active directory94

Ignore these Warnings and click on ➔ Install.

install microsoft active directory95

The server will now reboot and you’ll have a full functionally Domain Controller with a DNS server and the Active Directory installed.

install microsoft active directory96

Please note the login has changed to a Domain Name now:

LAB

And the user Administrator can now login into that Domain Server.

install microsoft active directory97

After you login, you can see from the Server Manager that the server is now part of a Domain.

Newsletter Subscribe

Stay Informed, Stay Inspired: Subscribe for Cutting-Edge IT-Certification Insights

101 Labs Newsletter