Active Directory Domain Services concepts

Nearly every company that runs Windows also runs Active Directory Domain Services (AD DS). Every user and computer account lives there, it checks every sign-in and it decides who can open which file, so when AD is slow everything is slow, and when AD is down nobody can work.

Before you build anything, you need the map: forests, domains, OUs, the global catalog, FSMO roles and functional levels. Then you’ll pick your lab’s domain name, install the AD DS role on DC01 and run Microsoft’s own prerequisite check, so the promotion in Lesson 11 goes smoothly.

TimeYou needBy the end you can
About 45 minutesDC01 from Lesson 9, with its static IPExplain forests, trees, domains, OUs, sites and the global catalog, name the five FSMO roles, choose a safe domain name, install the AD DS role and run the promotion pre-check

What it is, in one line

Active Directory Domain Services is the Windows Server role that keeps users, computers and groups in a central database on domain controllers, and checks who they are each time they sign in or use a resource.

In Simple Words

A school with a central office

Picture a big group of schools. Each school (a domain) keeps its own register of students and teachers, but they all follow one rulebook for what a register entry must contain (the schema), and they all belong to the same group (the forest). Inside each school, classes are split into sections (OUs) so each section head can look after their own class, and every school keeps copies of its register in more than one office (domain controllers), so closing one office doesn’t lose anybody’s name. A few jobs, like adding a new school or changing the rulebook, can only be done by one office in the whole group, and those are the special roles (FSMO roles). The main offices also keep a summary list of everyone in every school so people can find each other quickly, and that’s the global catalog.

Engineer's View

The building blocks of AD DS

Domain controller (DC). This is a server running AD DS that holds a writable copy of the domain’s database (C:\Windows\NTDS\ntds.dit) plus the SYSVOL share with logon scripts and Group Policy files. DCs replicate changes to each other, and any of them can accept a change (multi-master).

Domain. A domain is a boundary for administration and replication, and it has a DNS name like saatlab.internal.

Tree: domains that share a namespace (sales.saatlab.internal). Forest: one or more trees that share a schema, a configuration and a global catalog. The forest is the real security boundary, and a domain isn’t.

Partitions. The database is split into a schema partition (which objects can exist, forest-wide), a configuration partition (sites and services, forest-wide), a domain partition (users, computers, groups) and application partitions such as the DNS zones.

OUs and containers. Organizational units hold objects so you can delegate admin rights and link Group Policy to them. The default Users and Computers folders are containers rather than OUs, which means you can’t link Group Policy to them.

Global catalog (GC). A GC is a DC that also keeps a partial, read-only copy of every object in the forest, which is used for searches and for universal group membership when people sign in.

FSMO roles. These are five jobs that only one DC does at a time. Schema Master and Domain Naming Master exist once per forest, and RID Master, PDC Emulator and Infrastructure Master once per domain. You’ll deal with the PDC Emulator most, since it’s the domain’s time source and handles password changes and lockouts.

Sites map AD onto your physical network so clients use a DC near them (Lesson 31). Functional levels decide which features are switched on. Windows Server 2025 DCs work at the 2016 and 2025 levels, and the 2025 level, which needs every DC on 2025, turns on the 32k database page feature (Lesson 35).

DNS is not optional. Clients find DCs through DNS SRV records like _ldap._tcp.dc._msdcs.saatlab.internal, and most “AD problems” end up being DNS problems.

How it works, step by step

This is how the pieces fit together for a company with two domains and two sites. Your lab will have one domain and one site, which is how most small and medium companies run:

Active Directory Domain Services structure: one forest, two domains with OUs and domain controllers, two sites

You decide four things before you build, and this is the plan for the lab:

DecisionLab choiceWhy
Forest root domain namesaatlab.internalICANN reserved .internal in 2024 for private networks, so it can never clash with a real internet name
NetBIOS nameSAATLABThe short name users see in SAATLAB\ravi; 15 characters or fewer
Functional levelWindows Server 2025Every DC will run 2025; use the highest level all DCs support
First DC and FSMO rolesDC01 holds all five roles; DC02 added in Lesson 13Small environments keep all roles on one well-protected DC

At a company you’d normally use a subdomain of a domain you own, such as ad.yourcompany.com. Never use a name that belongs to someone else, and stay away from single-label names like saatlab and the old .local habit.

Here are the five FSMO roles at a glance:

