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

Windows Server Migration Tools: How to Migrate Roles to Windows Server 2025

Windows Server Migration Tools guide by 99RDP

When you move to a new Windows Server, you rarely want to rebuild every role by hand. Windows Server Migration Tools (WSMT) is a built-in feature with PowerShell cmdlets that export roles, features, settings, local users and data from an old server and import them on a new one. This guide shows how to install it, how a migration works step by step, and which other Microsoft tool to use when WSMT isn't the right fit, for example for file servers.

Quick answer

# on both servers (Windows Server 2012 or later)
Install-WindowsFeature Migration
Add-PSSnapin Microsoft.Windows.ServerManager.Migration

# source: export, destination: import
Export-SmigServerSetting -FeatureID DHCP -Path C:\Mig -Verbose
Import-SmigServerSetting -FeatureID DHCP -Path C:\Mig -Verbose
Steps with Windows Server Migration Tools: install on both servers, export settings, copy, import
Migration Tools flow

What Windows Server Migration Tools does

WSMT is a set of PowerShell cmdlets that copy configuration and data from a source server to a destination server, including newer Windows Server versions. It is meant for side-by-side migrations to a new server, not in-place upgrades. Typical uses:

  • Roles such as DHCP Server, Network Policy Server and Remote Access
  • IP configuration
  • Local users and groups
  • Files and shares (for file servers, Microsoft recommends Storage Migration Service instead; see below)

Important: WSMT copies configuration, but it doesn't install roles. Install the role on the destination server first, then import its settings.

Choose the right migration method

What you're movingBest tool
File servers, shares and permissionsStorage Migration Service (Windows Admin Center)
DHCP, NPS, Remote Access, local users and groups, IP settingsWindows Server Migration Tools
Active Directory domain controllersPromote a new DC, move FSMO roles, demote the old one
Hyper-V virtual machinesLive migration or export/import
IIS websitesWeb Deploy
Same hardware, same rolesIn-place upgrade (Windows Server 2025 can upgrade directly from 2012 R2 and later)

Step 1: Install Windows Server Migration Tools

On Windows Server 2012 and later (source and destination)

On Windows Server 2019, 2022 and 2025 (and 2012 to 2016), WSMT is a built-in feature. Install it on both servers:

Install-WindowsFeature Migration

Or tick Windows Server Migration Tools under Features in Server Manager's Add Roles and Features wizard.

On an older source server (2008 / 2008 R2)

Older servers don't have the feature. On the destination server, use SmigDeploy.exe (in %windir%\System32\ServerMigrationTools) to create a deployment folder for the source's operating system and architecture, copy that folder to the source, and run SmigDeploy.exe there to register the cmdlets. Microsoft's WSMT installation guide lists the exact parameters for each source version.

Step 2: Load the cmdlets

Open PowerShell as Administrator on each server and load the snap-in:

Add-PSSnapin Microsoft.Windows.ServerManager.Migration
Get-SmigServerFeature      # features this server can migrate
Comparison of Windows Server Migration Tools and Storage Migration Service
Which tool for what

Step 3: Export settings on the source server

# a role, for example DHCP (stop the service first so the database is consistent)
Stop-Service DHCPServer
Export-SmigServerSetting -FeatureID DHCP -Path C:\Mig\DHCP -Verbose

# local users and groups
Export-SmigServerSetting -User All -Group -Path C:\Mig\Users -Verbose

# IP configuration
Export-SmigServerSetting -IPConfig -Path C:\Mig\IP -Verbose

You're asked for a password that encrypts the migration store. Keep it; you need it to import.

Step 4: Copy the store and import on the destination

Copy C:\Mig to the destination server (over a share or with robocopy). Install the role there first, then import:

Install-WindowsFeature DHCP -IncludeManagementTools
Import-SmigServerSetting -FeatureID DHCP -Path C:\Mig\DHCP -Force -Verbose
Start-Service DHCPServer

Import-SmigServerSetting -User All -Group -Path C:\Mig\Users -Verbose

For DHCP in a domain, authorize the new server in Active Directory (Add-DhcpServerInDC) and remove the old one.

Diagram of migrating DHCP with Migration Tools: export from the old server, import on the new, authorise, stop the old
Moving DHCP

Step 5: Move files and shares (small migrations)

For a handful of folders you can transfer data and share settings with WSMT. Run the receiver on the destination and the sender on the source:

# destination
Receive-SmigServerData
# source
Send-SmigServerData -ComputerName NEWSERVER -SourcePath D:\Shares -DestinationPath D:\Shares -Recurse -Include All -Force

For whole file servers, use Storage Migration Service in Windows Admin Center. It inventories the old server, transfers files with permissions, and can take over the old server's name and IP address at cutover.

Step 6: Verify and clean up

  • Test each migrated role from a client (for example request a new DHCP lease, sign in with a migrated local account).
  • Check the event logs on the destination for warnings.
  • Keep the old server offline but intact for a few days in case you need to roll back.
  • Remove the tools when you're finished: Uninstall-WindowsFeature Migration.

Frequently asked questions

Are Windows Server Migration Tools available in Windows Server 2025?

Yes. On Windows Server 2019, 2022 and 2025 it's a built-in feature that you install with Install-WindowsFeature Migration or from Server Manager.

What is the best tool to migrate a Windows file server?

Storage Migration Service, managed from Windows Admin Center. Microsoft recommends it over WSMT for file shares.

Does WSMT install the roles on the new server?

No. It only copies their settings and data. Install each role on the destination server before you import.

Can I migrate between servers in different subnets?

Yes. Cross-subnet migration is supported from Windows Server 2012 onward.

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