Windows Servers

In-Place Upgrade Windows Server 2016 to 2022: Step by Step

By NileVPS Team · Published · 4 min read

اقرأ المقال بالعربي

Windows Server 2016 reached the end of mainstream support in January 2022, and extended support, which delivers security updates, ends on January 12, 2027. After that date the system stops receiving patches, which is a real risk for any server reachable from the internet. Windows Server 2022 is a natural target: it brings TLS 1.3 enabled by default, Secured-core options, SMB over QUIC in the Azure Edition, better container support and a longer support window. This guide helps you choose between an in-place upgrade and a fresh server, prepare properly, and keep a way back if something goes wrong.

Two paths: upgrade in place or build new

In-place upgradeNew server and migrate
EffortLower, one maintenance windowHigher, roles and data moved one by one
DowntimeOne longer reboot sequenceVery short cutover per service
LeftoversOld drivers, settings and clutter stayClean system
RollbackRestore from snapshot or backupOld server keeps running until you switch
Best forSimple servers, single-purpose appsDomain controllers, file servers, critical workloads

Microsoft supports a direct in-place upgrade from Windows Server 2016 to 2022. The rules to know:

  • Edition: Standard can upgrade to Standard or Datacenter; Datacenter can only upgrade to Datacenter.
  • Installation type: Desktop Experience stays Desktop Experience and Server Core stays Server Core. You cannot switch between them during an upgrade.
  • Language and architecture must match the existing installation.
  • Evaluation editions cannot be upgraded directly to a licensed one of a newer version.

Preparation checklist

  1. Inventory the server: installed roles, features and applications.

``powershell Get-WindowsFeature | Where-Object Installed | Select-Object Name Get-CimInstance Win32_Product | Select-Object Name, Version ``

  1. Check application support: confirm with each vendor that their software supports Windows Server 2022, especially backup agents, antivirus and database engines.
  2. Patch 2016 fully and reboot, so the upgrade starts from a clean state.
  3. Free disk space: leave at least 20 to 30 GB free on C: for setup files and the rollback folder.
  4. Back up: take a VPS snapshot immediately before starting, and keep a separate file-level or system-state backup. On NileVPS, snapshots are available from the control panel and are the fastest way to roll back.
  5. Record network settings: static IP, DNS servers and routes, in case a driver change resets them.

``powershell Get-NetIPConfiguration | Out-File C:\pre-upgrade-network.txt ``

  1. Make sure you have console access: if RDP does not come back after a reboot, the NileVPS browser console still lets you log in and fix things.
  2. Licensing: you need a valid Windows Server 2022 license for the new version. Check how licensing is handled for your plan before upgrading.

Performing the in-place upgrade

  1. Attach or copy the Windows Server 2022 installation media to the server (where your environment allows mounting an ISO, or by copying the extracted files to a local folder).
  2. Run setup.exe as administrator.
  3. Choose to download updates during setup if the server has internet access.
  4. Enter the product key and select the matching edition and installation type.
  5. On the "Choose what to keep" screen, select Keep files, settings and apps. Choosing "Nothing" performs a clean install and wipes the current setup.
  6. Review compatibility warnings carefully. Setup lists blocking issues, such as unsupported software, before it changes anything.
  7. Let setup run. The server reboots several times; this can take an hour or more depending on disk speed and installed roles.

Setup can also be run unattended:

D:\setup.exe /auto upgrade /imageindex 2 /dynamicupdate enable /compat scanonly

Run it first with /compat scanonly to get a compatibility report without upgrading, then remove that switch for the real run.

After the upgrade

Get-ComputerInfo -Property OsName, OsVersion
Get-Service | Where-Object { $_.StartType -eq 'Automatic' -and $_.Status -ne 'Running' }
Get-WinEvent -LogName System -MaxEvents 50 | Where-Object LevelDisplayName -eq 'Error'

Then test every application, install pending updates and confirm backups still run.

Migrating to a new 2022 server instead

For important workloads, building a fresh Windows Server 2022 VPS and moving services across is usually cleaner:

  • Domain controllers: do not upgrade them in place if you can avoid it. Promote a new 2022 server as an additional domain controller, let replication finish, move the FSMO roles with Move-ADDirectoryServerOperationMasterRole, update DNS settings on clients, then demote the 2016 DC. See our guide to promoting a domain controller.
  • File servers: the Storage Migration Service in Windows Admin Center inventories shares, copies data with permissions and can take over the old server's name and IP. Robocopy with /MIR /COPYALL is a simpler alternative for smaller servers.
  • SQL Server: back up and restore databases on the new server, then move logins and jobs.

Keep the old server running, but isolated from changes, until users confirm everything works.

Rollback plan

If the upgrade fails during setup, Windows rolls back automatically. If problems appear afterwards, restoring the snapshot taken before the upgrade is the quickest route back to a working 2016 system. You can also deploy a new Windows VPS to rehearse the whole process on a copy before touching production.

FAQ

Can I upgrade Windows Server 2016 directly to 2022?

Yes. Microsoft supports an in-place upgrade from 2016 to 2022 as long as the edition, language and installation type are compatible.

Will my applications and settings survive the upgrade?

If you choose "Keep files, settings and apps", installed applications and data remain. Compatibility still depends on each application, so check vendor support and test after the upgrade.

What happens if I stay on Windows Server 2016 after January 2027?

The server keeps running, but it no longer receives security updates. Any newly discovered vulnerability will stay unpatched, which is risky for servers exposed to the internet.

Related guides