Promote the first domain controller
-
Phase 0: Before you start
-
Phase 1: The foundation
-
Phase 2: Core administration and security
-
Phase 3: Enterprise infrastructure
-
Phase 4: Troubleshooting step by step
-
Phase 5: Final project and career
With this lesson your lab turns into a real Windows network. You’ll promote domain controller number one, so DC01 becomes the first DC of a brand-new forest, saatlab.internal, with its own DNS server.
The promotion itself is one command and a restart. What matters more is what you check afterwards: the FSMO roles, the DNS zones and SRV records, the SYSVOL and NETLOGON shares and a clean dcdiag, and those are the same checks you’ll run on any DC at work.
| Time | You need | By the end you can |
|---|---|---|
| About 45 minutes | DC01 with the AD DS role installed (Lesson 10) and your DSRM password | Promote the first domain controller of a new forest with PowerShell, then verify FSMO roles, DNS zones, SRV records, SYSVOL and NETLOGON, the DNS forwarder and dcdiag |
What it is, in one line
To promote a domain controller is to turn a member or standalone server into a DC. It gets a copy of the Active Directory database, the SYSVOL share and usually DNS, and it starts answering sign-ins.
In Simple Words
Opening the town’s first records office
A new town needs a records office before anyone can register a birth, a house or a business. On opening day the office gets an empty register, a stamp, a listing on every signpost, and a filing cabinet for the town’s rules.
Promoting DC01 is opening that office. Windows creates the empty register (the AD database), the stamp (the domain’s security keys), the signposts (DNS records pointing to DC01) and the filing cabinet (SYSVOL, where Group Policy and logon scripts live). Once it’s open you go round and check each piece is really there, because a records office with no signposts is one that nobody can find.
Engineer's View
What Install-ADDSForest actually does
Creates the forest and domain. It builds the database at C:\Windows\NTDS\ntds.dit with the schema, configuration and domain partitions, along with the built-in accounts and groups (Administrator, Domain Admins, Enterprise Admins and others). The server’s local accounts go away, because a DC has no local user database, only the domain.
Creates SYSVOL at C:\Windows\SYSVOL and shares it as SYSVOL and NETLOGON. This is where Group Policy files live, and DFS Replication copies them between DCs.
Installs and configures DNS (with -InstallDns).
It creates two AD-integrated zones, saatlab.internal and _msdcs.saatlab.internal, which are stored inside AD and replicate along with it. The DNS servers the machine was using before become forwarders so internet names keep resolving, and DC01’s own DNS client is switched to point at itself.
Registers SRV records. The Netlogon service writes records like _ldap._tcp.dc._msdcs.saatlab.internal so clients can find DCs, and without them nothing can join or sign in.
Holds every FSMO role and the global catalog. The first DC in a forest always does, and you’ll move some roles across when DC02 arrives.
Sets the DSRM password for Directory Services Restore Mode, which is a special local administrator used only when AD is offline for repair.
Restarts. After the restart you sign in as SAATLAB\Administrator with the same password the local Administrator had before promotion.
How it works, step by step
This is the sequence from the command to a healthy DC, and the checks after the restart matter just as much as the promotion:
- Snapshot DC01 so you can cleanly retry if the promotion fails.
- Run Install-ADDSForest with the domain name, the NetBIOS name and -InstallDns, and give it the DSRM password.
- Restart (automatic) and sign in as SAATLAB\Administrator.
- Check the domain and roles: Get-ADDomain, Get-ADForest, netdom query fsmo.
- Check DNS: the zones are there, the SRV records resolve and the forwarder points to the internet.
- Check SYSVOL and NETLOGON are shared.
- Run dcdiag and read every failure line.
This is how DNS looks on DC01 after promotion. Clients ask DC01, and DC01 answers for saatlab.internal itself and forwards everything else:
From here on, every machine in the domain has to use DC01 (and later DC02) as its only DNS servers. Adding a public DNS server as a “backup” is the most common cause of random AD failures, as you’ll see in the Break It lab and the work story.
Hands-on Lab: promote domain controller DC01 and check it
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.
DC01 has been powered off since Lesson 10. Steps 1 and 2 happen on your laptop and DC01, and after the restart you’ll do everything on DC01 in PowerShell as administrator.
1Take a snapshot before promotion
On your laptop:
VBoxManage snapshot DC01 take "Before promotion"
VBoxManage startvm DC01✅ Checkpoint: DC01 has a “Before promotion” snapshot and is starting.
2Promote DC01
Run this on DC01, enter the DSRM password twice and then answer Y:
Install-ADDSForest -DomainName saatlab.internal -DomainNetbiosName SAATLAB -InstallDnsYou should see something like this before DC01 restarts by itself:
SafeModeAdministratorPassword: ****************
Confirm SafeModeAdministratorPassword: ****************
The target server will be configured as a domain controller and restarted when this operation is complete.
Do you want to continue with this operation?
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): Y
WARNING: This computer has at least one physical network adapter that does not have static IP address(es) ...
WARNING: A delegation for this DNS server cannot be created because the authoritative parent zone cannot be found ...A progress bar runs for a few minutes, then DC01 signs you out and restarts. The first start after promotion is slower than usual (“Applying computer settings”), so give it time.
✅ Checkpoint: DC01 restarted on its own after the promotion finished.
3Sign in and check the domain and forest
Press Right Ctrl + Delete. The sign-in screen now shows SAATLAB\Administrator, and the password is the same as before. Open PowerShell as administrator.
Run these one at a time:
Get-ADDomain | Select-Object DNSRoot, NetBIOSName, DomainMode
Get-ADForest | Select-Object Name, ForestMode, GlobalCatalogs
netdom query fsmoYou should see something like this:
DNSRoot NetBIOSName DomainMode
------- ----------- ----------
saatlab.internal SAATLAB Windows2025Domain
Name ForestMode GlobalCatalogs
---- ---------- --------------
saatlab.internal Windows2025Forest {DC01.saatlab.internal}
Schema master DC01.saatlab.internal
Domain naming master DC01.saatlab.internal
PDC DC01.saatlab.internal
RID pool manager DC01.saatlab.internal
Infrastructure master DC01.saatlab.internal
The command completed successfully.
The forest and domain are at the 2025 functional level, DC01 is the only global catalog and it holds all five FSMO roles. Whenever someone asks “where are the roles?” on any domain, netdom query fsmo is the quickest way to answer.
✅ Checkpoint: Get-ADDomain shows saatlab.internal and SAATLAB, and netdom lists DC01 for all five roles.
4Check DNS: zones, SRV records and the forwarder
Run these one at a time:
Get-DnsServerZone | Select-Object ZoneName, ZoneType, IsDsIntegrated
Resolve-DnsName -Type SRV _ldap._tcp.dc._msdcs.saatlab.internal | Select-Object Name, NameTarget, Port
Get-DnsServerForwarder | Select-Object IPAddress
Get-DnsClientServerAddress -InterfaceAlias Ethernet -AddressFamily IPv4 | Select-Object ServerAddressesYou should see something like this:
ZoneName ZoneType IsDsIntegrated
-------- -------- --------------
_msdcs.saatlab.internal Primary True
0.in-addr.arpa Primary False
127.in-addr.arpa Primary False
255.in-addr.arpa Primary False
saatlab.internal Primary True
TrustAnchors Primary True
Name NameTarget Port
---- ---------- ----
_ldap._tcp.dc._msdcs.saatlab.internal DC01.saatlab.internal 389
IPAddress
---------
{1.1.1.1}
ServerAddresses
---------------
{::1, 127.0.0.1}Both AD zones are AD-integrated, the SRV record points at DC01 on port 389 (LDAP), and 1.1.1.1 has become a forwarder so internet names still resolve. Promotion also pointed DC01’s own DNS at itself (127.0.0.1 and ::1).
It’s better practice to use the DC’s real address rather than loopback, so set that now:
Run this:
Set-DnsClientServerAddress -InterfaceAlias Ethernet -ServerAddresses 10.0.0.10✅ Checkpoint: Both zones show IsDsIntegrated True, the SRV record points to DC01, and the forwarder is 1.1.1.1.
5Check SYSVOL and NETLOGON
Run this:
Get-SmbShare | Where-Object Name -in 'SYSVOL','NETLOGON' | Select-Object Name, PathYou should see this:
Name Path
---- ----
NETLOGON C:\Windows\SYSVOL\sysvol\saatlab.internal\SCRIPTS
SYSVOL C:\Windows\SYSVOL\sysvolThese two shares only show up once the DC has finished initialising. If they’re missing after promotion, Group Policy won’t work and the DC isn’t really ready, however fine everything else looks.
✅ Checkpoint: Both SYSVOL and NETLOGON are shared.
6Run dcdiag
Run this:
dcdiag /q/q prints errors only.
On a healthy new DC you’ll get nothing at all, or perhaps a couple of lines saying the System event log has warnings from the first start. Read any failure and compare it with the troubleshooting table below; Lesson 45 goes into dcdiag properly.
✅ Checkpoint: dcdiag /q shows no failed tests (or only event log warnings from the first boot).
7Confirm the network profile and take a snapshot
Run this:
Get-NetConnectionProfile | Select-Object Name, NetworkCategoryYou should see this:
Name NetworkCategory
---- ---------------
saatlab.internal DomainAuthenticatedThe connection has moved from Public to DomainAuthenticated, which means the Domain firewall profile now applies. Shut down DC01 and, from your laptop, take a snapshot called “DC promoted”.
✅ Checkpoint: NetworkCategory is DomainAuthenticated and DC01 has a “DC promoted” snapshot.
Break It, Then Fix It
Most “AD is broken” calls come down to two DNS faults. Start DC01 from the “DC promoted” snapshot and break both of them.
1Break it: point the DC at public DNS
On DC01, run these:
Set-DnsClientServerAddress -InterfaceAlias Ethernet -ServerAddresses 1.1.1.1
Clear-DnsClientCache
Resolve-DnsName -Type SRV _ldap._tcp.dc._msdcs.saatlab.internalYou’ll get an error like this:
Resolve-DnsName : _ldap._tcp.dc._msdcs.saatlab.internal : DNS name does not exist
At line:1 char:1
+ Resolve-DnsName -Type SRV _ldap._tcp.dc._msdcs.saatlab.internal
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ResourceUnavailable: (_ldap._tcp.dc._msdcs.saatlab.internal:String) [Resolve-DnsName], Win32Exception
+ FullyQualifiedErrorId : DNS_ERROR_RCODE_NAME_ERROR,Microsoft.DnsClient.Commands.ResolveDnsName
The record is still there on DC01’s DNS server, but DC01’s own DNS client is now asking the internet, which has never heard of saatlab.internal. Any member pointed at a public resolver has this same problem, and so would DC01’s own services.
To fix it, point the DNS client back at the DC and test again:
Set-DnsClientServerAddress -InterfaceAlias Ethernet -ServerAddresses 10.0.0.10
Clear-DnsClientCache
Resolve-DnsName -Type SRV _ldap._tcp.dc._msdcs.saatlab.internal | Select-Object Name, NameTarget, PortYou should see this:
Name NameTarget Port
---- ---------- ----
_ldap._tcp.dc._msdcs.saatlab.internal DC01.saatlab.internal 389✅ Checkpoint: The SRV lookup fails with 1.1.1.1 and works with 10.0.0.10.
2Break it: lose the DC’s SRV records
Delete DC01’s main SRV record from the _msdcs zone, as though someone had been tidying up “old” records:
Get-DnsServerResourceRecord -ZoneName _msdcs.saatlab.internal -Name _ldap._tcp.dc -RRType Srv |
Remove-DnsServerResourceRecord -ZoneName _msdcs.saatlab.internal -Force
Clear-DnsClientCache
Resolve-DnsName -Type SRV _ldap._tcp.dc._msdcs.saatlab.internalAgain you get “DNS name does not exist”, and this time it’s true. New computers can’t find a DC to join (you’ll see that error in Lesson 13), and existing ones start failing over to other DCs, or fail completely if there aren’t any.
To fix it, get Netlogon to register its records again:
nltest /dsregdns
Resolve-DnsName -Type SRV _ldap._tcp.dc._msdcs.saatlab.internal | Select-Object Name, NameTarget, PortYou should see something like this:
The command completed successfully
Name NameTarget Port
---- ---------- ----
_ldap._tcp.dc._msdcs.saatlab.internal DC01.saatlab.internal 389nltest /dsregdns tells Netlogon to re-register every DC record immediately. Restarting the Netlogon service does the same, and Netlogon re-registers them on its own from time to time anyway. You’ll find the full list of records it registers in C:\Windows\System32\config\netlogon.dns.
✅ Checkpoint: The SRV record is back after nltest /dsregdns.
This happened at work
The domain controller with Google as a backup
A company built a new domain controller for its branch office. To play it “safe”, the engineer set its DNS servers to itself first and 8.8.8.8 second, “in case our DNS goes down”, and the branch laptops got the same two servers from DHCP.
For months people complained about odd, random problems: a slow sign-in one morning, a mapped drive gone, a Group Policy that applied on Tuesday and not on Wednesday. Each ticket got closed with “restarted, works now”.
Nobody saw the pattern until someone ran nslookup against the second DNS server. Whenever Windows briefly switched to 8.8.8.8 (after a slow answer from the first server, say), it got “name does not exist” for every AD record and cached that answer for a while.
The fix: every domain member and DC now uses internal DNS servers only, with two DCs for redundancy. Internet names go through forwarders on the DNS servers and never through public resolvers on clients. A Group Policy and a DHCP option enforce this, and monitoring raises an alert for any client with a public DNS server.
The lesson: in Active Directory a public DNS server is no backup at all, only another place to get wrong answers from.
Common mistakes and troubleshooting
| Mistake or symptom | What happens | What to do instead |
|---|---|---|
| Members or DCs using public DNS as primary or secondary | Random failures to find DCs, slow sign-ins, missed Group Policy | Only internal DNS servers on members; forwarders for the internet |
| Promoting without a snapshot or backup | A failed promotion is hard to clean up | Snapshot first in a lab; system state backup in production |
| Signing in as “.\Administrator” after promotion | Confusion: a DC has no local accounts | Sign in as SAATLAB\Administrator |
| SYSVOL and NETLOGON shares missing | Group Policy and logon scripts don’t work | Check DFS Replication and event logs; the DC isn’t fully ready |
| SRV records missing from _msdcs | Computers can’t join or find a DC | nltest /dsregdns or restart Netlogon; check DNS client settings on the DC |
| DC01’s DNS client left on 127.0.0.1 only | Works, but hides DNS problems and complicates multi-DC setups | Use the DC’s own IP and a partner DC |
| Forgetting the DSRM password | Can’t enter Directory Services Restore Mode for repairs | Reset it with ntdsutil “set dsrm password” and store it safely |
| dcdiag failures ignored right after promotion | Small problems grow into replication failures | Fix or understand every failure before adding more DCs |
| Install-ADDSForest run on the wrong server | A server you didn’t plan becomes the forest root | Double-check the server name before running it |
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. Have you promoted a server to a domain controller before? Walk me through how you did it.
Why they ask this: The steps you mention show whether you’ve done it in a lab or only read about it.
How you might answer: Yes, in my lab. I installed the AD DS role first and then ran the promotion, either from the Server Manager wizard or PowerShell. For a new forest I used Install-ADDSForest, and to add a DC to an existing domain I’d use Install-ADDSDomainController.
It asks for a DSRM password, and then the server restarts as a domain controller.
2. Can you tell me in simple words what the SYSVOL share is and what lives in it?
Why they ask this: Group Policy and logon script problems often lead back to SYSVOL, so they want to know you know what’s in it.
How you might answer: SYSVOL is a shared folder on every domain controller that holds Group Policy templates and logon scripts, and NETLOGON is a share inside it.
DFS Replication copies it between DCs, so every DC hands clients the same policies.
3. During promotion the wizard asks for a DSRM password. When would you ever need it?
Why they ask this: They want to see you understand basic DC recovery and why that password has to be kept safe.
How you might answer: It’s for signing in to Directory Services Restore Mode, where AD is stopped so you can repair or restore the AD database.
You hardly ever need it, but when you do you need it badly, so it has to be stored safely.
2–5 years experience
4. The promotion finished and the server restarted. What do you check before you call it done?
Why they ask this: They want to know you verify your work rather than assume the wizard got it all right.
How you might answer: I’d check the domain and FSMO roles with Get-ADDomain and netdom query fsmo, then the DNS zones, SRV records and forwarders, and make sure the SYSVOL and NETLOGON shares exist.
After that I’d go through the event logs and run dcdiag /q, and the network profile should say DomainAuthenticated.
5. A user’s PC says it can’t find a domain controller. Where do you start?
Why they ask this: Most “can’t find a DC” problems come from DNS, so they want to hear you start there.
How you might answer: I’d first make sure the client’s DNS servers point only at domain controllers, and then run Resolve-DnsName -Type SRV for _ldap._tcp.dc._msdcs followed by the domain name.
If the SRV record isn’t there, I’d run nltest /dsregdns on the DC and look at the DC’s own DNS client settings.
6. How would you explain DNS forwarders to a new team member, and why do our DCs use them?
Why they ask this: They want to see you understand how internal clients still reach internet names while only talking to internal DNS.
How you might answer: I’d say a forwarder is where our DNS server sends any question it can’t answer itself, say to the ISP’s DNS or a public resolver.
So clients only ever talk to our internal DNS, and the DCs get internet names through the forwarders.
Senior level
7. In your lab you promoted the first DC in a few clicks. What would you do differently when it’s the first DC in production?
Why they ask this: They want to see you think about hardening, recovery and resilience, not only about getting the role on.
How you might answer: I’d plan the name and IP up front, harden the build and put the DC in a secure network segment. Straight after promotion I’d take a system state backup and add a second DC.
I’d also set the PDC Emulator to sync time from a reliable source and keep the DSRM password in a vault.
8. You find that every domain controller uses only 127.0.0.1 for DNS. Is that a problem, and what would you change?
Why they ask this: Loopback-only DNS can cause hidden faults, and they want to know you understand the multi-DC best practice.
How you might answer: With several DCs, loopback-only can hide DNS faults, because if a DC’s own DNS has a problem it can’t find its replication partners.
I’d point each DC at another DC first and then at itself, through loopback or its real IP.
9. Before you let the team add more servers to a new forest, how do you prove it’s healthy?
Why they ask this: They want a clear checklist from you, and to know you won’t build on a broken base.
How you might answer: I’d want a clean dcdiag, plus a clean repadmin /replsummary once there are two DCs, with SRV records resolving and SYSVOL shared.
I’d check the time on the PDC Emulator too, read the event logs, and make sure a system state backup has completed successfully.
Quick quiz
Q1. Which command promotes the first DC of a new forest?
- Install-ADDSDomainController
- Install-ADDSForest
- Add-Computer
Show answer
B — Install-ADDSForest creates a new forest and its first domain.
Q2. How do you sign in to DC01 after promotion?
- DC01\Administrator
- SAATLAB\Administrator
- .\Guest
Show answer
B — A DC has no local accounts; use the domain account.
Q3. What happened to 1.1.1.1 during promotion?
- It was deleted
- It became a DNS forwarder
- It became the domain name
Show answer
B — The old DNS servers become forwarders for internet names.
Q4. Which command re-registers a DC’s SRV records?
- ipconfig /flushdns
- nltest /dsregdns
- gpupdate /force
Show answer
B — nltest /dsregdns makes Netlogon register the records again.
Q5. In the work story, why were the failures random?
- Faulty network cards
- Clients sometimes used 8.8.8.8, which knows nothing about AD
- Expired licences
Show answer
B — Public DNS as a “backup” gives wrong answers for AD names.
Quick recap
- To promote a domain controller for a new forest:
Install-ADDSForest -DomainName ... -InstallDns. - The first DC holds every FSMO role and the global catalog; check with
netdom query fsmo. - DNS gets two AD-integrated zones; old DNS servers become forwarders.
- Clients find DCs through SRV records like
_ldap._tcp.dc._msdcs.saatlab.internal;nltest /dsregdnsre-registers them. - Check SYSVOL and NETLOGON shares and run
dcdiag /q. - Domain members use only internal DNS and never public resolvers.
Next lesson
Lesson 12: Users, groups and OUs → You’ll design an OU structure for the lab, create users and groups by hand and from a CSV file, learn group scopes and the AGDLP model, and turn on the AD Recycle Bin.
Further reading: promote domain controller
Want to go further with how to promote a domain controller? Microsoft’s guide to installing Active Directory Domain Services covers the wizard and the PowerShell commands used here, and the full plan for this course is on the Windows Server Administration course page.
