How To

Upgrade Windows Server to 2025: In-Place and Domain Controllers

I wanted to upgrade Windows Server to 2025 in place on a 2022 box. My first try went nowhere: Setup refused the evaluation ISO after 35 seconds with 0xC1900204. What worked was a route few admins have tried yet. Windows Update now offers Windows Server 2025 to patched 2022 and 2019 servers as a feature update (2016 still needs media), and on my lab box it took 2 hours 50 minutes from the first click to a working 2025 desktop, with IIS and an SMB share still serving. With Windows Server 2016 leaving extended support on 12 January 2027, there’s no better time to try it.

Original content from computingforgeeks.com - post 180452

These notes cover the supported paths, the Windows Update upgrade with its timings and role check, the setup.exe scan, and the domain controller path with adprep, the FSMO move and the functional level. I ran the last of it in November 2026 on Windows Server 2022 and 2025 VMs in my Proxmox lab, and every error, timing and screen below comes from those machines. The exit-code table comes from Microsoft’s documentation, and I say so where it matters.

Checking which versions upgrade to Windows Server 2025

Windows Server 2025 is the first release that lets a non-clustered server jump up to four versions in one go, so Windows Server 2012 R2, 2016, 2019 and 2022 all upgrade to it directly. Plain 2012 doesn’t, and a failover cluster still moves one version at a time through a rolling upgrade. That rule comes from Microsoft’s upgrade and migration overview, which also lists the restrictions that catch people:

Running nowDirect upgrade to 2025What to watch
Windows Server 2022YesSame edition or Standard to Datacenter only
Windows Server 2019YesExtended support ends January 2029
Windows Server 2016YesExtended support ends 12 January 2027
Windows Server 2012 R2YesOut of support since October 2023 unless you bought ESU
Windows Server 2012NoGo to 2016 or 2019 first, or migrate
Any evaluation editionNoConvert to retail first, then use licensed media

Three more limits apply on every path, and each one turns an upgrade into a clean install plus a migration:

  • No switch between Server Core and Desktop Experience
  • No move from Datacenter down to Standard
  • Same language before and after

It’s better to find out a box needs one of those changes before the maintenance window than in the middle of it. Setup does allow moving up during the upgrade, from Standard to Datacenter or to Datacenter: Azure Edition, but only if your licensing already covers the bigger edition.

Preparing the server before setup.exe touches it

Setup rolls back by itself when it fails, but I would not trust a rollback as the only safety net on anything that matters. Take a full backup you’ve actually restored somewhere, or a hypervisor snapshot if the box is a VM, then work through the list below. Each item comes from Microsoft’s upgrade rules or from something that stopped my own run:

  1. Snapshot or full backup, restore tested
  2. Edition and licence channel read with slmgr and DISM
  3. NIC Teaming removed (Microsoft says to disable it first)
  4. Free space on C: checked (mine had 52 GB)
  5. Hyper-V guests shut down or moved off the host
  6. Domain controllers handled separately (later in these notes)

Is the box even upgradeable? The licence check answers that, so it’s the one I’d run first. slmgr /dlv prints the edition and the channel the key came from.

cscript //nologo C:\Windows\System32\slmgr.vbs /dlv | Select-String 'Name:|License Status|rearm'

My first box was a lab clone built from the Windows Server 2022 evaluation, and the output said so plainly. ServerStandardEval in the name is the word that matters here, and the Notification status means the 180-day timer had already run out on the template:

Name: Windows(R), ServerStandardEval edition
License Status: Notification
Remaining Windows rearm count: 6
Remaining SKU rearm count: 6

Add Description to the filter to see the licence channel too. A production server bought through volume licensing shows VOLUME_KMSCLIENT channel or VOLUME_MAK channel there, and a retail or OEM one shows its own channel. Any of those can be upgraded. An Eval edition can’t, and the errors section at the end shows exactly how Setup refuses one.

Upgrading a member server through Windows Update

Microsoft offers Windows Server 2025 to 2022 and 2019 hosts as an optional feature update through Windows Update, per its release health page, so you don’t need an ISO at all. This is the route I took all the way to a finished upgrade. The in-place upgrade page lists the prerequisites, and my unpatched template saw no offer until it met both of the first two. The third is my own rule, because the offer dialog makes it plain you’ll need a real key. My lab box started as an evaluation install, so I converted it to retail Standard with DISM first, the 42-second job shown in the errors section:

  • March 2026 cumulative update or later (KB5078766 on 2022, KB5078752 on 2019)
  • Policy value AllowWindowsServerFeatureUpdate set to 1
  • A licensed (non-evaluation) edition and a 2025 key to activate with