Active Directory Domain Services FSMO roles: forest-wide and domain-wide

You won’t think about FSMO roles much day to day, but you do need to know where they are, because when a DC holding a role dies certain things stop working (new domains, schema updates, new objects once the RID pool runs out, time sync and lockouts). Lesson 32 covers moving and seizing them.

Hands-on Lab: prepare DC01 for Active Directory Domain Services

Before you run any command, double-check it

Read every command twice before you press Enter. Check the target: the system or account, the IDs, the names and the sizes. These commands are for learning and were tested in our lab, not on your system. At work, run the read-only list commands first, follow your change process, make sure a backup exists, and ask a second person to check anything that changes or deletes data. You run them at your own risk.

Start DC01 and open PowerShell as administrator. You’ll check the server is ready, install the AD DS role (just the program files) and run the same checks the promotion wizard runs, all without changing anything yet.

1Confirm DC01 is ready to be a domain controller

Run this:

[pscustomobject]@{
    Name      = $env:COMPUTERNAME
    IPv4      = (Get-NetIPAddress -InterfaceAlias Ethernet -AddressFamily IPv4).IPAddress
    DHCP      = (Get-NetIPInterface -InterfaceAlias Ethernet -AddressFamily IPv4).Dhcp
    DNS       = (Get-DnsClientServerAddress -InterfaceAlias Ethernet -AddressFamily IPv4).ServerAddresses -join ', '
    TimeZone  = (Get-TimeZone).Id
}

You should see something like this:

Name     : DC01
IPv4     : 10.0.0.10
DHCP     : Disabled
DNS      : 1.1.1.1
TimeZone : India Standard Time

Before promotion, a future DC needs its final name, a static address and the right time zone. DNS still points to 1.1.1.1 for now, and the promotion will install DNS on DC01 and point it at itself.

✅ Checkpoint: DC01 has its name, 10.0.0.10, DHCP Disabled and your time zone.

2Check nobody else uses your domain name

Run this:

Resolve-DnsName saatlab.internal

You should get an error like this, and here that’s good news:

Resolve-DnsName : saatlab.internal : DNS name does not exist
At line:1 char:1
+ Resolve-DnsName saatlab.internal
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ResourceUnavailable: (saatlab.internal:String) [Resolve-DnsName], Win32Exception
    + FullyQualifiedErrorId : DNS_ERROR_RCODE_NAME_ERROR,Microsoft.DnsClient.Commands.ResolveDnsName

Nobody on the internet answers for saatlab.internal, and nobody ever will, since .internal is reserved for private use. At a company, running the same check against your proposed name catches a clash before it becomes permanent.

✅ Checkpoint: saatlab.internal does not exist in public DNS.

3Install the AD DS role

Run this:

Install-WindowsFeature -Name AD-Domain-Services -IncludeManagementTools

You should see something like this:

