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.

  • Time: 1 to 2 hours
  • Cost: free software, 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

  1. Create each VM in VirtualBox or Hyper-V (see the virtual machine lab guide). Use an internal network called corp for all of them, plus a second NAT adapter on DC01 if you need updates.
  2. 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.
  3. Give DC01 a fixed address on the internal network, such as 192.168.50.10/24, with itself as the DNS server.
  4. 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"
  1. Install the client, set its DNS to 192.168.50.10 and 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-ADDomain returns your domain and dcdiag reports tests passed.
  • On WS01, nslookup corp.lab.example resolves to DC01, whoami shows CORP\username, and gpresult /r lists 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 gpresult to 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

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.