My box started on build 20348.587, so I installed the September 2026 cumulative update first. On a quiet node it took 22 minutes to install plus a restart, and on a busy one the same update took over an hour and its restart hung until I forced it, so patch the server in an earlier window. Then set the policy value with Microsoft’s own commands from an elevated prompt:

New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AllowWindowsServerFeatureUpdate"
New-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AllowWindowsServerFeatureUpdate" -Name "AllowWindowsServerFeatureUpdate" -PropertyType DWord -Value 1

Before touching the upgrade, save a “before” picture you can compare against later. I’d added IIS and an SMB share called team to the box so there’d be real roles to check, and the export counted 28 installed roles and features:

New-Item -ItemType Directory C:\lab -Force | Out-Null
Get-WindowsFeature | Where-Object Installed | Export-Csv C:\lab\features-before.csv -NoTypeInformation
Get-ComputerInfo -Property WindowsProductName, OsVersion

The version line is the one to keep for the change record:

WindowsProductName : Windows Server 2022 Standard
OsVersion          : 10.0.20348

After a reboot, open Settings, Windows Update on the server’s console or over RDP. Server Core has no Settings app; Microsoft’s page points Core users to SConfig option 6 instead, which I didn’t test. The offer sits below the normal update list as its own Windows Server 2025 section, and it’s easy to miss because the regular cumulative updates keep the top of the page busy:

Windows Update in Settings on Windows Server 2022 offering the Windows Server 2025 feature update with a Download and install link
  1. 1Windows Server 2025
  2. 2Download and install
  1. Find the Windows Server 2025 section
  2. Select Download and install

Before anything downloads, an Important Information dialog spells out the licensing deal, and it’s worth reading slowly. It says a product key purchase is required, and that if you don’t activate the new version you won’t have access to your prior version or your data. My 2022 box had used a public KMS client key, and after the upgrade slmgr /dli showed the RETAIL channel with the licence in Notification state, so have your 2025 key ready before you click Accept and install. Microsoft lists a valid key and activation method as a prerequisite; I left the lab box unactivated, so I can’t show the activation step itself:

Important Information dialog for the Windows Server 2025 feature update warning that a product key purchase is required

The download ran alongside the other queued updates and took about 40 minutes. Setup’s online phases then took another 65 minutes without a restart, and the log line I watched for in C:\$WINDOWS.~BT\Sources\Panther\setupact.log showed the full upgrade was available this time:

2026-11-01 06:10:14, Info                  MOUPG  MigChoice: After Migration Filter -> [CleanInstall | FullUpgrade]
2026-11-01 06:11:15, Info                  MOUPG  Setup phase change: [SetupPhasePrepare] -> [SetupPhaseInstall]
2026-11-01 06:52:31, Info                  MOUPG  Setup phase change: [SetupPhaseInstall] -> [SetupPhaseFinalize]

When the online phase is done, the page flips to Restart required, with the upgrade listed as pending restart. That restart is the step that actually commits the upgrade, and in my lab only the Settings restart did it: on an earlier box I drove the install from a script, and two scripted restarts brought it straight back to 2022 (details in the errors section below).

Windows Update showing Windows Server 2025 pending restart with the Restart now button after the online phase finished
  1. 1Pending restart
  2. 2Restart now
  1. Check the upgrade shows Pending restart
  2. Select Restart now

The offline phase is where the downtime is. The console showed “Updates are underway. 21% complete.” within two minutes, then sat on “Working on updates 99%” for about 40 minutes with about one core busy and around 7 to 9 MB/s of disk writes. Don’t power it off there. The machine booted into 2025 seven minutes after the restart, but the desktop wasn’t usable for another 40 to 50, so plan for about an hour of real downtime on similar hardware. The final Setup log, now in C:\Windows\Panther\setupact.log, closed with Finalize: Reporting result value: [0x0].

Once you’re signed in, confirm the version and diff the feature list against the CSV you saved:

Get-ComputerInfo -Property WindowsProductName, OsVersion
$before = Import-Csv C:\lab\features-before.csv | ForEach-Object Name
$after = Get-WindowsFeature | Where-Object Installed | ForEach-Object Name
Compare-Object $before $after

