A Windows Server and Active Directory lab
Run a free evaluation copy of Windows Server and a Windows client in virtual machines, so you can practise Active Directory, Group Policy, file services and administration on your own computer.
What you need
Windows Server and Windows client both have evaluation editions that Microsoft provides free for a limited trial period, intended for exactly this kind of learning. You download them from the Microsoft Evaluation Center (search for “Microsoft Evaluation Center”). They are fully featured for the trial and then ask for a licence, so build the lab when you are ready to practise, and rebuild it from a clean snapshot when it expires.
A useful starter lab is two machines: DC01, a Windows Server that becomes the domain controller, and WS01, a Windows client that joins the domain. Add a second server (FS01) later for file services.
Plan memory: DC01 2 to 4 GB, WS01 4 GB, FS01 2 GB, and a few GB for your own computer.
Set it up
- Create each VM in VirtualBox or Hyper-V (see the virtual machine lab guide). Use an internal network called
corpfor all of them, plus a second NAT adapter on DC01 if you need updates. - Install Windows Server on DC01 with the Desktop Experience option so you have a graphical console. Set a strong lab password and write it in your notes.
- Give DC01 a fixed address on the internal network, such as
192.168.50.10/24, with itself as the DNS server. - Rename the computer (
Rename-Computer -NewName DC01 -Restart), then install the role in PowerShell:
Install-WindowsFeature AD-Domain-Services -IncludeManagementTools
Install-ADDSForest -DomainName "corp.lab.example"
- Install the client, set its DNS to
192.168.50.10and join it to the domain (System, Rename this PC, Domain). Sign in as a domain user you created in “Active Directory Users and Computers”.
Check that it works
- On DC01,
Get-ADDomainreturns your domain anddcdiagreports tests passed. - On WS01,
nslookup corp.lab.exampleresolves to DC01,whoamishowsCORP\username, andgpresult /rlists applied policies. - A Group Policy you create (for example a desktop background) applies to a test user after
gpupdate /force.
If the client cannot join, almost every cause is DNS: the client must use the domain controller as its DNS server, not your router.
Practise safely
- Snapshot after each milestone: clean server, domain created, client joined.
- Evaluation systems expire. Do not put real data in them, and keep the lab on an internal network with no route to your real network.
- Use test accounts and passwords you never use anywhere else.
- Do not activate evaluation software with keys from unofficial sources.
Go further
- Create organisational units, users and groups, then delegate a task (such as password resets) to a help desk group.
- Build Group Policy for password rules, drive mapping and software restrictions, and use
gpresultto see why a policy did or did not apply. - Add a file server, share a folder with NTFS and share permissions, and test access as different users.
- Practise recovery: back up and restore Active Directory, and rebuild the lab from your snapshot.
- Compare what you did in PowerShell with the graphical tools, and write the commands as a script.
Courses that use this lab
Other lab guides
- A virtual machine lab on your own computer
- A Linux practice machine
- A network lab with free simulators and virtual routers
- A packet-capture lab with Wireshark and tcpdump
- A network-services lab: DHCP, DNS, proxy, load balancer, time and failover
- A developer workstation: editor, Git, Python and Node
- A container and Kubernetes lab
- A monitoring lab with Prometheus and Grafana
- A security operations (SOC) practice lab
- An isolated security lab for authorised practice
- A cloud lab that cannot surprise you with a bill
- An embedded and microcontroller lab: simulators first, hardware second
- An electronics lab: simulate first, then build on a breadboard
- A Raspberry Pi lab, with or without a Pi
- A home automation lab with Home Assistant and MQTT
- An audio, video, streaming and show-control lab
- A data lab: Python, pandas and Jupyter on your own computer
- A machine learning lab: scikit-learn, notebooks and honest experiments
- An LLM lab: a free local model, embeddings and a test harness
- A TypeScript lab: Node.js, the compiler and a test runner
- A web deployment lab: Git, a free host and environment settings
Software changes quickly. Menu names and version numbers may differ a little from what you see; the ideas and the check at the end of each section stay the same. Always download from the project's own website, and read the licence terms for your situation.