Microsoft now supports in-place upgrades to Windows Server 2025 from Windows Server 2012 R2 and later
Published: Jan 17, 2025
In this post, I will demonstrate how to perform an in-place upgrade to Windows Server 2025 from one of your existing Windows Servers. Reminder: Microsoft fully supports in-place upgrades to Windows Server 2025 from Windows Server 2012 R2 and later versions.
In this article, I’ll show you how to perform the upgrade from the command line. Using this method, you can automate in-place upgrades to Windows Server 2025 across many devices.
Make sure the ISO file you downloaded or have contains the edition of Windows Server 2025 you need (Standard, Datacenter). Also, verify that you have an official product activation key or confirm that your network has an existing Key Management Services (KMS) server to auto-activate your server.
With that out of the way, go ahead and insert a USB stick with the Windows Server 2025 installation media (ISO) in your server or use your virtualization software to mount the ISO to one of your virtual servers. Here, I am adding the ISO to my ‘WS22-DC4’ VM running Windows Server 2022.
Before running Windows Setup on the server you want to upgrade, let’s collect some diagnostics for troubleshooting purposes in the event the Feature Update is unsuccessful. Let’s run the following Get-ComputerInfo, systeminfo.exe, and ipconfig commands to collect some important information:
Get-ComputerInfo -Property WindowsBuildLabEx,WindowsEditionID | Out-File -FilePath .\computerinfo.txt
systeminfo.exe | Out-File -FilePath systeminfo.txt
ipconfig /all | Out-File -FilePath ipconfig.txt
Here is the output for the last two commands above.
We’re ready to start. Let’s open a PowerShell console with administrative rights.
First, I’ll type ‘D:‘ to go to the D: drive (where the Windows Server 2025 ISO is mounted). A quick ‘dir‘ command shows the setup.exe file is there. Next, we begin with this command to run Setup as quietly as possible.
.\setup.exe /auto upgrade /quiet /imageindex 4 /DynamicUpdate Disable /Compat IgnoreWarning /eula accept
Without any further prompts from me, the server rebooted and the offline phase of the upgrade continues. As Setup finishes, the new Windows Server 2025 login screen is shown. I log in again and come to the Desktop. Success!
You need to run Windows Update to get the latest patches. To continue in the ‘command-line’ only vein, open the Terminal App with admin rights:
I logged into the server and confirmed a few things. I ran a PowerShell command again from my Windows 11 24H2 workstation client, before and right after the upgrade of the domain controller. It seems to have worked.
As you can see, ‘WS22-DC4‘ went from Windows Server 2022 Datacenter to Windows Server 2025 Datacenter. Success!
There are some general steps you should perform after an upgrade like this. Check the Event Viewer for any Critical or Error events. Also, navigate to Settings -> Windows Update and make sure you install all updates, reboot, and repeat. Wait until checking for updates yields no new updates.