My box came back as Windows Server 2025 Standard, build 26100.33650, with 30 features installed instead of 28. Read the diff line by line rather than hoping for it to be empty:

WindowsProductName : Windows Server 2025 Standard
OsVersion          : 10.0.26100

InputObject             SideIndicator
-----------             -------------
File-Services           =>
FS-FileServer           =>
WindowsAdminCenterSetup =>
AzureArcSetup           <=

Three lines are new on the 2025 side: the File Server role entries, which weren’t in the 2022 list even though the share already existed, and the inbox Windows Admin Center setup feature. Azure Arc Setup is gone. None of that touched the roles I cared about: W3SVC and LanmanServer were running, http://localhost still served the page I’d written on 2022, and the team share still held its file. Microsoft keeps a list of features removed in 2025, so check it against your own diff.

After the upgrade you’ll also find the old system in C:\Windows.old, and my disk had 38.8 GB free afterwards. It holds the old system’s files, so copy anything you need out of it before Disk Cleanup removes it; I didn’t test a rollback from it.

Checking a media upgrade with the compatibility scan

If you’d rather upgrade from an ISO, Setup has a dry-run mode, /compat scanonly, that does every check a real upgrade does and then stops without changing anything. It is the cheapest test you’ll ever run on a production box, so I mount the ISO, note its drive letter, and run it from an elevated PowerShell prompt. My ISO mounted as D:, and image index 2 is Standard with Desktop Experience, which matched the installed edition.

Get-WindowsImage -ImagePath D:\sources\install.wim | Select-Object ImageIndex, ImageName

The evaluation ISO carries four images, and every one of them is an evaluation edition. Keep that in mind, because it explains the failure in the errors section:

ImageIndex ImageName
---------- ---------
         1 Windows Server 2025 Standard Evaluation
         2 Windows Server 2025 Standard Evaluation (Desktop Experience)
         3 Windows Server 2025 Datacenter Evaluation
         4 Windows Server 2025 Datacenter Evaluation (Desktop Experience)

Setup with /quiet exits without printing anything, so I launch it with Start-Process -Wait and print the exit code in hex myself. /dynamicupdate disable keeps it from downloading fresh setup files mid-scan, which makes the result repeatable. On my box each scan took between 19 and 39 seconds.

$p = Start-Process D:\setup.exe -ArgumentList '/auto upgrade /quiet /compat scanonly /eula accept /dynamicupdate disable /imageindex 2' -Wait -PassThru
'0x{0:X8}' -f $p.ExitCode

The exit code is the whole answer, and Microsoft’s Setup command-line reference documents the ones you’ll meet in a scan:

Exit codeMeaningWhat to do
0xC1900210No compatibility issues foundSafe to run the real upgrade
0xC1900208An app or driver blocks the upgradeRead the CompatData XML, remove or update it
0xC1900204The chosen migration (keep files and apps) isn’t availableCheck edition, media and language
0xC1900200Hardware below the minimumFix CPU, RAM or firmware first
0xC190020ENot enough disk spaceFree space on C:

Mine came back as 0xC1900204 on every attempt with the evaluation ISO, which the errors section explains. A scan changes nothing, so the box was exactly as I’d left it, and that is the whole reason to run it before the real thing. With licensed media and a clean 0xC1900210, the real upgrade is the same command without /compat scanonly; I didn’t have licensed media, so the Windows Update route above is the one I can vouch for.

Choosing in-place or side-by-side for domain controllers

Microsoft’s own in-place upgrade page says not to in-place upgrade servers running AD DS, and after doing the side-by-side move I’d agree for reasons beyond Microsoft saying so. A new DC replicates a clean copy of the directory instead of carrying ten years of a box’s history forward, the old DC stays up and serving logons until you’re happy, and backing out is just “don’t demote it yet”. An in-place upgrade of a DC also keeps the old 8K database page format, so that DC can never take part in the 32K page feature I’ll show later.

This is the order I followed, and it’s the order the rest of these notes take. Each step has its own check, and I wouldn’t start the next one until that check passed:

  1. Run adprep on the forest and domain
  2. Join a new 2025 server and promote it
  3. Confirm replication both ways
  4. Move the five FSMO roles to it
  5. Demote the old DC
  6. Raise the domain and forest functional levels

