Post

Active Directory: Windows Client Setup

Setting up a Windows 10 Active Directory client.

Active Directory: Windows Client Setup

ISO Download & VM Setup

The Windows 10 Enterprise ISO can be found at: https://www.microsoft.com/en-us/evalcenter/download-windows-10-enterprise

I was having issues trying to set up the Windows 11 Enterprise ISO. Morevoer, Windows 11 requires more RAM and CPU and I am going to be running multiple client VMs, so I just went with Windows 10 to preserve system usage.

Only Pro, Education, and Enterprise editions of Windows 10/11 can be joined to a domain. Active Directory is not supported in Home Editions. https://learn.microsoft.com/en-us/answers/questions/1805776/how-to-join-the-active-directory-on-a-regular-comp

I gave this VM:

2 GB RAM

2 CPUs

50GB Storage

Skip unattended install: checked

If your VM keeps freezing or getting black screens, you may want to increase the RAM.

1

Attach adapter 1 to the cyberlab-ad network

2

Launch the VM

Click install now

3

Accept the license

4

Select Custom Install

5

Select Drive 0

Next

6

Wait for the installation to finish (~10 minutes)

7

You may see this screen when the installation finishes

Stop the VM

8

Remember to change the boot order (Right click the VM from VirtualBox > Settings > System > Motherboard)

The VM should boot from the hard disk

9

Reboot the VM

10

Select your region

12

Select your keyboard layout

12

Click Continue with limited setup

13

You can put any name; we are not going to use this account, we are going to use the AD users we created from the previous section

14

Just skim through these

15

Uncheck everything and accept

16

Click not now

17

K

18

IP Configuration

Once Windows boots up, log in as the temporary user

Right click on the internet icon on the bottom right of the screen

Open Network and Internet Settings > Change Adapter Options

Right click Ethernet > Properties > Double Click IPv4 Properties

I gave this VM the IP 10.10.2.10/24

Set the preferred DNS to 10.10.1.10 (Domain Controller)

and the alternate DNS to 10.10.2.1 (default gateway/ OPNsense)

Click OK

19

Open command prompt and try pinging the DC, the gateway, and a DNS server

All the pings should work

This VM needs to be able to communicate with the DC in order to join the domain

20

Joining the Domain

Go to Settings > Accounts > Access work or school

Click on connect

21

Click on Join this device to a local Active Directory domain

22

Enter the domain name (cyber.lab)

23

Enter the credentials of a regular user (not the admin)

I am using Bob’s credentials

24

If you cannot join the domain but can ping the DC, make sure the account is enabled. On the DC VM, head to AD Users and Computers and right click on the user. If you see “Disable Account” as an option, that means the account is enabled.

25

Set the account type to Standard User

Next

26

Restart now

27

Log in as the user

28

On the DC VM, head to Tools > AD Users and Computers > Computers

Notice this new desktop

You can edit the description and add the full name of the user’s desktop, but I am going to change the name of the client computer

29

On the Windows 10 VM, head to Settings > System > About

Click on Rename this PC

I renamed Bob’s computer to Bob-Workstation

30

I have repeated the same previous steps and created another Windows 10 VM for Alice, with the IP of 10.10.2.11 and the computer name Alice-Workstation

Connectivity Test

Our DC acts a DNS server and can resolve the computer name to an IP address.

Windows 10/11 hosts block pings by default, but notice that when I ping Bob-Workstation, it says it is pinging 10.10.2.10.

31

From the client VM, we can ping cyber.lab and it tells us that the IP is 10.10.1.10 (the DC).

32

Running ipconfig from Bob’s workstation

33

Running ipconfig from Alice’s workstation

34

On the DC VM, head to AD users and computers

Notice the 2 clients appear (and Alice-Workstation is changed to ALICE-WORKSTATI because of NetBIOS)

35

We can also ping the clients using their computer/NetBIOS name.

36

Next: Wazuh Setup

This post is licensed under CC BY 4.0 by the author.