Windows Server 2025 domain controllers and DC migration
-
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
Very few companies build new forests. What they do, over and over, is replace old DCs with new ones. Running a Windows Server 2025 domain controller well means knowing what changed in this release and being able to add DCs, move roles onto them and retire old ones without users ever noticing.
You’ll check the functional levels and the new 32k database page feature, then rehearse a whole DC migration with a temporary DC03: promote it, transfer the FSMO roles over and back, and demote it cleanly. At the end you’ll test one of Server 2025’s stricter LDAP defaults.
| Time | You need | By the end you can |
|---|---|---|
| About 90 minutes | DC01 and DC02, plus a new Server Core VM DC03 (2 GB RAM, 40 GB disk) | Explain what’s new for DCs in Server 2025, raise and check functional levels, enable optional features, transfer FSMO roles, demote a DC cleanly and spot insecure LDAP binds |
What it is, in one line
A Windows Server 2025 domain controller is a DC running the 2025 release, which adds a new functional level, an optional 32k-page AD database and tighter security defaults for LDAP, Kerberos and computer accounts.
In Simple Words
Moving the school office to a new building
When a school moves its office to a new building, it doesn’t shut for a week. The new office opens first and copies all the records across, the head teacher hands over her keys and duties, and only after that is the old office emptied and locked. Retiring a DC follows the same pattern: build the new one, let it replicate everything, hand over the special jobs (the FSMO roles), point everyone at the new DC and then demote the old one properly. The new building also has better locks, because Server 2025 DCs refuse some old, insecure ways of talking that older DCs used to accept.
Engineer's View
What changed for DCs in Server 2025
Functional level 10 (Windows2025Domain/Windows2025Forest) is new, and you need it for the optional 32k database page size feature. With 32k pages a single object can hold about 2.6 times as many multivalued attribute values. New 2025 DCs can run a 32k-capable database while upgraded DCs stay on 8k pages, and the switch is forest-wide, one-way, and only possible once every DC is capable.
Security defaults: new deployments require LDAP signing and sealing for client traffic, confidential attributes can only be read over an encrypted connection, and LDAP over TLS now supports TLS 1.3. The KDC has stopped issuing RC4 TGTs, default computer account passwords are random, and the old remote SAM password-change methods are blocked.
Scale and accounts: AD DS can now use CPUs in every processor group (past 64 cores), and delegated MSAs (dMSA) give you a way to move old service accounts over to managed ones.
Migration basics: a new DC needs the domain at 2016 functional level or higher. You promote the new DC, check replication, transfer the FSMO roles with Move-ADDirectoryServerOperationMasterRole, update any DNS client and DHCP settings that still point at the old DC, and then demote it with Uninstall-ADDSDomainController.
How it works, step by step
This is the safe order for replacing a DC:
People tend to skip the fourth step, which is finding every server, DHCP scope and appliance that has the old DC’s IP address typed in as its DNS server. Either give the new DC the old IP or do a careful inventory, and you’ll avoid the outage in the work story further down.
Here’s the rehearsal you’ll run in the lab:
- Check health, functional levels and optional features.
- Promote DC03 (Server Core, 10.0.0.12) as the “new” DC.
- Transfer all FSMO roles from DC01 to DC03, then back.
- Demote DC03 cleanly and remove it from the domain.
- Test how a 2025 DC treats an insecure LDAP bind.
Hands-on Lab: Windows Server 2025 domain controller migration
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 DC02, and work on DC01 as SAATLAB\adm.rahul in PowerShell as administrator.
1Check health, levels and optional features
On DC01:
dcdiag /q
repadmin /replsummary | Select-String 'fails'
(Get-ADForest).ForestMode; (Get-ADDomain).DomainMode
Get-ADOptionalFeature -Filter * | Select-Object Name, @{n='Enabled';e={[bool]$_.EnabledScopes}}You should see something like this:
Source DSA largest delta fails/total %% error
Destination DSA largest delta fails/total %% error
Windows2025Forest
Windows2025Domain
Name Enabled
---- -------
Recycle Bin Feature True
Privileged Access Management Feature False
Database 32k pages feature Falsedcdiag /q prints nothing when every test passes, and that silence is what you want to see before you touch any DC. The forest is already at the 2025 level because you built it with Server 2025 back in Lesson 11.
✅ Checkpoint: dcdiag /q is silent, replication has no failures, and both levels are Windows2025.
2Promote DC03, the “new” DC
On your laptop, create DC03 the same way you built PDC1 in Lesson 33:
VBoxManage createvm --name DC03 --ostype Windows2025_64 --basefolder C:\Lab\VMs --register --default
VBoxManage modifyvm DC03 --memory 2048 --cpus 2 --nic1 natnetwork --nat-network1 LabNet
VBoxManage createmedium disk --filename C:\Lab\VMs\DC03\DC03.vdi --size 40960
VBoxManage storageattach DC03 --storagectl SATA --port 0 --device 0 --type hdd --medium C:\Lab\VMs\DC03\DC03.vdi
VBoxManage storageattach DC03 --storagectl SATA --port 1 --device 0 --type dvddrive --medium C:\Lab\ISO\server2025.iso
VBoxManage startvm DC03Install Server 2025 Datacenter Evaluation without Desktop Experience, set the password and pick option 15 in sconfig.
On DC03:
New-NetIPAddress -InterfaceAlias Ethernet -IPAddress 10.0.0.12 -PrefixLength 24 -DefaultGateway 10.0.0.1 | Out-Null
Set-DnsClientServerAddress -InterfaceAlias Ethernet -ServerAddresses 10.0.0.10
Add-Computer -DomainName saatlab.internal -NewName DC03 -Credential SAATLAB\adm.rahul -RestartOnce it has restarted, go to DC01, check the new server and promote it:
Install-WindowsFeature AD-Domain-Services -ComputerName DC03 | Out-Null
$cred = Get-Credential SAATLAB\adm.rahul
$dsrm = Read-Host -AsSecureString 'DSRM password for DC03'
Invoke-Command -ComputerName DC03 -ScriptBlock {
Test-ADDSDomainControllerInstallation -DomainName saatlab.internal -Credential $using:cred -SafeModeAdministratorPassword $using:dsrm -SiteName HQ | Select-Object Status, Message
Install-ADDSDomainController -DomainName saatlab.internal -InstallDns -SiteName HQ -Credential $using:cred -SafeModeAdministratorPassword $using:dsrm -Force
}You should see something like this before DC03 restarts:
Status Message
------ -------
Success Operation completed successfullyGet into the habit of running Test-ADDSDomainControllerInstallation first. It checks credentials, DNS, functional levels and naming, and it doesn’t change anything.
✅ Checkpoint: Get-ADDomainController -Filter * lists DC01, DC02 and DC03 after DC03 restarts.
3Transfer the FSMO roles to DC03, then back
On DC01:
Move-ADDirectoryServerOperationMasterRole -Identity DC03 -OperationMasterRole SchemaMaster, DomainNamingMaster, PDCEmulator, RIDMaster, InfrastructureMaster -Confirm:$false
netdom query fsmoYou should see something like this:
Schema master DC03.saatlab.internal
Domain naming master DC03.saatlab.internal
PDC DC03.saatlab.internal
RID pool manager DC03.saatlab.internal
Infrastructure master DC03.saatlab.internal
The command completed successfully.This was a transfer and not a seizure, because DC01 was online and could hand the roles over cleanly. Keep in mind that the PDC Emulator is also the forest’s time source, so in a real migration you’d set the external time source on the new PDC (Lesson 21) straight after moving the role.
Now move them back to DC01, because the rest of the course expects them there:
Move-ADDirectoryServerOperationMasterRole -Identity DC01 -OperationMasterRole SchemaMaster, DomainNamingMaster, PDCEmulator, RIDMaster, InfrastructureMaster -Confirm:$false
(netdom query fsmo | Select-String 'DC01').CountYou should see this:
5✅ Checkpoint: All five roles went to DC03 and came back to DC01.