My lab domain was lab.example.com with one Windows Server 2022 DC, box2 (10.0.1.11), at the 2016 functional level, which is the minimum a 2025 DC will join. The new DC was box3 (10.0.1.12), a Windows Server 2025 Datacenter VM from my Proxmox Windows Server template. If you’re building the first DC from scratch rather than migrating one, the AD DS install guide covers that part.

Preparing the schema with adprep

Promoting a new 2025 DC runs adprep for you, so why bother? I’d still run it by hand first, because it is the step that touches the whole forest, and doing it on its own means that if it fails you’re looking at a schema problem, not a promotion problem. Start by reading the schema version on the existing DC so you know what you’re upgrading from:

Get-ADObject (Get-ADRootDSE).schemaNamingContext -Properties objectVersion | Select-Object objectVersion

Windows Server 2019 and 2022 both use schema 88, so that is what a 2022 forest shows. Write the number down, because it’s how you’ll prove afterwards that adprep did its job.

objectVersion
-------------
           88

Adprep lives in \support\adprep on the 2025 ISO, and the evaluation ISO works fine for this because adprep doesn’t care about licensing. Run it on the schema master from an elevated prompt, signed in as an account in Schema Admins, Enterprise Admins and Domain Admins. It asks you to type C to confirm:

D:\support\adprep\adprep.exe /forestprep

It imported four LDIF files and finished in 7.3 seconds on my small lab forest. The two lines to read are the before and after schema versions:

Importing directory from file "D:\support\adprep\sch89.ldf"
Loading entries14 entries modified successfully.
Importing directory from file "D:\support\adprep\sch90.ldf"
Loading entries25 entries modified successfully.
Importing directory from file "D:\support\adprep\sch91.ldf"
Loading entries34 entries modified successfully.
Importing directory from file "D:\support\adprep\PAS.ldf"
Loading entries53 entries modified successfully.
Current Schema Version is 88
Upgrading schema to version 91
Adprep successfully updated the forest-wide information.

Domain prep is per domain and needs only Domain Admins. On mine it took a fifth of a second.

D:\support\adprep\adprep.exe /domainprep

It answers with one line, and re-reading objectVersion afterwards should now return 91. If it still says 88, you’re most likely asking a DC the change hasn’t replicated to yet.

Adprep successfully updated the domain-wide information.

The full adprep run on the old DC, both commands in one window, looked like this.

adprep forestprep upgrading the Active Directory schema from 88 to 91 for a Windows Server 2025 domain controller

On a real forest, give it time to replicate to every DC before the next step. repadmin /showrepl on a far-away DC is enough to confirm the schema partition caught up.

Promoting a Windows Server 2025 DC next to the old one

The new server needs the existing DC as its DNS server before it can find the domain, so set that first and join it as a normal member. I used the old DC’s address because, at that point, it was the only DNS server holding the AD zones. My adapter was the only one that was up.

$if = (Get-NetAdapter | Where-Object Status -eq Up | Select-Object -First 1).Name
Set-DnsClientServerAddress -InterfaceAlias $if -ServerAddresses 10.0.1.11
Add-Computer -DomainName lab.example.com -Credential (Get-Credential LAB\Administrator) -Restart

Two checks belong before the promotion. Give the server a static address first, because my lab DC ran on a DHCP lease and the promotion warned about exactly that. Then confirm SYSVOL already replicates with DFSR, since a forest that has been raised over the years can still be on FRS, and Windows Server 2019 or newer can’t join a domain that uses it:

dfsrmig /getglobalstate

Anything other than Eliminated means the FRS to DFSR migration has to finish before you add a 2025 DC. Mine was clean:

Current DFSR global state: 'Eliminated'
Succeeded.

Now install the role and promote the server as an extra DC with DNS. Leave the DSRM password parameter off and the cmdlet asks for it twice, which beats a typo you can’t see. Because adprep already ran, the promotion skipped the schema work:

Install-WindowsFeature AD-Domain-Services -IncludeManagementTools
Install-ADDSDomainController -DomainName lab.example.com -InstallDns -Credential (Get-Credential LAB\Administrator)

The feature install took 3 minutes and the promotion another 2 minutes 24 seconds, then it rebooted. Once it was back I checked that both DCs were listed and that replication had no failures:

Get-ADDomainController -Filter * | Select-Object HostName, OperatingSystem, IsGlobalCatalog
repadmin /replsummary

