Skip to content

Windows Server 2025 Active Directory 32k Database Page Size Initialization

SOP-SYS-004 Standard Operating Procedure v1.0.0
Last Updated 2026-10-14
Author Systems Administration Team
đŸ’ģ Target OS / Systems:
Windows Server 2025Active Directory Domain Services (AD DS)

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
Guide tools
0/0 Steps (0%)

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

01

Verify Windows Server 2025 Environment

Pre-Flight

Run on the target Domain Controller to confirm the operating system build is Windows Server 2025 (Build 26100 or later).

Terminal window
# 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 0
Microsoft Windows Server 2025 Datacenter

02

Storage Alignment Check (4Kn / 512e)

Storage

Ensure the underlying storage volume hosting C:\Windows\NTDS uses modern 4K native or aligned sector sizes to maximize 32k database page write efficiency.

Terminal window
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 4096

03

Domain Controller Exclusivity Check (Migration Mode Only)

Pre-Requisite

If 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.

Terminal window
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.

04

Pre-Configure 32k Registry Flag

Path A - Registry

Before executing Install-ADDSForest, instruct the Active Directory Domain Services promotion wizard to format the initial ESE database with 32k pages.

Terminal window
# Set registry override for 32k ESE page size allocation
New-Item -Path "HKLM:\SYSTEM\CurrentControlSet\Services\NTDS\Parameters" -Force | Out-Null
Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\NTDS\Parameters" -Name "Database 32k Pages Enabled" -Value 1 -Type DWord

05

Promote Greenfield Forest Root DC

Path A - Promotion

Execute forest promotion using Windows Server 2025 functional levels. The registry override automatically builds the database with 32k page allocation.

Terminal window
$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:$true

Existing 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.

06

Enable Forest-Wide 32k AD Optional Feature

Path B - Forest Activation

Run on the Schema Master Domain Controller. Once enabled, the optional feature replicates across the configuration partition to all Domain Controllers.

Terminal window
# Verify feature is available
Get-ADOptionalFeature -Filter "Name -like '*32k*'"
# Enable forest-wide 32k page feature
Enable-ADOptionalFeature `
-Identity "Database 32k pages feature" `
-Scope ForestOrConfigurationSet `
-Target "corp.internal" `
-Confirm:$false

07

Trigger Offline Database Conversion on Each DC

Path B - Conversion

Once the optional feature replicates, each Domain Controller converts its local ntds.dit database during a maintenance window using offline defragmentation with the 32k flag.

Terminal window
# 1. Stop Active Directory Domain Services gracefully
Stop-Service ntds -Force
# 2. Convert database to 32k page structure using esentutl
esentutl.exe /d "C:\Windows\NTDS\ntds.dit" /p32
# 3. Start Active Directory Domain Services
Start-Service ntds

Operational Verification & Database Inspection

08

Offline Header Inspection

Verification

Validate that the active ntds.dit database header confirms the 32,768-byte page size format.

Terminal window
# Inspect database header page size
esentutl.exe /mh "C:\Windows\NTDS\ntds.dit" | Select-String "Page Size"
❯ Illustrative Output (Results Vary)
Page Size: 32768

09

Active Directory Optional Feature Verification

Verification

Confirm the optional feature is active and scoped to the forest root configuration partition.

Terminal window
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}

10

Replication & Health Diagnostics

Health Check

Perform end-to-end directory synchronization and service diagnostics across all partner Domain Controllers.

Terminal window
repadmin /syncall /AdeP
dcdiag /test:Services /v

Rollback & Contingency Plan

  1. Pre-requisite Defense: Prior to enabling the Database 32k pages feature in production, full bare-metal or system-state backups of all Domain Controllers must be captured and verified offline (see SOP-SYS-060).
  2. 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.

Comments