Raising the Windows Server 2025 forest functional level is the easy half of a change most AD teams plan as one job. The hard half is the Database 32k pages optional feature, which needs the new level and which can’t be turned off once it’s on. It moves every domain controller in the forest from the 8 KB ESE page size Active Directory has used since Windows 2000 to 32 KB pages, and it only works when every DC was built the right way.
That last condition is where upgrades fail. A DC upgraded in place to Windows Server 2025 keeps an 8K database, and the forest refuses the feature until that DC is gone. The behavior described here was checked against Microsoft’s current documentation in November 2026, and the failure cases come from administrators who published what happened when they hit them. We’ll go through the prerequisite checks, the two level raises, the enable command and the backup trap around it.
Why the 2025 functional level gates the 32k page feature
The functional level is a promise about the oldest DC that can exist in the domain or forest. Microsoft’s Set-ADForestMode reference lists Windows2025Forest as value 10, and only Windows Server 2025 DCs can join a forest at that level. The 32k pages feature needs that promise because a DC running Windows Server 2022 or older has no idea what a 32 KB page is. If one of those could still replicate in, it would receive objects it cannot store.
The practical reason for the bigger page is object size. Microsoft’s What’s New page for Windows Server 2025 says the old format capped a single object at roughly 8 KB of data, which also bounded how many values a multivalued attribute could hold. Its 32k pages documentation adds that with 32 KB pages and 64 bit long value IDs, a multivalued attribute holds around 3,200 values, and the What’s New page puts that at 2.6 times the old limit. Objects that pile up linked or multivalued data are the ones that hit the old ceiling first.
Raising the level does not enable anything by itself. It clears the feature’s prerequisite, and the feature then waits for an Enterprise Admin to switch it on. That split matters because the level raise only locks out older DCs, while the feature switch changes every database in the forest, so each deserves its own change window and its own backup.
What msDS-JetDBPageSize tells you about each DC
Every DC publishes its database page capability in the msDS-JetDBPageSize attribute on its NTDS Settings object, under the Configuration partition. Because that object replicates forest wide, you can read every DC’s value from any one DC. Microsoft documents three possible states, and only one of them lets the feature go ahead:
| msDS-JetDBPageSize | What the DC is | Blocks the 32k feature? |
|---|---|---|
| 32768 | Windows Server 2025 DC with a 32k capable database, running in 8k simulation mode until the feature is enabled | No |
| 8192 | Windows Server 2025 DC with an 8K database, usually upgraded in place or promoted from IFM media taken on an 8K DC | Yes |
| Empty | Windows Server 2022 or older DC | Yes, and it also blocks the 2025 functional level |
In the field reports we read, the 8192 row is the one that surprises people. A DC can report Windows Server 2025 in Get-ADDomainController, pass every health check and still hold up the forest. Nothing on the DC itself warns you, so reading this attribute for every DC is the real prerequisite check, not the operating system version.
How the way a DC was built decides its page size
A DC’s page size is fixed when the database file is created, and later upgrades do not rewrite it. Microsoft’s documentation lists the three ways a DC ends up 32k capable: it was the first DC of a new Windows Server 2025 forest, it was promoted as a replica that pulled its database over the wire, or it was restored from a backup of a 32k database. Everything else keeps the page size of the database it started with.
Jorge de Almeida Pinto showed the in place case on his own lab forest in November 2025. His Windows Server 2022 DC had an empty msDS-JetDBPageSize before the upgrade and 8192 afterwards. Christoffer Andersson reached the same result with esentutl /m against the upgraded ntds.dit, and added the install from media case: IFM media taken on an 8K DC produces another 8K DC, even when the new server is a fresh Windows Server 2025 install.
- In place upgrade: keeps the 8K database and reports 8192, so the DC has to be demoted and replaced.
- Fresh promotion over the wire: builds a new 32k capable database and reports 32768, which is the path the field reports converge on.
- Install from media: inherits the page size of the DC that made the media, so IFM from an upgraded DC carries the 8K format forward.
- Restore from backup: inherits the page size of the backed up database, which is why the backup section below matters.
If you already upgraded DCs in place, the fix is a rebuild cycle, not a repair. Promote a new Windows Server 2025 DC, move roles off the upgraded one, demote it, and repeat. The Windows Server 2025 upgrade guide covers the in place path for member servers, where the page size question doesn’t arise.
How to check every DC before raising anything
Run these from an elevated PowerShell session on a DC, or on an admin workstation with RSAT and the ActiveDirectory module, signed in as an Enterprise Admin. The examples use the forest corp.example.com with domain controllers DC01 and DC02. Start by listing every DC with its operating system and the FSMO roles it holds:
Get-ADDomainController -Filter * | Select-Object HostName, OperatingSystem, IsGlobalCatalog, OperationMasterRoles
Every row must say Windows Server 2025, and in a multi domain forest you run it once per domain with -Server pointed at a DC there. Next, read the page size of every DC in the forest from the Configuration partition, which is the query that catches the upgraded ones:
Get-ADObject -LDAPFilter '(objectClass=nTDSDSA)' -SearchBase (Get-ADRootDSE).configurationNamingContext -Properties msDS-JetDBPageSize | Select-Object DistinguishedName, msDS-JetDBPageSize
You want 32768 on every NTDS Settings object. A single 8192 or empty value stops here, because the enable step will fail and you will have to replace that DC first. To read only the DC you’re signed in to, pin both calls to it with -Server and read its own NTDS Settings DN:
Get-ADObject (Get-ADRootDSE -Server $env:COMPUTERNAME).dsServiceName -Server $env:COMPUTERNAME -Properties msDS-JetDBPageSize
Replication has to be clean before either raise, because the level change and the feature flag both travel by replication. Microsoft lists “no replication errors” as a hard prerequisite for the 32k feature. Check the summary, then the per partition detail filtered to errors only:
repadmin /replsummary
repadmin /showrepl * /errorsonly
dcdiag /e /q
A healthy forest shows zero fails in the replsummary table, nothing from /errorsonly, and no lines from dcdiag /q, which only prints failures. Fix any lingering object, DNS or time error before going further, since a DC that misses the feature flag is far harder to diagnose afterwards than one that simply failed to replicate a user.
Take a system state backup of the GC and FSMO holders
Microsoft asks you to identify every DC that hosts the global catalog or a FSMO role and back those up before enabling the feature. Take the backups before the level raise too, because Microsoft’s troubleshooting article says a raised level is generally only reversed through forest recovery. The wbadmin tool comes with the Windows Server Backup feature, which is not installed by default, and writes system state to a dedicated volume, here E::
Install-WindowsFeature Windows-Server-Backup
wbadmin start systemstatebackup -backupTarget:E: -quiet
wbadmin get versions
Note the version identifier that wbadmin get versions prints. Because every DC already reports 32768 at this point, that backup holds a 32k format database running in 8k simulation mode, which is the kind of media Microsoft says stays usable after the switch. The backup section below explains which media does not.
How to raise the domain and forest functional levels
Raise the domains first, then the forest. Microsoft’s troubleshooting article ties the forest level to the domains under it. Doing the domains yourself means each one changes in a step you can watch. Find the PDC emulator, the schema master and the domain naming master, because the cmdlet reference examples target those roles:
Get-ADDomain | Select-Object DNSRoot, DomainMode, PDCEmulator
Get-ADForest | Select-Object Name, ForestMode, SchemaMaster, DomainNamingMaster
Both mode values should still show the older level, for example Windows2016Domain and Windows2016Forest. Raise the domain against the PDC emulator, which the command looks up for you. The cmdlet asks for confirmation unless you add -Confirm:$false, and the prompt is a useful last pause:
Set-ADDomainMode -Identity corp.example.com -DomainMode Windows2025Domain -Server (Get-ADDomain).PDCEmulator
A child domain needs its own name in both places, so the lookup finds that domain’s PDC emulator instead of yours:
Set-ADDomainMode -Identity child.corp.example.com -DomainMode Windows2025Domain -Server (Get-ADDomain child.corp.example.com).PDCEmulator
Once every domain reports Windows2025Domain, raise the forest against the schema master:
Set-ADForestMode -Identity corp.example.com -ForestMode Windows2025Forest -Server (Get-ADForest).SchemaMaster
Jorge de Almeida Pinto noted that in his lab forest, raising the forest level also moved the domain level to 2025. We would still run both explicitly, because Microsoft’s troubleshooting article expects the domains at the new level first and the change record is clearer. Confirm the result from a DC other than the role holder you targeted, here DC02, which proves the change replicated:
(Get-ADForest -Server DC02.corp.example.com).ForestMode
(Get-ADDomain -Server DC02.corp.example.com).DomainMode
Both lines should read Windows2025Forest and Windows2025Domain. If DC02 still shows the old value after a few minutes, force a sync with repadmin /syncall /AdeP and check again before moving on. From this point no Windows Server 2022 DC can be promoted into the forest, which is the whole point of the raise.
How to enable the Database 32k pages feature
Once the forest is raised, we check the feature before touching it. It sits next to the Recycle Bin in the optional feature list, and its EnabledScopes property is how you’ll prove the switch later:
Get-ADOptionalFeature -Filter "Name -eq 'Database 32k pages feature'" | Select-Object Name, FeatureGUID, RequiredForestMode, EnabledScopes
Before the switch, EnabledScopes should be empty. Jorge’s post lists the feature GUID as 52982ac6-1e73-754f-ae24-73ae2775aab8, which you can pass to -Identity instead of the name. The enable command itself is the one in Microsoft’s 32k pages enablement guide, with the forest as the target and the configuration set as the scope. Send it to the domain naming master, because Microsoft’s AD protocol specification says a DC that doesn’t hold that role refuses a forest wide optional feature request:
Enable-ADOptionalFeature -Identity 'Database 32k pages feature' -Scope ForestOrConfigurationSet -Server (Get-ADForest).DomainNamingMaster -Target corp.example.com
PowerShell asks you to confirm with Yes or Yes to All. Microsoft’s enablement guide says the command itself checks that every DC is 32k capable, so an 8K DC stops it before anything changes. The cmdlet reference adds that it refuses to run against a read only DC or a database snapshot. Once confirmed, the change is written to the configuration partition and reaches the other DCs by replication. Rerun the Get-ADOptionalFeature query and EnabledScopes is no longer empty, which confirms the flag was written. Microsoft asks you to monitor replication after the change, so rerun repadmin /replsummary over the next few hours.
Error: The Active Directory JET database page size does not match on all Domain Controllers in this forest
This is the error Jorge de Almeida Pinto published when his forest still held an in place upgraded DC reporting 8192. Enable-ADOptionalFeature stops with that message and the error ID ActiveDirectoryServer:8660, and Jorge also found an error in the Directory Services event log. The forest is untouched, so nothing needs rolling back.
The fix is the rebuild cycle from earlier: rerun the msDS-JetDBPageSize query, find every DC that isn’t 32768, and replace each one with a freshly promoted DC. Do not try to convert the 8K database with offline tools. Jorge reports that an offline compaction with ntdsutil on his upgraded DC left Active Directory unable to start, and Christoffer Andersson traced a similar failure to ntdsutil upgrading the ESE format version beyond what the DSA would attach. Christoffer wrote in November 2025 that a Microsoft fix for that attach failure was on the way.
Why older 8K backups stop working after the switch
Microsoft’s documentation is blunt on this: after the feature is enabled, only 32k page format backup media can restore a Windows Server 2025 DC. Backup media keeps the format of the database it came from, so the media that dies is anything taken from an 8K DC. That covers backups of DCs you upgraded in place and later replaced, and every backup from Windows Server 2022 or older. Restoring one would put an 8K database back into a forest that has promised there are none. The only documented way to use it is a complete authoritative forest recovery, which rolls every DC back.
The backup you took after the precheck is different, because every DC already reported 32768 and Microsoft describes those databases as 32k format in 8k simulation mode. We would still take a fresh system state backup of every GC and FSMO holder once replication settles after the switch, so the newest restore point reflects the enabled feature. Microsoft also warns that memory use can grow with the larger pages and asks you to check that your backup product handles 32k databases in a test lab first. Third party AD recovery tools that parse ntds.dit directly are the ones to confirm with the vendor.
- Before the raise: system state backup of every GC and FSMO holder, taken once all DCs report 32768.
- After the feature replicates: new system state backups on the same DCs, which become your real restore media.
- Retention: label any backup taken from an 8K or pre 2025 DC as forest recovery only, so nobody tries a normal DC restore from it later.
We apply the same rule to IFM. Media created on an upgraded 8K DC carries the 8K format, so delete it and generate new media from a DC that reports 32768 if you promote branch DCs that way. Hardened DCs running the Windows Server 2025 security baseline need the same post switch backup job, so add it to the baseline runbook rather than a one off ticket.
Where this breaks down
The cleanest case is a forest built new on Windows Server 2025, where every DC was promoted over the wire and reports 32768 from day one. Most production forests we see are not that. They carry DCs that were upgraded because a rebuild felt riskier, and every one of them has to go before the switch. That makes the 32k feature a DC replacement project with a PowerShell command at the end.
- There is no off switch: no
Disable-ADOptionalFeaturepath exists for this feature, and Microsoft describes it as irreversible. - The level raise is one way in practice: Microsoft’s troubleshooting article says lowering a functional level is generally only possible through forest recovery, and the Set-ADDomainMode reference adds that it can’t be lowered while a feature that needs the level is in use.
- Older DCs are locked out for good: a disaster recovery plan that relies on a Windows Server 2022 DC image stops working the moment the forest reaches the 2025 level.
- Applications that read the DIT offline: anything that opens
ntds.ditwith its own ESE code needs to support 32k pages, so ask before switching.
If none of your objects come close to the old 8 KB ceiling, there is no hurry. Microsoft says the new level exists for general supportability and for the 32k feature, so raising it early only clears the prerequisite and keeps older DCs out. The Kerberos and NTLM hardening in our NTLM and Kerberos changes guide comes with the Windows Server 2025 DCs themselves, not with the level, so you can leave the 32k switch until the last upgraded DC is gone. We would watch directories that store a lot per object, such as encrypted Windows LAPS password history on many computer accounts, as they grow.
For a forest you’re still building, promote each DC fresh as shown in our AD DS installation guide and avoid IFM from anything upgraded. Readers who want the wider design context around functional levels and DC lifecycle will find it in our list of Windows Server administration books. The full set of field reports on the 8K trap is in Jorge de Almeida Pinto’s write up, which is worth reading before you plan the DC replacements.