Both DCs were global catalogs and the summary showed zero failures. Look closely at it, though: only BOX2 appears as a source and only BOX3 as a destination. Replication was flowing one way, and that one-way flow came back to bite me at the demotion step:

HostName             OperatingSystem                IsGlobalCatalog
--------             ---------------                ---------------
box2.lab.example.com Windows Server 2022 Standard              True
box3.lab.example.com Windows Server 2025 Datacenter            True

Source DSA          largest delta    fails/total %%   error
 BOX2                      02m:29s    0 /   5    0

Destination DSA     largest delta    fails/total %%   error
 BOX3                      02m:29s    0 /   5    0

Healthy two-way replication lists each DC as both a source and a destination. If yours looks like mine, the fix is in the demotion section below, and it’s quicker to apply it now than to wait for it to fail.

Moving the FSMO roles to the new DC

All five operations master roles sat on the old DC, as they do in most single-DC domains. Move-ADDirectoryServerOperationMasterRole transfers them gracefully while both DCs are online. Pass the new holder’s short name as -Identity, because the cmdlet has a known problem with a fully qualified name there:

Move-ADDirectoryServerOperationMasterRole -Identity box3 -OperationMasterRole PDCEmulator, RIDMaster, InfrastructureMaster, SchemaMaster, DomainNamingMaster -Credential (Get-Credential LAB\Administrator)
netdom query fsmo

The transfer took 1.65 seconds. Every role should now name the new DC.

Schema master               box3.lab.example.com
Domain naming master        box3.lab.example.com
PDC                         box3.lab.example.com
RID pool manager            box3.lab.example.com
Infrastructure master       box3.lab.example.com
The command completed successfully.

Leave -Force off while the old DC is healthy. It’s for a dead role holder: it seizes the roles when the transfer can’t complete, and a DC whose roles were seized must never come back online. The PDC emulator also serves time for the domain, so if your old DC syncs from an external NTP source, set the same source on the new one now.

Demoting the 2022 DC and the DNS check that blocked it

Before the old DC goes, nothing may still depend on it for DNS, and that includes the new DC itself. I only caught this after my demotion: the promotion had added loopback to box3’s resolver list but left the old DC in first place. Check it on the new DC first:

Get-DnsClientServerAddress -AddressFamily IPv4 | Where-Object ServerAddresses | Select-Object InterfaceAlias, ServerAddresses

The first entry on mine was box2, by then already demoted:

InterfaceAlias ServerAddresses
-------------- ---------------
Ethernet       {10.0.1.11, 127.0.0.1}

On box3, point the resolver at its own address first and loopback second, then confirm the domain’s DC locator records resolve through it. With more than one DC left you’d list a partner DC first instead:

$if = (Get-NetAdapter | Where-Object Status -eq Up | Select-Object -First 1).Name
Set-DnsClientServerAddress -InterfaceAlias $if -ServerAddresses 10.0.1.12, 127.0.0.1
Resolve-DnsName _ldap._tcp.dc._msdcs.lab.example.com -Type SRV | Where-Object Type -eq SRV | Select-Object NameTarget, Port

The LDAP SRV record for the domain should come back pointing at the new DC:

NameTarget           Port
----------           ----
box3.lab.example.com  389

Do the same for every client that names the old DC as its DNS server: the DHCP scope’s DNS server option (006), servers with static settings, and appliances that use AD for LDAP. Miss one and it loses DC location, logons and Group Policy the moment the old DC’s zones disappear.

Then, on box2, point its own DNS at the new DC so it doesn’t lose name resolution halfway through, and run the demotion. Leaving -LocalAdministratorPassword off makes the cmdlet prompt for the new local password twice:

$if = (Get-NetAdapter | Where-Object Status -eq Up | Select-Object -First 1).Name
Set-DnsClientServerAddress -InterfaceAlias $if -ServerAddresses 10.0.1.12, 127.0.0.1
Get-DnsClientServerAddress -InterfaceAlias $if -AddressFamily IPv4
Uninstall-ADDSDomainController -Credential (Get-Credential LAB\Administrator) -DemoteOperationMasterRole

It failed the prerequisite check in 3 seconds, claiming the old DC was the last DNS server for both AD-integrated zones, even though the new DC had installed DNS and loaded them:

Uninstall-ADDSDomainController : Verification of prerequisites for Domain Controller promotion failed. This Active
Directory domain controller appears to be the last DNS server for the following Active Directory-integrated zones:

