InstallIntermediateTutorialsUpdated July 5, 2026

How to Perform an In-Place Upgrade to Windows Server 2025

Upgrade Windows Server 2012 R2, 2016, 2019, or 2022 to Windows Server 2025 in place while keeping roles, apps, and data - with verified prerequisites, setup commands, and post-upgrade checks.

Emanuel De Almeida July 5, 2026 17 min read
Difficulty
Intermediate
Time
1-3 hours per server
Steps
9
Last tested
July 5, 2026

An in-place upgrade moves a server from an older Windows Server release to Windows Server 2025 while keeping its settings, roles, and data intact - no rebuild, minimal reconfiguration. Starting with Windows Server 2025, nonclustered systems can jump up to four versions at once, so you can upgrade directly from Windows Server 2012 R2, 2016, 2019, or 2022. That convenience comes with real risk: an in-place upgrade cannot be reliably rolled back, and if setup corrupts partway through, a validated backup or VM snapshot is your only recovery path. This guide walks the full process the way Microsoft documents it - confirm the path and licensing, back up and prepare the server, run the upgrade from media (GUI or unattended) or via Windows Update, then reactivate and verify. One important caveat up front: Microsoft advises against in-place upgrading Active Directory domain controllers; for those, promote a clean Windows Server 2025 DC and demote the old one instead.

Before you start

What you will learn

  • How to upgrade an existing Windows Server to Windows Server 2025 in place - preserving roles, features, applications, and data - using installation media or Windows Update, plus how to prepare, verify, and recover.
  • An in-place upgrade keeps a server on supported ground without a rebuild, but it is a high-risk, one-way operation: there is no reliable rollback, so preparation and a tested backup are what separate a clean upgrade from a lost server.

Requirements

  • Local Administrator on the server, non-evaluation Windows Server 2025 media (ISO/USB/DVD) that matches your install type, and a valid 2025 product key or activation method.
  • A supported source version (Windows Server 2012 R2, 2016, 2019, or 2022), at least ~32 GB free on the system drive (more is safer), and the same or a higher-allowed edition and install type as your current server.
  • Local Administrator on the target server

Good to know

  • Setup itself typically runs 1-3 hours with several automatic reboots; plan a full maintenance window.
  • Steps reflect Microsoft's documented process as of July 2026; ISO builds and setup wording change over time.

Quick answer

Confirm your source version supports a direct path to 2025 (2012 R2, 2016, 2019, or 2022) and that your edition and install type match. Take a full backup and a restore test. Mount the Windows Server 2025 ISO, run setup.exe, enter your 2025 key, select the matching edition, and choose Keep files, settings, and apps. After several automatic reboots, reactivate, patch, and verify roles.

Mount ISO > run setup.exe > enter product key > select edition > accept terms > Keep files, settings, and apps > Install
Code
.\setup.exe /auto upgrade /dynamicupdate disable /eula accept

Step-by-step tutorial

9 steps
1

Confirm the upgrade path, edition rules, and licensing

Make sure a direct in-place upgrade to Windows Server 2025 is actually supported for your server before touching anything.

Open an elevated PowerShell prompt and record your current version and edition. A direct in-place upgrade to Windows Server 2025 is supported from Windows Server 2012 R2, 2016, 2019, or 2022 on nonclustered systems. Confirm three things: your source is on that list; your install type matches (Server Core stays Core, Desktop Experience stays Desktop - you cannot switch); and your target edition is the same or a permitted higher one (Standard can move to Datacenter or Datacenter: Azure Edition, but Datacenter cannot be downgraded to Standard). Make sure you have a valid Windows Server 2025 product key or activation method for that edition.

PowerShell
Get-ComputerInfo -Property WindowsProductName, WindowsEditionId, WindowsBuildLabEx
Expected resultYou can confirm your exact source version, edition, and install type, and that a direct path to Windows Server 2025 is supported.

Domain controllers: do not in-place upgrade AD DS servers - build and promote a clean 2025 DC instead. Clusters: use a Cluster OS rolling upgrade, which advances only one version at a time.

2

