Windows Server 2025 Active Directory 32k Database Page Size Initialization
Before you begin
- Applies to:Windows Server 2025 Active Directory deployments evaluating the 32 KB database page size feature.
- Where to start:Start in an approved isolated environment and review the existing forest and domain controller readiness.
- What you need:Have the directory change approval, a verified recovery plan, and the version and database readiness information for every affected controller.
Guide tools
Scope, Background & Architectural Objective
For over two decades (since Windows 2000), Active Directory Domain Services has utilized the Extensible Storage Engine (ESE / JET blue) formatted with a fixed 8k (8,192-byte) database page size.
Under legacy 8k architecture, records exceeding page boundaries require costly long-value overflow pages. This creates severe performance degradation in enterprise directories with dense multi-valued attributes, deep group nestings, and large security identifier (SID) histories.
Windows Server 2025 introduces the native 32k (32,768-byte) database page size:
- Quadruples page capacity, allowing large multi-valued attributes and complex objects to reside on single database pages.
- Drastically reduces database fragmentation and IOPS overhead during directory searches and Kerberos ticket evaluation.
- Accelerates replication speed and index tree traversals.
Prerequisites & Pre-Flight Verification
Verify Windows Server 2025 Environment
Pre-FlightRun on the target Domain Controller to confirm the operating system build is Windows Server 2025 (Build 26100 or later).
# Confirm Windows Server 2025 build (Build 26100+)[Environment]::OSVersion.Version(Get-CimInstance Win32_OperatingSystem).Caption⯠Illustrative Output (Results Vary)
Major Minor Build Revision----- ----- ----- --------10 0 26100 0Microsoft Windows Server 2025 DatacenterStorage Alignment Check (4Kn / 512e)
StorageEnsure the underlying storage volume hosting C:\Windows\NTDS uses modern 4K native or aligned sector sizes to maximize 32k database page write efficiency.
Get-Volume -DriveLetter C | Get-Disk | Select-Object Number, FriendlyName, SectorSize, LogicalSectorSize⯠Illustrative Output (Results Vary)
Number FriendlyName SectorSize LogicalSectorSize------ ------------ ---------- ----------------- 0 NVMe SAMSUNG MZQL2960HCJR 4096 4096Domain Controller Exclusivity Check (Migration Mode Only)
Pre-RequisiteIf upgrading an existing domain rather than deploying a greenfield forest, verify that every single DC in the entire forest is running Windows Server 2025. If any DC reports Windows Server 2022 or older, halt immediately and decommission legacy DCs before proceeding.
Get-ADDomainController -Filter * | Select-Object Name, OperatingSystem, OperatingSystemVersion⯠Illustrative Output (Results Vary)
Name OperatingSystem OperatingSystemVersion---- --------------- ----------------------DC-01 Windows Server 2025 Standard 10.0 (26100)DC-02 Windows Server 2025 Standard 10.0 (26100)Greenfield Forest Deployment (Native 32k)
When building a brand new forest root using Windows Server 2025, enable the 32k database format during initial forest installation.
Pre-Configure 32k Registry Flag
Path A - RegistryBefore executing Install-ADDSForest, instruct the Active Directory Domain Services promotion wizard to format the initial ESE database with 32k pages.
# Set registry override for 32k ESE page size allocationNew-Item -Path "HKLM:\SYSTEM\CurrentControlSet\Services\NTDS\Parameters" -Force | Out-NullSet-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\NTDS\Parameters" -Name "Database 32k Pages Enabled" -Value 1 -Type DWordPromote Greenfield Forest Root DC
Path A - PromotionExecute forest promotion using Windows Server 2025 functional levels. The registry override automatically builds the database with 32k page allocation.
$DSRM_Password = Read-Host -Prompt "Enter secure DSRM Password" -AsSecureString
Install-ADDSForest ` -DomainName "corp.internal" ` -DomainNetbiosName "CORP" ` -ForestMode "WinThreshold" ` -DomainMode "WinThreshold" ` -InstallDns:$true ` -DatabasePath "C:\Windows\NTDS" ` -LogPath "C:\Windows\NTDS" ` -SysvolPath "C:\Windows\SYSVOL" ` -SafeModeAdministratorPassword $DSRM_Password ` -NoRebootOnCompletion:$false ` -Force:$trueExisting Windows Server 2025 Forest Activation
If the forest was promoted with legacy 8k pages and all Domain Controllers are now running Windows Server 2025, enable the feature at the forest level.
Enable Forest-Wide 32k AD Optional Feature
Path B - Forest ActivationRun on the Schema Master Domain Controller. Once enabled, the optional feature replicates across the configuration partition to all Domain Controllers.
# Verify feature is availableGet-ADOptionalFeature -Filter "Name -like '*32k*'"
# Enable forest-wide 32k page featureEnable-ADOptionalFeature ` -Identity "Database 32k pages feature" ` -Scope ForestOrConfigurationSet ` -Target "corp.internal" ` -Confirm:$falseTrigger Offline Database Conversion on Each DC
Path B - ConversionOnce the optional feature replicates, each Domain Controller converts its local ntds.dit database during a maintenance window using offline defragmentation with the 32k flag.
# 1. Stop Active Directory Domain Services gracefullyStop-Service ntds -Force
# 2. Convert database to 32k page structure using esentutlesentutl.exe /d "C:\Windows\NTDS\ntds.dit" /p32
# 3. Start Active Directory Domain ServicesStart-Service ntdsOperational Verification & Database Inspection
Offline Header Inspection
VerificationValidate that the active ntds.dit database header confirms the 32,768-byte page size format.
# Inspect database header page sizeesentutl.exe /mh "C:\Windows\NTDS\ntds.dit" | Select-String "Page Size"⯠Illustrative Output (Results Vary)
Page Size: 32768Active Directory Optional Feature Verification
VerificationConfirm the optional feature is active and scoped to the forest root configuration partition.
Get-ADOptionalFeature -Filter "Name -like '*32k*'" | Select-Object Name, FeatureGUID, EnabledScopes⯠Illustrative Output (Results Vary)
Name FeatureGUID EnabledScopes---- ----------- -------------Database 32k pages feature 9ac0c273-0d5b-4355-8db6-e32561570d58 {CN=Partitions,CN=Configuration,DC=corp,DC=internal}Replication & Health Diagnostics
Health CheckPerform end-to-end directory synchronization and service diagnostics across all partner Domain Controllers.
repadmin /syncall /AdePdcdiag /test:Services /vRollback & Contingency Plan
- Pre-requisite Defense: Prior to enabling the
Database 32k pages featurein production, full bare-metal or system-state backups of all Domain Controllers must be captured and verified offline (seeSOP-SYS-060). - Disaster Recovery Rollback: If database corruption occurs during offline page conversion on a specific DC:
- Do NOT attempt to repair the corrupted
ntds.dit. - Revert the individual VM to its pre-conversion snapshot, or demote the server forcibly and perform a fresh replica installation from a healthy partner DC via
SOP-SYS-002.
- Do NOT attempt to repair the corrupted
Your feedback keeps these production procedures accurate and battle-tested.