_msdcs.lab.example.com
lab.example.com

If you demote this domain controller, you may be unable to resolve any DNS names in these zones.  If you wish to
proceed, specify the 'IgnoreLastDNSServerForZone' option.
    + FullyQualifiedErrorId : Test.VerifyDcPromoCore.DCPromo.General.59,Microsoft.DirectoryServices.Deployment.PowerSh
   ell.Commands.UninstallADDSDomainCommand

The cause was the one-way replication from the summary earlier. The old DC had no inbound connection from the new one yet, because the Knowledge Consistency Checker builds those on its own 15-minute cycle, so the old DC had never received the new DC’s name server records. Running repadmin /syncall from the new DC said exactly that, “The following server could not be reached (topology incomplete)”. You don’t have to wait for the next cycle. Kick the KCC on the old DC and pull changes into it.

repadmin /kcc box2
repadmin /syncall box2 /Ade

Every partition now synced from BOX3 to BOX2 and ended with SyncAll terminated with no errors. The next demotion attempt complained only about _msdcs.lab.example.com, and it kept doing so after I restarted the DNS Server service on the old DC, which made it list the new DC as a name server for both zones. At that point I checked the zone from the outside instead of trusting the check:

Resolve-DnsName -Name _msdcs.lab.example.com -Type SOA -Server 10.0.1.12 | Select-Object Name, PrimaryServer, SerialNumber

The new DC answered for _msdcs as its primary server, and both DNS application partitions listed it as a replica. That’s the evidence the warning exists to make you collect.

Name                   PrimaryServer        SerialNumber
----                   -------------        ------------
_msdcs.lab.example.com box3.lab.example.com           22

With the zone proven to live on the new DC, adding -IgnoreLastDNSServerForZone to the same command is safe, and the demotion finished in 54 seconds with DCPromo.General.2 ... Success. Don’t reach for that switch first, though. On my first attempt the warning was right: the old DC really was the only DC that held the new DC’s NS records, and a demotion then would have taken name resolution for the domain with it.

Raising the functional level to Windows Server 2025

I tried raising the levels before the demotion, to see what would stop me. The answer is any DC that isn’t running 2025: in the domain for the domain level, and anywhere in the forest for the forest level. Both cmdlets refused while the 2022 DC was still in the domain:

Microsoft.ActiveDirectory.Management.ADException: The functional level of the domain (or forest) cannot be raised to the requested value, because there exist one or more domain controllers in the domain (or forest) that are at a lower incompatible functional level

With only 2025 DCs left, raise the domain first and the forest second, since a domain cannot sit below its forest. Give the demotion time to replicate before you do it, or the cmdlet may still count the old DC.

Set-ADDomainMode -Identity lab.example.com -DomainMode Windows2025Domain
Set-ADForestMode -Identity lab.example.com -ForestMode Windows2025Forest
(Get-ADDomain).DomainMode; (Get-ADForest).ForestMode

Both cmdlets ask for confirmation, then the two mode names come back. On anything real I’d take a system state backup of a DC first, the same as before any other forest-wide change.

Windows2025Domain
Windows2025Forest

The 2025 forest level makes one new optional feature available, the 32K database page size, which lets a single object carry much larger multivalued attributes than the 8K pages every older DC uses. A DC that was promoted fresh on 2025 is ready for it. I checked box3’s NTDS Settings object; on a forest with several DCs, query every nTDSDSA object under the configuration partition instead:

Get-ADObject (Get-ADRootDSE).dsServiceName -Properties msDS-JetDBPageSize | Select-Object msDS-JetDBPageSize

A value of 32768 means the database can switch, 8192 means the DC is stuck on 8K pages (every in-place upgraded DC is), and an empty value means a 2022 or older DC:

msDS-JetDBPageSize
------------------
             32768

I enabled it in the lab because the lab is disposable. In production I’d wait until every condition below holds and I’d thought about the backups, because the switch only goes one way:

  • Every DC reports msDS-JetDBPageSize 32768 (no in-place upgraded DCs)
  • No replication errors, and fresh backups of GC and FSMO holders
  • Domain and forest at the 2025 functional level
  • An Enterprise Admins account to enable it
  • Acceptance that 8K-format backups won’t restore afterwards

Once those hold, enabling it is one cmdlet against the forest’s partitions container. PowerShell is blunt about what you’re doing.