Back up the server and collect diagnostics

Create a tested recovery point and capture the current configuration in case the upgrade fails.

Take a full backup of the OS, applications, and data using Windows Server Backup or your partner backup solution, and for virtual machines take a snapshot/checkpoint. Then perform a restore test to confirm the backup is actually recoverable - an untested backup is not a rollback plan. Next, collect diagnostics and store them off the server, and export your installed roles and features so you can compare after the upgrade:

Get-ComputerInfo -Property WindowsBuildLabEx,WindowsEditionID | Out-File .\computerinfo.txt
systeminfo.exe | Out-File .\systeminfo.txt
ipconfig /all | Out-File .\ipconfig.txt
Get-WindowsFeature | Where-Object InstallState -eq 'Installed' | Export-Csv .\installed-features.csv -NoTypeInformation

PowerShell
wbadmin start systemstatebackup -backupTarget:E: -quiet
Expected resultYou have a validated, off-server backup or snapshot, a saved feature inventory, and diagnostic files you can reach even if the server does not boot.

Copy computerinfo.txt, systeminfo.txt, ipconfig.txt, and installed-features.csv to a USB drive or network share. Confirm at least ~32 GB free on the system drive - insufficient space is the most common cause of upgrade failure.

3

Prepare the server: disable NIC Teaming and pause agents

Remove the components most likely to break the upgrade's offline phase.

Disable NIC Teaming before the upgrade - it is a documented prerequisite and a common cause of setup failures. Then pause or stop third-party backup, antivirus, and monitoring agents per each vendor's guidance, since they can interfere with the offline install phase; re-enable them afterward. On virtual machines, a stale virtual NIC or backup-agent filter driver is a frequent culprit behind mid-upgrade failures.

PowerShell
Get-NetLbfoTeam | Remove-NetLbfoTeam -Confirm:$false
Expected resultNIC Teaming is disabled and third-party agents are paused, leaving a clean environment for setup.

Do not try to stop Microsoft Defender with Stop-Service WinDefend - it is tamper-protected, the command fails, and Defender does not need to be stopped for the upgrade. Only third-party security agents may need pausing.

4

Mount the media and identify the correct edition index

Attach the Windows Server 2025 ISO and determine which image in it matches your server.

Mount the non-evaluation Windows Server 2025 ISO (in Hyper-V/VMware, attach it to the VM; on physical hardware, mount the ISO or insert the USB/DVD). Note the drive letter, then list the editions inside the image so you know which index matches your install type and target edition:

Mount-DiskImage -ImagePath 'C:\ISOs\WindowsServer2025.iso'
dism /Get-WimInfo /WimFile:D:\sources\install.wim

Replace D: with the mounted drive letter. The index numbers are specific to your ISO, so read them from this output rather than assuming a fixed order.

PowerShell
dism /Get-WimInfo /WimFile:D:\sources\install.wim
Expected resultYou see the available editions (Standard/Datacenter, Core/Desktop Experience) with their index numbers, and you can pick the one matching your current install type and an allowed target edition.

You do not have to use /imageindex at all - when you run setup interactively, Setup shows a matching edition to select. Note the index only if you plan the unattended command in a later step.

5

Run the setup compatibility scan

Surface blocking issues before committing to the upgrade.

From the mounted media, run Windows Setup in scan-only mode to check for compatibility problems without starting the upgrade:

D:\setup.exe /Auto Upgrade /Compat ScanOnly /EULA accept

Review any warnings or blocks - typically incompatible applications, unsupported drivers, or roles that need attention. Resolve critical items before proceeding; note non-critical warnings so you can address them afterward.

PowerShell
D:\setup.exe /Auto Upgrade /Compat ScanOnly /EULA accept
Expected resultThe scan completes and reports any compatibility findings. A clean or warning-only result means you can proceed; critical blocks must be resolved first.

The scan is read-only and does not change the server. If it flags an application, uninstall or update it before the real upgrade rather than forcing past it.

6

Perform the in-place upgrade (GUI method)

Run the actual upgrade interactively with full visibility.

