
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.
Choose a migration method
| Method | What it does | Best for | Watch out for |
|---|---|---|---|
| New server + role migration | Fresh install, then move roles, data and settings | Most migrations, especially to a newer Windows version | More steps, but the cleanest result |
| Bare-metal restore | Restore a full Windows Server Backup image onto the new machine | Same Windows version, similar hardware | Drivers for new hardware; old problems come along |
| P2V / V2V conversion | Turn the physical server's disks into virtual disks (for example with Disk2vhd) | Moving a physical server into Hyper-V or another hypervisor | Driver clean-up after conversion; licensing |
| In-place upgrade | Upgrade the OS on the same machine | Same hardware, newer Windows | Not 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, thenExport-SmigServerSettingandImport-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:1works 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).
Step 5: Test, then cut over
- Test every role and application from a client, using the new server's temporary name or IP.
- Plan a maintenance window. Stop services on the old server so no new data is written there.
- Run a final data sync (for example robocopy with
/MIR, or Storage Migration Service cutover). - 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).
- Test again from clients.
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.