Enable-ADOptionalFeature -Identity 'Database 32k Pages Feature' -Scope ForestOrConfigurationSet -Target lab.example.com

It printed this warning before asking whether to continue, and I did not need to read it twice. Answer no here unless every item on the list above is true for your forest.

WARNING: Enabling 'Database 32k Pages Feature' on 'CN=Partitions,CN=Configuration,DC=lab,DC=example,DC=com' is an irreversible action! You will not be able to disable 'Database 32k Pages Feature' on 'CN=Partitions,CN=Configuration,DC=lab,DC=example,DC=com' if you proceed.

The end state on the new DC, with every role and both functional levels in one window, is what I’d screenshot for the change ticket.

Windows Server 2025 domain controller holding all FSMO roles with domain and forest functional level raised to Windows2025

If you’d rather manage the result from a desk than a console, the AD DS PowerShell guide covers the day-to-day cmdlets, and the Windows Server administration books I keep around go deeper on FSMO placement and replication design. For day-to-day work I manage the new DC from a Windows 11 admin box with Windows RSAT rather than signing in to the console; if you are building that workstation from scratch, a Windows 11 install without Microsoft account keeps it on a local admin login until it joins the domain.

Fixing the upgrade errors I hit

Two failures cost me most of a day, and both have a clean answer once you know what the logs mean. The first is the evaluation block; the second only bites if you script the Windows Update install.

0xC1900204: Selected install choice is not available

Setup writes its working logs to C:\$WINDOWS.~BT\Sources\Panther while it runs, and setuperr.log there holds only the errors, which makes it the right file to open first. The line that names the cause sits a few lines above the long cascade of repeated result codes:

Get-Content 'C:\$WINDOWS.~BT\Sources\Panther\setuperr.log' | Select-String 'MigChoice|ExecuteMigChoiceScan'

Both lines point at the same check. Setup worked out which ways it could install the new system and found that “keep files, settings and apps” wasn’t one of them:

2026-10-30 07:59:59, Error                 MOUPG  MigChoice: Selected install choice is not available.
2026-10-30 07:59:59, Error                 MOUPG  CDlpActionCompat::ExecuteMigChoiceScan(1928): Result = 0xC1900204

Setup also runs SetupDiag on its own after a failure. You don’t need to download it for this, because it lands its verdict in C:\Windows\logs\SetupDiag\SetupDiagResults.xml and copies a summary into the registry, which is the quickest place to read it:

Get-ItemProperty HKLM:\SYSTEM\Setup\SetupDiag\Results | Select-Object ProfileName, FailureDetails, HostOSVersion, TargetOSVersion, UpgradeElapsedTime

SetupDiag matched it to its “abrupt down-level failure” profile, the generic bucket for a setup that stopped while still running on the old system. It does not name the edition problem, so on its own it would have sent me looking for a driver.

ProfileName        : FindAbruptDownlevelFailure
FailureDetails     : ErrorCode = 0xC1900204, ExCode = 0x4000B
HostOSVersion      : 10.0.20348
TargetOSVersion    : 10.0.26100.32230 (lt_release_svc_prod1.260110-0031)
UpgradeElapsedTime : 00:00:35

The real clue was in setupact.log, in the diagnostics lines that record which edition the media offered against which edition was installed. Those two values are what tell you it’s an edition mismatch and not a broken server:

Select-String -Path 'C:\$WINDOWS.~BT\Sources\Panther\setupact.log' -Pattern 'EditionId\]' | Select-Object -Last 3

These lines come from my second attempt, after I’d already converted the box to a retail edition (more on that below). The installed system is ServerStandard, but the only thing the ISO can install is ServerStandardEval.

[ProductKeyEditionId]=[ServerStandardEval]
[HostOsEditionId]=[ServerStandard]
[SourceOsEditionId]=[ServerStandard]

The capture below puts the error line and the SetupDiag summary from the first attempt side by side.

SetupDiag result and setuperr.log showing 0xC1900204 when trying to upgrade Windows Server 2022 to 2025 with evaluation media

So the failure isn’t SetupDiag being vague. It’s an edition rule Microsoft states in one sentence on the upgrade overview: upgrades from a previous Windows Server installation to an evaluation copy aren’t supported.

Trying three ways around the evaluation block

