What Is Active Directory and How Do You Set It Up?
Learn how Active Directory manages users, computers and permissions, then build a working Windows Server domain in your own home lab.

On this page 6 sections ▾
TL;DR
- Active Directory lets businesses centrally manage user accounts, Windows computers, access to resources and settings across a network.
- You can build a practice domain on one computer using two virtual machines and Microsoft’s Windows Server and Windows 11 evaluation editions.
- Practice creating accounts, joining computers to a domain, resetting passwords and applying Group Policy. These are skills you can use in IT support and systems administration.
Active Directory Domain Services (AD DS), commonly called Active Directory or AD, is Microsoft's directory service for managing users, computers and access to resources on a network. It runs on Windows Server and gives IT departments a central place to administer accounts and Windows computers.
Imagine a company with 200 employees and 200 Windows computers. Without a central directory, IT might have to create user accounts individually on each computer. With Active Directory, IT can connect computers to the company's directory by joining them to its domain. Employees can then sign in to authorized computers using their company accounts, while IT manages passwords, access to shared files and company-wide settings centrally.
#How does Active Directory work?
A Windows server running AD DS is called a domain controller. It stores directory information and verifies users' identities when they sign in. The Domain Name System (DNS) helps computers locate domain controllers, which is why properly configured DNS is essential to Active Directory.
The directory has several building blocks that you'll encounter when managing a domain:
- DomainA collection of accounts, computers and other directory objects managed together, such as corp.example.test, the example domain we'll create in this guide.
- Domain controllerA server that authenticates users and maintains a copy of the directory. Companies often run several for redundancy.
- ForestThe highest-level structure in Active Directory. It contains one or more related domains. A small business may have one forest containing a single domain.
- Organizational unit (OU)A container used to organize accounts and computers, assign administrative responsibilities and apply Group Policy. You might have separate OUs for employees, servers and workstations.
- Security groupA collection of accounts used to assign permissions. For example, members of an Accounting group could be granted access to a shared finance folder.
- Group Policy Object (GPO)A collection of settings that administrators can apply to users or Windows computers through Group Policy, such as configuring screen lock behavior.
#What do IT technicians use Active Directory for?
If you work in Windows-based IT support, Active Directory Users and Computers (ADUC) may be one of the administrative tools you use regularly. Depending on your assigned permissions, you could be responsible for:
- Creating accounts for new employees and disabling accounts when employees leave.
- Resetting forgotten passwords and unlocking accounts after failed sign-in attempts.
- Adding users to approved security groups when they need access to shared resources.
- Joining newly deployed computers to the company domain and placing their computer accounts in the appropriate OU.
- Helping investigate sign-in problems, including expired passwords and computers that cannot reach a domain controller.
Systems administrators may also manage domain controllers, DNS, directory replication and Group Policy. If you're preparing for your first IT job, start by learning account and computer management before moving on to maintaining the underlying infrastructure.
#Active Directory vs. Microsoft Entra ID
Microsoft Entra ID (formerly Azure Active Directory) is Microsoft's cloud identity service. Despite its former name, it is not simply Active Directory Domain Services running in the cloud. Many companies use both, particularly when they have traditional Windows infrastructure alongside Microsoft 365 and other cloud applications.
| ● Active Directory (AD DS) | ● Microsoft Entra ID | |
|---|---|---|
| Where it runs | Windows Server | Microsoft-hosted cloud service |
| Typical use | Windows domains and network resources | Microsoft 365, cloud apps and device identities |
| Authentication | Kerberos and NTLM | Modern authentication such as OpenID Connect and SAML |
| Device management | Group Policy | Often paired with Microsoft Intune to manage devices and their settings |
A company can synchronize identities from AD DS to Entra ID, allowing employees to use their company identity for both domain resources and cloud applications. Microsoft also offers a separate managed service called Entra Domain Services for applications that rely on LDAP (a protocol for accessing directory information) or Kerberos (an authentication protocol). In this guide, we'll work with regular AD DS on Windows Server.
Get opnF in your inbox
Tech news for IT professionals that actually teaches you something.
Our promise to you: we'll be conscious about email quality/frequency, and your address will never be shared/sold.
#How to set up an Active Directory home lab
You'll build a small version of a corporate Windows network using two virtual machines (VMs): one running Windows Server as a domain controller and another running Windows 11 as an employee workstation. Both can run on the same physical computer. You don't need to purchase enterprise server hardware.
What you'll need
- Host computerA compatible 64-bit PC with hardware virtualization enabled and support for Hyper-V, preferably 16 GB of RAM or more and roughly 150 GB of free storage for both VMs.
- Virtualization softwareThis walkthrough uses Hyper-V on a Windows 11 Pro or Enterprise host. On Windows Home, use an alternative such as VirtualBox with equivalent virtual networking. Its menus and setup steps will differ.
- Windows Server 2025Download the 180-day evaluation ISO from Microsoft.
- Windows 11Use a licensed Windows 11 Pro or Enterprise installation, or download the 90-day Windows 11 Enterprise evaluation. Windows 11 Home cannot join a traditional AD domain.
For your information
Evaluation software is time-limited and intended for testing. Windows Server Evaluation must be activated over the internet within its first 10 days to avoid automatic shutdown. Complete initial setup, activation and updates before isolating your VMs.
1. Create the virtual machines
On a supported Windows host, search the Start menu for Turn Windows features on or off, enable Hyper-V and restart. Open Hyper-V Manager and select New > Virtual Machine. An ISO is a disk image containing the operating system installer. When creating each VM, choose the corresponding Windows ISO as its installation media. Name the server DC01 (DC stands for domain controller) and the workstation CLIENT01. Use these settings for the two VMs:
| ● DC01 (server) | ● CLIENT01 (workstation) | |
|---|---|---|
| Operating system | Windows Server 2025 Standard Evaluation | Windows 11 Pro or Enterprise |
| VM generation | Generation 2 | Generation 2 |
| RAM | 4 GB | 4 GB or more |
| Virtual processors | 2 | 2 |
| Virtual disk | 60 GB | 64 GB or more |
For the Windows 11 VM, enable Secure Boot and the virtual Trusted Platform Module (TPM) under its Security settings before installation. For the server, choose the Standard Evaluation edition with Desktop Experience, which includes the graphical desktop and Server Manager. During setup, choose the VM's virtual disk, not a physical drive on your host.
Select Hyper-V's Default Switch for each VM before starting Windows setup so both have internet access. Finish setup, activate the evaluation software and install updates. Give the server the computer name DC01 and the workstation the name CLIENT01, then restart them.
2. Create an isolated lab network
In Hyper-V Manager, open Virtual Switch Manager, create a new Private virtual switch and name it AD-Lab. Shut down both VMs, change their network adapters to use AD-Lab instead of Default Switch, then start them. The VMs can communicate with each other, but not with your host or home network over this switch. You can still open either VM by selecting Connect in Hyper-V Manager.
Assign both VMs fixed IP addresses so they can always find each other. In each VM, press Windows + R, enter ncpa.cpl and select OK to open Network Connections. Right-click the Ethernet adapter connected to AD-Lab, select Properties, then select Internet Protocol Version 4 (TCP/IPv4) and click Properties. Choose Use the following IP address and Use the following DNS server addresses, then enter these settings:
| ● DC01 | ● CLIENT01 | |
|---|---|---|
| IP address | 192.168.50.10 | 192.168.50.20 |
| Subnet mask | 255.255.255.0 | 255.255.255.0 |
| Default gateway | Leave blank | Leave blank |
| Preferred DNS server | 192.168.50.10 | 192.168.50.10 |
| Alternate DNS server | Leave blank | Leave blank |
Leave the default gateway blank because these VMs don't need a router to communicate on the same isolated network. Both computers will use DC01 as their DNS server after we install AD DS and DNS in the next step. A public DNS service wouldn't know how to locate your private Active Directory domain.
3. Install Active Directory Domain Services
- Open Server ManagerOn DC01, sign in as the local Administrator and select Manage > Add Roles and Features.
- Select Active Directory Domain ServicesChoose Role-based or feature-based installation, select DC01, tick Active Directory Domain Services and accept the additional management tools. Continue through the wizard and install the role.
- Promote the serverAfter installation finishes, click the notification flag in Server Manager and select Promote this server to a domain controller.
- Create a new forestSelect Add a new forest and enter corp.example.test as the root domain name. This is a fictional domain name for the isolated lab.
- Configure the domain controllerKeep DNS Server and Global Catalog selected. Leave the functional levels at their defaults. These settings determine which domain controller versions are supported and which Active Directory features are available. Set a strong, unique Directory Services Restore Mode (DSRM) password. Store it securely; it is used for directory recovery.
- Complete the installationContinue through the remaining screens, accepting the default database paths and NetBIOS name, CORP. This is the shorter domain name you'll use when signing in. A DNS delegation warning is expected in this standalone lab with no parent DNS infrastructure. Review the prerequisite check, resolve any blocking errors and click Install. The server restarts automatically.
After the restart, sign in as CORP\Administrator using the Administrator password you set when installing Windows Server, not the DSRM password. On the first domain controller, the built-in Administrator account becomes the domain Administrator account. You now have a single-domain forest with its own DNS service. This single-server arrangement is fine for learning, but production deployments need additional planning, redundancy and backups.
4. Create an organizational unit and user
On DC01, open Server Manager > Tools > Active Directory Users and Computers. Expand corp.example.test in the left pane. We'll create a location for employee accounts and a separate location for workstations.
- Create two OUsRight-click corp.example.test, select New > Organizational Unit and name it Employees. Repeat to create another OU called Workstations.
- Create a test accountRight-click Employees and select New > User. Enter a fictional employee name, such as Alex Morgan, and set the user logon name to alex.morgan.
- Set the initial passwordAssign a unique temporary password, select User must change password at next logon and complete the wizard. Leave the account as a standard domain user; it does not need administrative privileges.
5. Join Windows 11 to the domain
On CLIENT01, confirm that the network settings still match the table in step 2 and that the date and time are correct. Sign in as a local administrator and follow these steps:
- Open the domain join settingsOpen Settings > System > About and select Domain or workgroup. In System Properties, open the Computer Name tab and click Change.
- Join the domainUnder Member of, choose Domain and enter corp.example.test. When prompted, supply CORP\Administrator and its password from DC01. Restart the workstation after the confirmation. In a production environment, use an account authorized to join devices rather than a domain administrator account.
- Sign in as an employeeAt the Windows sign-in screen, choose Other user and enter [email protected] and the temporary password. Change the password when prompted.
Back on DC01, refresh Active Directory Users and Computers, open the Computers container and move CLIENT01 to the Workstations OU. You have now joined a Windows PC to your domain and authenticated an ordinary user against your server.
6. Apply a Group Policy
To see central management in action, create a policy restricting access to Control Panel and Windows Settings for the fictional employees. This is only an exercise to demonstrate how policies apply to users, not a recommendation to restrict every computer in a real company.
- Create the policyOn DC01, open Server Manager > Tools > Group Policy Management. Expand your forest and domain, right-click the Employees OU and select Create a GPO in this domain, and Link it here. Name it Lab Settings Restriction.
- Configure the settingRight-click the new policy and select Edit. Navigate to User Configuration > Policies > Administrative Templates > Control Panel. Open Prohibit access to Control Panel and PC settings, choose Enabled and click OK.
- Test the resultWhile signed in as the test user on CLIENT01, open Command Prompt and run
gpupdate /forceto refresh Group Policy. Try opening Settings or Control Panel. If needed, sign out and back in. If the setting still isn't applied, verify that the user account is in the Employees OU and the GPO is linked there.
When you've finished the exercise, disable or remove the GPO link from the Employees OU, run gpupdate /force on CLIENT01 and sign out and back in if needed to confirm access is restored. Notice that the policy was linked to the user's OU, rather than the computer's OU, because it configures user settings.
#What if a computer won't join the domain?
A failed domain join is often a networking, name-resolution or authentication issue. Before reinstalling anything, check these basics:
Domain join troubleshooting
- Both VMs are running and connected to the same private virtual switch.
- Both IP addresses and subnet masks match the example, and CLIENT01 uses DC01's IP address for DNS.
- AD DS and the DNS Server service are running on DC01.
- CLIENT01 is running a domain-join-capable Windows edition, such as Windows 11 Pro or Enterprise.
- The domain name, date and time, and authorized credentials are correct.
#What to practice next
Now that your domain is working, use it to practice the kinds of tasks you'd perform at an IT help desk or as a junior systems administrator:
- Create several fictional employees, organize them by department and create security groups for each department.
- Reset an employee's password in ADUC, then confirm they can sign in with the new password.
- Disable a test account and verify that a new domain sign-in fails while the domain controller is reachable. Re-enable it when finished.
- Create a shared folder on a separate member server if resources allow, assign permissions to a security group and verify that the appropriate test accounts can access it.
- Document the setup and troubleshooting steps you performed, including a diagram of your lab and screenshots of the results.
If you're looking for your first IT position, these exercises give you examples of Windows administration to discuss in an interview. See our entry-level IT jobs guide and homelab projects for your resume for more ideas on turning your lab experience into a resume.
Is Active Directory free?
Can I learn Active Directory on my Windows 11 PC?

Prepare for your first IT role
Study Windows support, networking and troubleshooting with our CompTIA A+ exam preparation. If you want to develop complementary Linux administration skills, our Server Administration level is also available below.
SourcesMicrosoft: AD DS overviewMicrosoft: Directory services comparisonMicrosoft: Windows Server 2025 evaluationMicrosoft: Windows 11 Enterprise evaluationMicrosoft: Install Hyper-VMicrosoft: Virtual switchesMicrosoft: Install AD DSMicrosoft: DNS client settingsMicrosoft: Join a computer to a domainMicrosoft: Group Policy Management
Get opnF in your inbox
Tech news for IT professionals that actually teaches you something.
Our promise to you: we'll be conscious about email quality/frequency, and your address will never be shared/sold.