Well, this has been coming for a while now. I just got really distracted with fun stuff – an Ethical Hacking course + studying for my Security+ certificate. I’ve put off acquiring certs for far to long! They expire, so I’ve had to be strategic. Back on task!
My Windows Server 2025 was running a WordPress site, Sonarr, Radarr, and Jackett but decided I to transition the media services to a headless Ubuntu server to save on resources. I thought I was going to use this VM for an Active Directory lab, but it seemed better to use Windows Server 2022. I feel many companies are still running Window Server 2019/2022 – maybe even older depending on the companies budget.
The configuration:
Windows Server 2022: 192.168.3.2
Windows 10: 192.168.3.3
Domain: homelab.local





The Active Directory Pro website was a tremendous help in this process. After the initial setup and configuration of the static IP/DNS I changed up the naming scheme on the scripts for rolling out the Active Directory information based on data from CSV files.
I then had to step out to my UDM Pro console to configure the domain “homelab.local” and configure a new VLAN for this project. Here is a good writeup at LazyAdmin for understanding the UniFi control plane setup of your domain and fixed IP address.
After that I jumped in to Window Server 2022 and ran the create_ous.ps1 file in the PowerShell ISE. You may have to open it independently – Windows initially opened my PS1 file in Notepad.

I then continued on with running “create_groups” and “create_users” – which took a little bit longer due to the amount of users. Lastly I went in and ensured I had my name setup in the IT Homelab User section.





Now that Windows Server 2022 is configured – I need to fire up the Windows 10 VM in my cluster and configure it to the server. Luckily, I already have a Windows 10/11 VM on standby! The Windows 10 configuration – individual IP and then point at your Active Directory server for the “Preferred DNS server”.

You may have to restart between here – once you return, change the “Member of Domain” to reflect homelab.local. This screenshot is actually incorrect but you can see above the Workgroup box – the correct one to fill in.

Things after this are as I expected. Utilizing my login I created in the Active Directory server earlier I was able to login to the Windows 10 VM.

And then prompted to change my password in accordance with rules configured under my user account.

Now that I am logged in I have confirmed everything is working as intended. So with these two VMs configured I will be able to free explore the administration and configuration of Active Directory, in depth usage of PowerShell and scripting in a Windows environment.
Interestingly enough I got an itch today to tinker with Ansible – I want to try and execute a playbook to configure my Raspberry Pi cluster. I guess I will see how I feel about it tomorrow. Still a lot of Ethical Hacking to do this week!
Leave a Reply