Since 2016 · 50,000+ customers · ★ 5.0 on Google Live chatWhatsAppTelegramOpen a ticket
Get started
Windows Server

How to Migrate Windows Server to a New Machine (Step by Step)

How to migrate Windows Server to a new machine guide by 99RDP

Moving a Windows Server to new hardware, a new VM or a new host can be done in several ways, and choosing the right one decides how much downtime and risk you take on. This guide compares the four main approaches (role-by-role migration to a new server, full image restore, physical-to-virtual conversion and in-place upgrade) and walks through a safe migration plan from inventory to cutover.

Quick answerFor most servers, build a new server with a current Windows Server version and move roles, data and settings across one at a time, using Windows Server Migration Tools for roles, Storage Migration Service for file shares, and each application's own migration method. Keep the old server untouched until everything is tested.

Steps to migrate Windows Server to a new machine: inventory, build the new server, copy data, move roles, cut over
Migration steps

Choose a migration method

MethodWhat it doesBest forWatch out for
New server + role migrationFresh install, then move roles, data and settingsMost migrations, especially to a newer Windows versionMore steps, but the cleanest result
Bare-metal restoreRestore a full Windows Server Backup image onto the new machineSame Windows version, similar hardwareDrivers for new hardware; old problems come along
P2V / V2V conversionTurn the physical server's disks into virtual disks (for example with Disk2vhd)Moving a physical server into Hyper-V or another hypervisorDriver clean-up after conversion; licensing
In-place upgradeUpgrade the OS on the same machineSame hardware, newer WindowsNot a hardware move; not recommended for domain controllers

Step 1: Inventory the old server

Get-WindowsFeature | Where-Object Installed | Select-Object Name, DisplayName
Get-Service | Where-Object StartType -eq Automatic
Get-SmbShare
Get-NetIPConfiguration
Get-ScheduledTask | Where-Object TaskPath -notlike '\Microsoft*'

Also list installed applications and their licences, certificates (certlm.msc), local users and groups, firewall rules, and anything that refers to the server by name or IP address (DNS records, scripts, mapped drives, application settings).

Step 2: Back up everything

Take a full backup (Windows Server Backup, wbadmin start backup -allCritical -systemState, or your backup tool) and test that you can restore files from it. If the old server is a VM, also take a snapshot.

Step 3: Build the new server

  • Install the newest Windows Server version you're licensed for (2022 or 2025), with all updates.
  • Give it a temporary name and IP address while both servers run side by side.
  • Join the domain, install drivers, and set up backups and monitoring.

Step 4: Move roles, data and applications

  • Roles and settings (DHCP, NPS, local users and groups, IP settings): use Windows Server Migration Tools (Install-WindowsFeature Migration, then Export-SmigServerSetting and Import-SmigServerSetting).
  • File shares: use Storage Migration Service in Windows Admin Center, which copies data with permissions and can take over the old server's name and IP at cutover. For small shares, robocopy \\old\share D:\share /MIR /COPYALL /R:1 /W:1 works too.
  • Active Directory: promote the new server as an additional domain controller, move the FSMO roles, then demote the old one. Don't migrate DCs with images or in-place upgrades.
  • DNS: AD-integrated zones replicate automatically; standalone zones can be copied from %SystemRoot%\System32\dns.
  • IIS sites: use Web Deploy, or copy the content and recreate sites and bindings.
  • SQL Server and other applications: follow the vendor's migration procedure (for SQL, back up and restore the databases, then move logins and jobs).
Diagram of Storage Migration Service: Windows Admin Center inventories, transfers data and cuts over to the new server
Storage Migration Service

Step 5: Test, then cut over

  1. Test every role and application from a client, using the new server's temporary name or IP.
  2. Plan a maintenance window. Stop services on the old server so no new data is written there.
  3. Run a final data sync (for example robocopy with /MIR, or Storage Migration Service cutover).
  4. Rename and re-IP: take the old server offline and give the new server the old name and IP (or update DNS records and clients).
  5. Test again from clients.
How robocopy /MIR works for a final sync: copy new and changed files and delete files removed at the source
robocopy /MIR

Step 6: Decommission the old server

Keep the old server switched off but intact for a week or two in case you need to roll back. Then remove it from the domain, delete its DNS records, and wipe its disks securely.

Frequently asked questions

How do I migrate Windows Server to new hardware?

Install Windows Server on the new machine and migrate roles, data and applications across, or restore a full backup image onto it if the Windows version stays the same. Test before switching clients over.

Can I clone Windows Server to a new machine?

Yes, with a bare-metal restore from Windows Server Backup or a disk-imaging tool, but expect driver work on different hardware. For domain controllers, promote a new DC instead.

What tools does Microsoft provide for server migration?

Windows Server Migration Tools for roles and settings, Storage Migration Service for file servers, and in-place upgrade media for upgrading on the same machine.

How long does a server migration take?

Planning and testing take most of the time. With good preparation, the actual cutover is often under an hour.

Minakshi, Server Administrator L1 at 99RDP
Written byMinakshiServer Administrator L1, 99RDP. Part of the team that runs our servers and answers support.
Keep reading

More Windows Server guides

All Windows Server guides

Need a server for this?

✓ Setup in minutes✓ Full admin access✓ 7-day refund on new services