I didn’t take the first refusal on faith, because a lot of forum answers claim an evaluation box can upgrade to the next evaluation. On build 26100 media it can’t, and I tried the obvious workarounds to be sure:

  1. Evaluation 2022 to evaluation 2025: 0xC1900204 in 35 s
  2. Converted to retail 2022 Standard, same ISO: 0xC1900204 in 39 s
  3. Retail 2022 plus /pkey with the 2025 Standard KMS key: 0xC1900204 in 19 s

The /pkey attempt was the one I had hopes for, but setupact.log still recorded ProductKeyEditionId as ServerStandardEval, so setup picks the edition from the image and ignores a volume key it can’t use. The conversion itself is still worth knowing, because it’s the documented way to turn an evaluation install you’ve grown attached to into a licensed one. DISM lists the editions it can move to:

DISM /online /Get-TargetEditions

A Standard evaluation can become either Standard or Datacenter, and nothing else is offered. Pick the edition you’re actually licensed for, since the key you pass has to match it.

Editions that can be upgraded to:

Target Edition : ServerStandard
Target Edition : ServerDatacenter

I converted with the public KMS client key for 2022 Standard from Microsoft’s GVLK list. In production you’d use your own MAK or retail key instead, because a KMS key only activates against a KMS host:

DISM /online /Set-Edition:ServerStandard /ProductKey:VDYBN-27WPP-V4HQT-9VMD4-VMK7H /AcceptEula /NoRestart

It took 42 seconds and returned exit code 3010, which means a reboot is needed before the change takes effect. The line to look for is the edition package being added.

Starting to install product key...
Finished installing product key.

Adding package Microsoft-Windows-ServerStandardEdition~31bf3856ad364e35~amd64~~10.0.20348.587

Finished updating components.

Starting to apply edition-specific settings...
Finished applying edition-specific settings.

The operation completed successfully.

After the reboot slmgr /dli showed ServerStandard edition on the VOLUME_KMSCLIENT channel. Do this before the box becomes a domain controller, because Microsoft doesn’t support converting a DC from evaluation to retail. And if your production servers were built from evaluation media and never converted, convert them now, while that’s still a 42-second job.

Feature update stuck “In progress” after a scripted install

On my first Windows Update attempt I drove the download and install from a PowerShell script through the Windows Update COM API, because my lab tooling couldn’t click buttons yet. The install returned success and asked for a restart, but the update history kept “Windows Server 2025” at “In progress”, and the staged system sat in C:\$WINDOWS.~BT\NewOS without being committed. Two restarts, a plain shutdown /r and then InitiateShutdown with the install-updates flag, each came back to Windows Server 2022 in about 14 seconds.

The fix was to do it the way Microsoft documents it. On a fresh box I clicked Download and install, Accept and install and finally Restart now in Settings, and the offline phase started within two minutes. If you automate upgrades across many servers, test your tooling’s restart on one box first, because a server that reports success and reboots back into the old version is easy to miss in a report.

What I still don’t know

Some of this I couldn’t settle on the lab boxes I had, and I’d rather list it than guess:

  • How long a media upgrade takes compared with Windows Update
  • Whether a 2025 key entered before the upgrade carries over
  • Why the _msdcs check outlived the fix
  • The Windows Server 2019 path, untested here

The _msdcs one bothers me most. The zone was on the new DC, its SOA named the new DC as primary, and the old DC listed it as a name server, yet the demotion check still saw the old DC as the last DNS server for that one zone. My guess is that the check reads something that only refreshes on a timer I didn’t wait out, but I haven’t proved it. If you hit the same thing, verify the zone against the new DC the way I did before you use the override, and never use it blind.

Keep reading

Create a Bootable Windows 11 USB and Install Windows 11 Windows Create a Bootable Windows 11 USB and Install Windows 11 Set Up a Samba Share on Windows 11 and Access It from Linux Networking Set Up a Samba Share on Windows 11 and Access It from Linux Create Disk Partitions in Windows Using diskpart Windows Create Disk Partitions in Windows Using diskpart CompTIA A+ Practice Questions for 220-1201 and 220-1202 Networking CompTIA A+ Practice Questions for 220-1201 and 220-1202 Windows Event IDs Cheat Sheet: Security and System Logs (PDF) Cheat Sheets Windows Event IDs Cheat Sheet: Security and System Logs (PDF) Install Windows Server 2025: Complete Step by Step Guide Windows Install Windows Server 2025: Complete Step by Step Guide

Leave a Comment

Press ESC to close