setup.exe > Keep files, settings, and apps > Install

From the mounted media, run setup.exe and follow the wizard:

  1. If prompted about downloading updates, choose your preference - Change how Setup downloads updates and pick Not right now if you are troubleshooting reliability, otherwise leave the default.
  2. Enter your Windows Server 2025 product key when prompted.
  3. Select the edition that matches your current install (same or a permitted higher edition).
  4. Review and accept the license terms.
  5. On the choice of what to keep, select Keep files, settings, and apps - this is what makes it an in-place upgrade.
  6. Click Install.

The server copies files, installs features and drivers, and restarts several times automatically. Do not interrupt it or power off during the upgrade.

PowerShell
D:\setup.exe
Expected resultAfter the final reboot you reach the Windows Server 2025 sign-in screen and can log in normally.

If you do not see Keep files, settings, and apps (older builds may word it *Keep files and apps* or *Install Windows and keep files, settings, and applications*), it usually signals an edition mismatch, a Core/Desktop mismatch, or evaluation media - go back and verify your media and edition.

7

Alternative: run the upgrade unattended from the command line

Automate the upgrade for scripted or remote scenarios.

From an elevated PowerShell prompt on the mounted media, run Setup with unattended switches. The simplest reliable form lets Setup auto-match your current edition:

.\setup.exe /auto upgrade /dynamicupdate disable /eula accept

If your ISO contains multiple editions and you need to pin one, add /imageindex <n> using the index you read from DISM, and add /quiet /compat ignorewarning for a fully silent run. Monitor progress from another window:

Get-Content C:\Windows\Panther\setupact.log -Wait -Tail 10

PowerShell
.\setup.exe /auto upgrade /dynamicupdate disable /eula accept
Expected resultSetup begins, the console returns, and the server restarts automatically to complete the upgrade offline.

Use /compat ignorewarning only after you have reviewed the scan results and judged the warnings acceptable - it suppresses the very prompts that would otherwise stop a bad upgrade. /imageindex values are ISO-specific; the wrong index (e.g. Core when you run Desktop Experience) will block the upgrade.

8

Alternative: upgrade via Windows Update (2019 or 2022 only)

Upgrade without installation media on eligible servers.

Settings > Windows Update > Windows Server 2025 feature update

The Windows Update path applies only to Windows Server 2019 or 2022 (non-Azure) and needs two things first: the required cumulative update installed (KB5078766 or later for 2022, KB5078752 or later for 2019), and an opt-in registry value. Add the opt-in key from an elevated prompt, then check Windows Update:

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

Then open Settings > Windows Update and look for the Windows Server 2025 feature update offer.

Expected resultThe Windows Server 2025 feature update appears in Windows Update and can be downloaded and installed like a normal update.

The same backup, licensing, and role prerequisites apply. This path is not available for 2012 R2 or 2016 (use media) or for Azure VMs (use the Azure in-place upgrade method).

9

Reactivate, verify, and restore services after the upgrade

Confirm Windows Server 2025 is healthy and return the server to production.

Log in and confirm the version, then reactivate and validate. Check activation with slmgr /xpr; if needed, install your key and activate:

slmgr /ipk XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
slmgr /ato

Install the latest cumulative updates, re-enable the third-party agents you paused and re-create NIC Teaming if you used it, then compare installed roles and features against the CSV you exported earlier and test your key applications. For KMS environments, ensure the KMS host already has a Windows Server 2025 key loaded.

PowerShell
Get-ComputerInfo -Property WindowsProductName, WindowsEditionId, OsBuildNumber
Expected resultThe product name reads Windows Server 2025, activation shows as licensed, all previously installed roles are present, and your applications work.

Wait until the server has been stable for a while before running heavy cleanup such as Dism /Online /Cleanup-Image /StartComponentCleanup /ResetBase - /ResetBase removes the ability to uninstall the superseded components.

How to Confirm the Windows Server 2025 Upgrade Succeeded