4Demote DC03 cleanly
From DC01, demote DC03 and take off the AD role:
Invoke-Command -ComputerName DC03 -ScriptBlock {
Uninstall-ADDSDomainController -LocalAdministratorPassword (Read-Host -AsSecureString 'New local admin password') -Credential $using:cred -Force
}DC03 drops its copy of AD, unregisters its DNS records, deletes its server object from Sites and restarts as a normal member server. Give it time to come back up.
Then finish the clean-up on DC01:
Invoke-Command -ComputerName DC03 -ScriptBlock { Uninstall-WindowsFeature AD-Domain-Services | Select-Object Success }
Get-ADDomainController -Filter * | Select-Object -ExpandProperty Name
Get-DnsServerResourceRecord -ZoneName saatlab.internal -Name '@' -RRType A | Select-Object @{n='IP';e={$_.RecordData.IPv4Address}}You should see something like this:
Success
-------
True
DC01
DC02
IP
--
10.0.0.10
10.0.0.11DC03 is gone from the DC list and 10.0.0.12 is gone from the domain’s A records, which is what a clean demotion looks like. You can shut DC03 down now and delete the VM.
✅ Checkpoint: DC03 is no longer a DC and its DNS records are gone.
5See a 2025 LDAP default in action
On DC01, try a signed Kerberos bind and then a plain simple bind, and compare them:
$p = Read-Host 'priya.sharma password'
$secure = New-Object DirectoryServices.DirectoryEntry('LDAP://DC01.saatlab.internal/DC=saatlab,DC=internal', 'SAATLAB\priya.sharma', $p, [DirectoryServices.AuthenticationTypes]'Secure, Signing, Sealing')
$secure.RefreshCache(); 'Signed bind: ' + $secure.distinguishedName
$plain = New-Object DirectoryServices.DirectoryEntry('LDAP://DC01.saatlab.internal/DC=saatlab,DC=internal', 'priya.sharma@saatlab.internal', $p, [DirectoryServices.AuthenticationTypes]::None)
try { $plain.RefreshCache() } catch { 'Plain bind: ' + $_.Exception.InnerException.Message }You should see something like this:
Signed bind: DC=saatlab,DC=internal
Plain bind: A more secure authentication method is required for this server.A simple bind sends the password in clear text unless the connection is using TLS, so a DC that enforces LDAP signing turns it away. New Server 2025 deployments require signing by default. If your plain bind went through, enable the Group Policy setting Domain controller: LDAP server signing requirements Enforcement on the Domain Controllers OU and try again.
Old printers, scanners and apps that “log in to LDAP” often rely on simple binds, so test those devices before you migrate and move them to LDAPS (port 636) with a certificate from your CA.
✅ Checkpoint: The signed bind worked and the plain simple bind was refused.
Break It, Then Fix It
Here are two migration mistakes: promoting with the wrong account, and forgetting about servers that still use the old DC for DNS.
1Break it: promote with an ordinary account
Start DC03 again (it’s a member server now). From DC01, run the prerequisite test using Priya’s account:
$priya = Get-Credential SAATLAB\priya.sharma
Invoke-Command -ComputerName DC03 -ScriptBlock {
Test-ADDSDomainControllerInstallation -DomainName saatlab.internal -Credential $using:priya -SafeModeAdministratorPassword (ConvertTo-SecureString 'Lab-Dsrm-2026!' -AsPlainText -Force) -InstallDns | Select-Object Status, Message
}You’ll see something like this (after installing the AD DS role on DC03 again if you removed it):
Status Message
------ -------
Error Verification of user permissions failed. You must supply the credentials of an account that is a member of
the Domain Admins group in the target domain.Adding a DC writes to the configuration partition and creates a server object, so it needs Domain Admin rights, or delegated rights on a pre-created RODC account. The test caught the problem before anything changed, and running it first is a lot less painful than reading through a failed promotion log.
To fix it, use an admin account, and afterwards remove the AD DS role from DC03 again:
Invoke-Command -ComputerName DC03 -ScriptBlock { Test-ADDSDomainControllerInstallation -DomainName saatlab.internal -Credential $using:cred -SafeModeAdministratorPassword (ConvertTo-SecureString 'Lab-Dsrm-2026!' -AsPlainText -Force) -InstallDns | Select-Object Status }✅ Checkpoint: The test failed for priya.sharma and returned Success with adm.rahul.
2Break it: a server still pointing at the old DC
On SRV01, set DNS to DC03’s address and nothing else, as if someone had typed it in during the migration:
Set-DnsClientServerAddress -InterfaceAlias Ethernet -ServerAddresses 10.0.0.12
Clear-DnsClientCache
Resolve-DnsName dc01.saatlab.internalYou’ll get an error like this:
Resolve-DnsName : dc01.saatlab.internal : This operation returned because the timeout period expired
At line:1 char:1
+ Resolve-DnsName dc01.saatlab.internal
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationTimeout: (dc01.saatlab.internal:String) [Resolve-DnsName], Win32Exception
+ FullyQualifiedErrorId : ERROR_TIMEOUT,Microsoft.DnsClient.Commands.ResolveDnsNameDC03 isn’t a DNS server any more, so SRV01 can’t resolve anything at all, and sign-ins, file access and Group Policy would all start failing on this server. That’s why you take an inventory of DNS settings before any DC migration.
To fix it, point SRV01 back at the real DCs and then check every other server too:
Set-DnsClientServerAddress -InterfaceAlias Ethernet -ServerAddresses 10.0.0.10, 10.0.0.11 # on SRV01
Invoke-Command -ComputerName SRV01, DC01, DC02 -ScriptBlock { # from DC01
(Get-DnsClientServerAddress -AddressFamily IPv4 | Where-Object ServerAddresses).ServerAddresses -join ', '
} | ForEach-Object { $_ }✅ Checkpoint: SRV01 timed out with 10.0.0.12 as its only DNS server and resolves names again after the fix.