Success Restart Needed Exit Code      Feature Result
------- -------------- ---------      --------------
True    No             Success        {Active Directory Domain Services, Group P...

All this does is copy the role’s files and tools, so DC01 is not a domain controller yet. -IncludeManagementTools adds Active Directory Users and Computers, Group Policy Management and the PowerShell modules.

✅ Checkpoint: Success is True and Restart Needed is No.

4See what came with the role

Run these one at a time:

Get-WindowsFeature | Where-Object { $_.Installed -and $_.Name -match 'AD|GPMC' } | Select-Object Name, DisplayName
Get-Command -Module ADDSDeployment | Select-Object Name

You should see something like this:

Name                DisplayName
----                -----------
AD-Domain-Services  Active Directory Domain Services
GPMC                Group Policy Management
RSAT-AD-Tools       AD DS and AD LDS Tools
RSAT-AD-PowerShell  Active Directory module for Windows PowerShell
RSAT-ADDS           AD DS Tools
RSAT-AD-AdminCenter Active Directory Administrative Center
RSAT-ADDS-Tools     AD DS Snap-Ins and Command-Line Tools

Name
----
Add-ADDSReadOnlyDomainControllerAccount
Install-ADDSDomain
Install-ADDSDomainController
Install-ADDSForest
Test-ADDSDomainControllerInstallation
Test-ADDSDomainControllerUninstallation
Test-ADDSDomainInstallation
Test-ADDSForestInstallation
Test-ADDSReadOnlyDomainControllerAccountCreation
Uninstall-ADDSDomainController

For every kind of promotion (a new forest, a new domain, an extra DC, a read-only DC) the ADDSDeployment module has an Install command and a matching Test command, and the Test ones run every prerequisite check without changing anything.

✅ Checkpoint: You can see Install-ADDSForest and Test-ADDSForestInstallation.

5Run the promotion pre-check

Run this. It asks twice for a Directory Services Restore Mode (DSRM) password, so pick a strong one and write it down:

Test-ADDSForestInstallation -DomainName saatlab.internal -DomainNetbiosName SAATLAB -InstallDns

You should see something like this:

SafeModeAdministratorPassword: ****************
Confirm SafeModeAdministratorPassword: ****************
WARNING: This computer has at least one physical network adapter that does not have static IP address(es) assigned to
its IP Properties. If both IPv4 and IPv6 are enabled for a network adapter, both IPv4 and IPv6 static IP addresses
should be assigned to both IPv4 and IPv6 Properties of the physical network adapter. Such static IP address(es)
assignment should be done to all the physical network adapters for reliable Domain Name System (DNS) operation.

WARNING: A delegation for this DNS server cannot be created because the authoritative parent zone cannot be found or
it does not run Windows DNS server. If you are integrating with an existing DNS infrastructure, you should manually
create a delegation to this DNS server in the parent zone to ensure reliable name resolution from outside the domain
"saatlab.internal". Otherwise, no action is required.

Message                                    Context                                  RebootRequired Status
-------                                    -------                                  -------------- ------
Operation completed successfully           Test.VerifyDcPromoCore.DCPromo.General.77           False Success
Active Directory Domain Services lab: Test-ADDSForestInstallation finishes with Status Success
Example output, shortened. Your warnings may be worded a little differently.

Status: Success means DC01 can be promoted. Both warnings are normal in a lab: IPv6 is on an automatic address (fine as long as IPv4 is static), and there’s no parent zone to delegate from because .internal isn’t on the internet. You’ll see the same warnings on real promotions, so it helps to know they’re harmless here. The DSRM password belongs to a special local administrator that’s only used when AD is offline for repairs (Lesson 32), so keep it in your password manager.

✅ Checkpoint: Test-ADDSForestInstallation finishes with Status Success. Shut down DC01 and take a snapshot called “AD role installed”.

Break It, Then Fix It

In AD, the two decisions that are hardest to undo are the name and where you run the tools, and you’ll break both on purpose.

1Break it: pick a name someone else owns

Say your company is called Contoso and someone suggests naming the AD domain contoso.com, the same as a real public website. Check what that name already means on the internet:

Run this:

Resolve-DnsName contoso.com -Type A | Select-Object Name, Type, IPAddress

You should see something like this:

Name        Type IPAddress
----        ---- ---------
contoso.com A    20.70.246.20
contoso.com A    20.236.44.162

That name is live on the internet. If your AD domain used it, your DCs would answer for contoso.com inside the office, and staff couldn’t reach the real public website unless someone added DNS records copying it (this is called split-brain DNS). Every new public service would need the same workaround for as long as the domain exists.

Fix it: settle the name before promotion, either a subdomain of a domain your company owns (ad.contoso.com) or a reserved private name like saatlab.internal. You can technically rename a domain later, but it’s so disruptive that almost nobody does.

✅ Checkpoint: You can explain why the lab uses saatlab.internal and not a public name.

2Break it: run the promotion tools on the wrong server

On SRV01, which doesn’t have the AD DS role, run:

Test-ADDSForestInstallation -DomainName saatlab.internal

You’ll get an error like this:

Test-ADDSForestInstallation : The term 'Test-ADDSForestInstallation' is not recognized as the name of a cmdlet,
function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the
path is correct and try again.
At line:1 char:1
+ Test-ADDSForestInstallation -DomainName saatlab.internal
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (Test-ADDSForestInstallation:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
Active Directory Domain Services lab: ADDSDeployment cmdlets not recognized on a server without the role
Example output.

The ADDSDeployment module only exists on machines with the AD DS role installed, so “not recognized” for an AD command nearly always means the role or its tools aren’t there.

To fix it, check first, and if all you want is to manage AD from SRV01, install only the management tools:

Get-WindowsFeature AD-Domain-Services, RSAT-AD-PowerShell | Select-Object Name, InstallState

You should see something like this:

Name               InstallState
----               ------------
AD-Domain-Services    Available
RSAT-AD-PowerShell    Available

Available means it isn’t installed. To manage AD from SRV01 later you’d add only RSAT-AD-PowerShell (the tools), and never the full role on a server that isn’t meant to be a DC. You’ll do that in Lesson 13.

✅ Checkpoint: You saw “not recognized” on SRV01 and confirmed the role isn’t installed there.

This happened at work

The domain named after the website

Fifteen years ago, a growing company named its Active Directory domain after its public website, company.com, because having the same name inside and out seemed tidy.

Inside the office, the domain controllers answered every query for company.com. So when the marketing team moved the website to a cloud host, the rest of the world could open it but staff in the office couldn’t, because the DCs had no idea about the new address.

They fixed it with a DNS record on the DCs pointing www.company.com at the new host, and then another one for the shop, and another for the support portal. Over the years the internal zone piled up dozens of copies of public records, and every website change needed the infrastructure team as well.

The fix they could make: a documented list of public names mirrored internally, checked every month against public DNS. The fix they couldn’t make: renaming the domain, because that would have touched every computer, app and service account.

The lesson: you choose a domain name once and it stays for decades, so spending an hour on it before promotion saves years of workarounds.

Common mistakes and troubleshooting

Mistake or symptomWhat happensWhat to do instead
Naming the domain after a public websiteSplit-brain DNS workarounds foreverUse a subdomain you own (ad.company.com) or a reserved private name
Single-label names (saatlab) or .localProblems with modern clients, certificates and cloud toolsUse a full DNS name with a real or reserved suffix
Promoting with a DHCP addressDNS records and clients break when it changesStatic IPv4 address before promotion
Forgetting the DSRM passwordNo way into Directory Services Restore Mode during recoveryStore it in a password vault, reset it with ntdsutil if needed
Thinking a domain is a security boundaryAdmins of one domain can reach the whole forestThe forest is the boundary; separate forests for true separation
Linking Group Policy to the Users containerNot possible: it’s a container, not an OUCreate OUs and move objects into them (Lesson 12)
Losing track of FSMO role holdersConfusion when a DC failsnetdom query fsmo or Get-ADDomain / Get-ADForest
Only one domain controllerA single failure stops all sign-insAt least two DCs per domain (Lesson 13)
“Test-ADDS… is not recognized”Role or tools not installed on that serverInstall the AD DS role on the future DC, or RSAT tools on admin machines

Interview questions

Click a question to open it. Each one is written the way an interviewer would ask it. Under it you will see why they ask it and one way you could answer, in your own words.

Fresher level

1. How would you explain Active Directory to a friend who has never worked in IT?

Why they ask this: Being able to explain it simply shows you know what Active Directory does and not only its name.

How you might answer: I’d call it Microsoft’s directory service, a bit like a company phone book that also checks your ID at the door. It stores users, computers and groups, checks sign-ins with Kerberos and controls who can open which resources.

It runs on servers called domain controllers and needs DNS to work.

2. People mix up domains, trees and forests. Can you tell me the difference in your own words?

Why they ask this: They’re checking you understand the AD hierarchy, and above all where the real security boundary sits.

How you might answer: A domain is a unit of administration and replication with a DNS name, and a tree is a set of domains sharing one namespace.

A forest is one or more trees sharing a schema, a configuration and a global catalog, and it’s the forest that’s the security boundary, not the domain.

3. A new team member asks why we put users in OUs and also in groups. How would you explain the difference?

Why they ask this: OUs and groups do different jobs, and people who mix them up end up with messy permissions and policies.

How you might answer: I’d say OUs are for managing objects and groups are for giving permissions. You put objects in an OU so you can delegate admin rights and link Group Policy to it.

Groups are what you add to file shares or apps to give access, and while a user lives in one OU, they can be in lots of groups.

2–5 years experience

4. Walk me through the five FSMO roles. Which ones are forest-wide, and which one would you miss first if it went down?

Why they ask this: They want more than memorised names, especially around the PDC Emulator, which is the one users notice first.

How you might answer: The Schema Master and Domain Naming Master are forest-wide, and each domain has its own RID Master, PDC Emulator and Infrastructure Master.

I’d miss the PDC Emulator first, because it’s the domain’s time source and handles password changes and lockouts, so users feel it quickly.

5. Users in a branch office complain sign-ins are slow when the WAN link is busy. How could the global catalog be part of that?

Why they ask this: They want to see you know what the global catalog does and why where you put it matters at sign-in.

How you might answer: A global catalog is a DC holding a partial copy of every object in the forest, used for forest-wide searches and for finding universal group memberships when someone signs in.

If the branch doesn’t have a GC, sign-ins have to go over the WAN to reach one, so I’d make sure every site has its own global catalog.

6. Someone on your team pointed all member servers at a public DNS resolver to speed things up. What would you expect to break, and why?

Why they ask this: Lots of AD problems are really DNS problems, and they want to see you link the two.

How you might answer: Clients and DCs find each other through DNS SRV records, and a public resolver doesn’t have them, so I’d expect failed domain joins, slow sign-ins and broken replication.

I’d point the members back to the domain’s DNS servers and let those forward public names.

Senior level

7. You’re setting up Active Directory for a brand-new company. How would you pick the domain name?

Why they ask this: The AD domain name is very hard to change later, so they want to see you think long term.

How you might answer: I’d use a subdomain of a registered domain the company owns, like ad.company.com, keeping it short and neutral, and never the public website name or a single label.

I’d check the name doesn’t already exist publicly, and write down the decision so the next team knows why we chose it.

8. A manager wants a separate domain for every department. When would you actually create more than one domain or forest?

Why they ask this: They want to know you avoid extra complexity without a clear reason, and that you see the forest as the security boundary.

How you might answer: One domain in one forest is usually enough, and extra domains rarely add much today, since OUs and delegation can handle departments.

I’d only build a separate forest when we need a real security boundary or separate schema control, say an admin forest, or an acquired company while we migrate it.

9. What functional level would you run your domain at, and what usually stops a team from raising it?

Why they ask this: There’s a hard rule behind functional levels, and they want to see you plan DC upgrades around it.

How you might answer: The highest level all our DCs support. Raising it means every DC has to be on that version, so the old DCs get replaced first.

For instance, Windows Server 2025 DCs support the 2016 and 2025 levels, and the 2025 level switches on the 32k page feature.

Quick quiz

Q1. Which is the real security boundary in Active Directory?

  1. The OU
  2. The domain
  3. The forest
Show answer

C — Admins in one domain can affect the whole forest.

Q2. Which FSMO role is the domain’s time source?

  1. RID Master
  2. PDC Emulator
  3. Schema Master
Show answer

B — The PDC Emulator also handles password changes and lockouts.

Q3. Why does the lab use saatlab.internal?

  1. It is shorter
  2. .internal is reserved for private networks, so it can’t clash with a public name
  3. Windows requires it
Show answer

B — ICANN reserved .internal in July 2024.

Q4. What does Test-ADDSForestInstallation change on the server?

  1. It promotes the DC
  2. Nothing; it only checks prerequisites
  3. It installs DNS
Show answer

B — Test commands run the checks without making changes.

Q5. In the work story, what caused years of DNS workarounds?

  1. A failed DC
  2. Naming the AD domain after the public website
  3. Using .internal
Show answer

B — The DCs answered for the public name inside the office.

Quick recap

  • Active Directory Domain Services keeps accounts in ntds.dit on domain controllers and authenticates sign-ins.
  • Forest (security boundary) > trees > domains > OUs; sites map AD to the network.
  • Five FSMO roles: Schema, Domain Naming (forest); RID, PDC Emulator, Infrastructure (domain).
  • The global catalog holds a partial copy of every object in the forest.
  • Lab plan: saatlab.internal, NetBIOS SAATLAB, functional level 2025, all roles on DC01.
  • Install the role first, then run Test-ADDSForestInstallation before you promote.

Next lesson

Lesson 11: Promote the first domain controller → You’ll turn DC01 into the first domain controller of saatlab.internal, then check DNS, SYSVOL, the FSMO roles and the new event logs to prove the domain is healthy.

Further reading: Active Directory Domain Services

If you want to read more about Active Directory Domain Services, Microsoft’s Active Directory Domain Services overview and its page on functional levels explain the ideas in this lesson. The full plan for this course is on the Windows Server Administration course page.

Scroll to Top

This website uses cookies

We use a few cookies to keep this site working. If you allow it, we also use Google Analytics to count visits so we can improve our lessons. You can accept all, deny the optional ones, or choose what to allow.