A successful in-place upgrade leaves you on Windows Server 2025 with everything preserved. Confirm the OS with Get-ComputerInfo (product name should read *Windows Server 2025*) or winver. Confirm licensing with slmgr /xpr, which should report the server as activated. Then confirm continuity: compare Get-WindowsFeature output against the CSV you exported before the upgrade so no role silently dropped, check that your services are running, and test the workloads that matter - file shares, web endpoints, DHCP/DNS scopes, or line-of-business apps. Network and domain membership should behave exactly as before. If any of these are wrong, treat the upgrade as incomplete rather than done.

  • Product name is Windows Server 2025, activation is licensed, every pre-upgrade role is still installed, and applications respond normally.
  • The version still shows the old release (setup rolled back), a role is missing, or a workload fails - investigate the setup logs and, if the server is unstable, restore from your backup.
  • Expected result of Get-ComputerInfo after a clean upgrade.
  • Confirms the 2025 license applied.

Troubleshooting

Setup fails in the SAFE_OS phase and rolls back (e.g. 0x800F081E-0x2003)

Cause: Usually a stale ISO build, a Dynamic Update pulling a bad setup file, or a virtual NIC / backup-agent filter driver interfering on a VM.

Use the latest Windows Server 2025 ISO, and in the setup wizard choose Change how Setup downloads updates > Not right now (or /dynamicupdate disable). On VMs, temporarily disable the virtual network adapter and pause the backup/monitoring agent, then retry.

The "Keep files, settings, and apps" option is missing or greyed out

Cause: Edition mismatch, a Server Core vs Desktop Experience mismatch, evaluation media, or an unsupported source version.

Verify you are using non-evaluation media whose edition and install type match your current server. Re-check the DISM index list and select the matching edition. You cannot switch Core to Desktop (or vice versa), change language, or upgrade to an evaluation build.

The upgrade failed and the server will not boot

Cause: In-place upgrades cannot be reliably rolled back; a mid-phase failure can leave the OS unbootable.

Restore from the full backup or VM snapshot you validated before starting. This is exactly why the tested backup in Step 2 is mandatory - there is no supported "undo" for a broken in-place upgrade.

Windows Update does not offer the Windows Server 2025 feature update

Cause: The required cumulative update is missing, or the opt-in registry key has not been set.

Install KB5078766 (2022) or KB5078752 (2019) or later, reboot, then set AllowWindowsServerFeatureUpdate to 1 as shown in Step 8 and re-check Windows Update. This path is 2019/2022 only.

Windows Server 2025 is not activated after the upgrade

Cause: The prior version's key does not activate 2025, or the KMS host lacks a 2025 key.

Enter your Windows Server 2025 key with slmgr /ipk and run slmgr /ato. For KMS, load a Windows Server 2025 host key on the KMS server first; for MAK or ADBA, use your organization's activation method.

Frequently asked questions

Can I upgrade directly from Windows Server 2016 or 2019 to 2025?

Yes. Starting with Windows Server 2025, nonclustered systems can upgrade up to four versions at once, so direct in-place upgrades are supported from Windows Server 2012 R2, 2016, 2019, and 2022.

Should I in-place upgrade a domain controller to Windows Server 2025?

No. Microsoft advises against in-place upgrading AD DS servers. Promote a clean Windows Server 2025 domain controller and demote the old one instead, which is safer and delivers the new AD improvements.

Can I change edition during the upgrade?

You can move Standard to Datacenter (or Datacenter: Azure Edition), but you cannot downgrade Datacenter to Standard, and you cannot switch between Server Core and Desktop Experience during an in-place upgrade.

Can I upgrade to Windows Server 2025 through Windows Update?

Only from Windows Server 2019 or 2022, and only after installing the required cumulative update (KB5078766 for 2022, KB5078752 for 2019, or later) and setting the AllowWindowsServerFeatureUpdate opt-in registry key.

Can I roll back if the in-place upgrade fails?

Not reliably. If setup fails early it may auto-revert, but a corrupted or unbootable result has no supported undo - recovery means restoring the full backup or VM snapshot you took beforehand.

Reader reviews

Rate this articleBe the first to rate
No written reviews yetRate the article above, or be the first to share your experience.

Related articles