This happened at work
The DC that was still everyone’s DNS server
A company replaced its two oldest DCs with Server 2025 DCs over one weekend. The new DCs were promoted, the roles transferred, replication looked healthy, and on Sunday night the old DCs were demoted and switched off, with every item on the checklist ticked. Then on Monday morning 40 servers couldn’t resolve names. Each of them had been built years before with static DNS settings pointing at the old DCs’ IP addresses, so applications timed out, backups failed, and a database cluster lost its quorum witness because it couldn’t find the file share.
To stop the bleeding, the team gave one of the new DCs an extra IP address matching an old DC, and then spent two days going round updating every server.
The fix: migration runbooks now begin with a script that collects DNS client settings from every server, along with DHCP option 006 and appliance configs, and where possible the new DC takes over the old DC’s IP address after demotion. The lesson: a DC is also a DNS server that lots of machines remember by IP, so find all of them before you switch it off.
Common mistakes and troubleshooting
| Mistake or symptom | What happens | What to do instead |
|---|---|---|
| Servers still using the old DC’s IP for DNS | Name resolution fails after demotion | Inventory DNS settings; reuse the old IP or update them first |
| Promoting with a non-admin account | Prerequisite check fails | Test-ADDSDomainControllerInstallation with a Domain Admin |
| Switching off an old DC instead of demoting | Metadata, DNS records and FSMO problems | Uninstall-ADDSDomainController, then remove the role |
| Moving the PDC role without fixing time | Time drifts across the forest | Set the external time source on the new PDC |
| Enabling 32k pages without checking all DCs | It can’t be enabled, or later old DCs can’t be added | All DCs 2025 and capable; it’s one-way |
| Ignoring simple LDAP binds from devices | Devices break when signing is enforced | Audit event 2889; move them to LDAPS |
| Raising functional levels without planning | Older DCs can no longer join | Raise only after all DCs run the new version |
| No health check before changes | Migrating into existing problems | dcdiag and repadmin clean before you start |
| Forgetting DHCP option 006 | Clients get the old DC as DNS server | Update scopes before demotion |
Interview questions
Click a question to open it. Each one is worded the way an interviewer would ask it, and underneath you’ll find why they ask it and one way you could answer in your own words.
Fresher level
1. If I ask you what changed for domain controllers in Windows Server 2025, what would you tell me?
Why they ask this: They want to see that you keep up with new versions and know which changes really matter on a DC.
How you might answer: There’s a new functional level and an optional 32k database page size, and the security defaults are tighter: LDAP signing and TLS 1.3 support for LDAP, no RC4 TGTs, and random default passwords for computer accounts. It also adds NUMA support and delegated managed service accounts, or dMSAs.
2. How would you check the domain and forest functional levels in your lab?
Why they ask this: They want to know you can confirm where things stand quickly before you plan any upgrade.
How you might answer: In PowerShell I’d run (Get-ADDomain).DomainMode and (Get-ADForest).ForestMode, or in the GUI I’d open the properties in Active Directory Domains and Trusts. I check it before and after every DC upgrade.
3. An old DC is being retired. What’s the difference between demoting it and just switching it off?
Why they ask this: They’re checking that you know how to remove a DC cleanly and what goes wrong when you don’t.
How you might answer: Demoting takes AD off the server properly, along with its DNS records and its server object, whereas switching it off leaves all that metadata sitting in AD. If someone does switch it off, I have to clean up the metadata by hand, so as long as the DC still works I always demote it.
2–5 years experience
4. Walk me through replacing an old domain controller with a new one.
Why they ask this: They want to hear a safe, ordered sequence that keeps users working the whole way through.
How you might answer: I’d check AD health first, then promote the new DC and confirm replication and DNS are fine. If needed I’d transfer the FSMO roles and the time source role and update DNS client and DHCP settings to point at the new DC. After that I demote the old DC, remove the role and clean up DNS, and once all DCs are on the new version I raise the functional levels.
5. Your manager wants to turn on the new 32k database page size. What would you check first?
Why they ask this: They want to know you understand the conditions, and that this change is forest-wide and permanent.
How you might answer: Every DC in the forest has to run Server 2025 with a 32k-capable database, and the forest has to be at the 2025 functional level. I’d also make sure my manager understands it’s forest-wide and can’t be undone, so it isn’t something to switch on for fun.
6. After you add Windows Server 2025 DCs, an old printer stops authenticating. What could be going on?
Why they ask this: They want to see that you know the new secure defaults and how they can break older devices.
How you might answer: The printer might be using unsigned or simple LDAP binds, RC4-only Kerberos or the old SAM password-change RPCs, and 2025 DCs restrict all of those by default. I’d audit what it’s doing and then update its firmware or settings, or move it to LDAPS.
Senior level
7. You have a 20-DC forest on Server 2016. How would you plan the move to 2025?
Why they ask this: They want to see you can plan at scale, with checks, phases and rollback points.
How you might answer: I’d start with health and app compatibility checks, and audit LDAP binds and RC4 use so the new defaults don’t catch us out. Then I’d add 2025 DCs site by site, move the FSMO roles and update DNS and DHCP. Once the old DCs are demoted I’d raise the functional levels and only then decide on 32k pages, keeping a rollback point at each stage.
8. When would you use a delegated managed service account?
Why they ask this: They’re checking that you understand the new account type and the problem it solves.
How you might answer: I’d use dMSAs to move legacy service accounts with static passwords onto managed, randomized keys, and the nice thing is the application needs very few changes. After the migration I’d disable the old password so nobody can use it again.
9. Before you enforce LDAP signing, how would you find out which clients still use insecure LDAP?
Why they ask this: They want to see that you audit before you enforce, so you don’t cause an outage yourself.
How you might answer: I’d turn on LDAP interface events logging on the DCs, which gives me event 2889 with the client IP and account, plus the channel binding events 3074 and 3075. Then I’d fix or exempt those clients one at a time and only enforce once the list is empty.
Quick quiz
Q1. What does the 32k database page feature need?
- Any single 2025 DC
- All DCs capable and the 2025 functional level
- Only the PDC on 2025
Show answer
B — It’s forest-wide and one-way.
Q2. Which cmdlet checks a DC promotion without changing anything?
- Install-ADDSDomainController -WhatIf
- Test-ADDSDomainControllerInstallation
- dcdiag /fix
Show answer
B — Run it first.
Q3. What did Priya’s promotion test fail on?
- DNS
- User permissions
- Disk space
Show answer
B — Adding a DC needs Domain Admin rights.
Q4. Why did SRV01 time out resolving dc01?
- DC01 was off
- Its only DNS server was the demoted DC03
- A firewall
Show answer
B — Inventory DNS settings before demotion.
Q5. In the work story, what caused Monday’s outage?
- Replication failure
- Servers with old DC IPs as DNS servers
- Expired certificates
Show answer
B — Find them before switching off the old DCs.
Quick recap
- A Windows Server 2025 domain controller brings functional level 10, optional 32k pages and tighter defaults for LDAP, Kerberos and accounts.
- Check health with
dcdiag /qandrepadmin /replsummarybefore any DC change. - Test promotions with
Test-ADDSDomainControllerInstallation. - Transfer FSMO roles with
Move-ADDirectoryServerOperationMasterRole, and move the time source along with the PDC. - Demote with
Uninstall-ADDSDomainControllerafter updating DNS and DHCP settings. - Audit simple and unsigned LDAP binds before enforcing signing.
Next lesson
Lesson 36: Enterprise storage → Next you’ll build an iSCSI target on SRV01, connect a new server called NODE1 to it with MPIO, make a mirrored Storage Spaces pool, try the basics of Storage Replica and take a look at SMB over QUIC.
Further reading: Windows Server 2025 domain controller
Want to go deeper into Windows Server 2025 domain controller? Microsoft’s What’s new in Windows Server 2025 lists every AD DS change, and the Uninstall-ADDSDomainController reference covers demotion options. You can also see the full plan for this course on the Windows Server Administration course page.
