Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security & DevOps Insights

  • Home
  • About
  • Advertise With US
  • Contact
  • Reviews
  • Toggle search form
Home » Windows » Migrate Roles and Features to Windows Server 2022 using WSMT

Migrate Roles and Features to Windows Server 2022 using WSMT

Posted on 27/03/202211/09/2024 Imoh Etuk By Imoh Etuk No Comments on Migrate Roles and Features to Windows Server 2022 using WSMT
How to Migrate Roles and Features to Windows Server 2022 using WSMT
         Migration with Windows Server Migration Tools

In this article, we shall learn how to Migrate Roles and Features to Windows Server 2022 using WSMT. Since the introduction of Windows Server 2003, administrators have had the option to migrate roles and features to newer Windows Server versions using the Windows Server Migration Tools (WSMT). Please see Network File System: How to install NFS Server on Windows Server and how to install and Configure Hyper-V on Windows Server on Windows Server 2019, and 2022 via the Server Manager, PowerShell or DISM.

Despite not receiving recent updates from Microsoft, WSMT remains a viable choice for migrating Windows Server, even though there are alternative methods available based on the specific role being transferred. Please see “How to migrate WDS and MDT to a new Windows Server“.

For instance, Windows Server 2019 brought about the Storage Migration Service for file servers. When it comes to updating domain controllers, administrators often opt to install a new server, allowing for the replication of the Active Directory database and SYSVOL. However, it’s important to note that using WSMT may exhibit some bugs when employed with Server 2022.

However migrating windows server using WSMT remains valuable for tasks like transferring roles like DHCP, along with local settings including users and groups.

These guides may be of interest to you: What is ADK, MDT, Microsoft Endpoint Configuration Manager (SCCM), Intune, Autopilot, and WSUS, how to Import a user profile in Windows to another PC, and How to Transfer User Profile to another User in Windows.

Installing and Running WSMT

Install the Windows Server Migration Tools on the destination server using the Server Manager GUI. Installing the tools with PowerShell is also possible, as shown below:

Install-WindowsFeature Migration –ComputerName <computer_name>
Windows Server Migration Tool Installation
WSMT Feature

After installing the WSMT on the destination server, the workflow allows you to deploy these tools to the source server. In this case, I’m using a UNC path, which is supported.

Deploy Windows Server Migration Tool
Deploy the server migration tools from the destination server to the source server using the UNC path
After executing the above command, the SMT_ws16_amd64 directory is automatically created on the source server.

How to Transfer Windows License from one PC to the other on Windows, How to transfer data from an old PC to a new PC, and How to transfer data from an old PC to a new PC.

Frequent Mistakes in Migrating Windows Server Using WSMT

Migrating a windows server using WSMT can often display a number of buggy behaviors during testing on newer servers.

After you’ve deployed the tools to the source server, you should run the SmigDeploy.exe command to automatically register the PowerShell cmdlets. Several errors might occur during this process. Such errors include:

  • .NET errors indicate that.NET was not installed, even when it was.
  • When registering the cmdlets, PowerShell crashes.
  • Errors relating to access denied and memory corruption

Navigate using PS C:\SMIG\SMT_ws16_amd64>dir path to the SmigDeploy.exe file directory published to the source server from the destination server, you will be able to see the contents of the SmigDeploy.exe file. Running this file registers the PowerShell cmdlets on the source server.

Please see how to Deploy MVC Application to AWS EC2 Using RDP Connection and Web Deploy, and Migrate Veeam MSSQL Database to a new MSSQL Server.

Workarounds for the WSMT Bugs

The solution is to simply install WSMT on the source server instead of using the published WSMT from the destination server. After installing the Windows feature on the source server, you will need to manually register the snap-in using the following cmdlet:

Add-PSSnapin Microsoft.Windows.ServerManager.Migration

Then, you can run the Export-SmigServerSetting cmdlet to export roles and features. The export cmdlet below will do this for you:

Export-SmigServerSetting -featureID <your FeatureID> -User All -Group -path c:\SMIG -Verbose

Once the feature ID is exported, you can then import the features on the destination server using the import cmdlet.

Import-SmigServerSetting -FeatureID <your FeatureID> -Path <path to the source export> -Verbose

In summary, for several years, Microsoft has not enhanced the WSMT. As a result, you’ll almost certainly run into some frustrating bugs while using them with Windows Server 2022.

Nonetheless, they’re still valuable in situations where you don’t have access to newer tools or if an in-place update isn’t possible.

I hope you found this guide useful on how to Migrate Roles and Features to Windows Server 2022 using WSMT. Please feel free to leave a comment below.

5/5 - (1 vote)

Thank you for reading this post. Kindly share it with others.

  • Share on X (Opens in new window) X
  • Share on Reddit (Opens in new window) Reddit
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Share on Facebook (Opens in new window) Facebook
  • Share on Pinterest (Opens in new window) Pinterest
  • Share on Tumblr (Opens in new window) Tumblr
  • Share on Telegram (Opens in new window) Telegram
  • Share on WhatsApp (Opens in new window) WhatsApp
  • Share on Mastodon (Opens in new window) Mastodon
  • Share on Bluesky (Opens in new window) Bluesky
  • Share on Threads (Opens in new window) Threads
  • Share on Nextdoor (Opens in new window) Nextdoor
Windows, Windows Server Tags:PowerShell

Post navigation

Previous Post: How to install PostgreSQL on Ubuntu
Next Post: How to redirect requests for your bucket’s website endpoint to another bucket or domain

Related Posts

  • Screenshot 2020 06 25 at 23.38.40
    What is Registry Editor and how to access the registry hives Windows
  • How to fix BitLocker always prompting for Recovery Key
    How to fix BitLocker always prompting for Recovery Key Windows
  • Account restrictions are preventing this user from signing in
    Resolve Account restrictions are preventing this user from signing in: User Account Password has expired Windows
  • HyperV VM disk size increase
    How to Increase Disk Size in Hyper-V Virtualization
  • original
    Windows Deployment Services: WDSUTIL CommandLine Options on Windows Server 2019 Windows Server
  • Active Directory migration
    Migrate Active Directory Domain and Forest with Veeam Replica Backup

More Related Articles

Screenshot 2020 06 25 at 23.38.40 What is Registry Editor and how to access the registry hives Windows
How to fix BitLocker always prompting for Recovery Key How to fix BitLocker always prompting for Recovery Key Windows
Account restrictions are preventing this user from signing in Resolve Account restrictions are preventing this user from signing in: User Account Password has expired Windows
HyperV VM disk size increase How to Increase Disk Size in Hyper-V Virtualization
original Windows Deployment Services: WDSUTIL CommandLine Options on Windows Server 2019 Windows Server
Active Directory migration Migrate Active Directory Domain and Forest with Veeam Replica Backup

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

VEEAMLEGEND

vexpert-badge-stars-5

Virtual Background

GoogleNews

Categories

veeaam100

Veeam Vanguard

  • How to Convert Google Forms Into Microsoft Forms banner
    Convert Google Forms Into Microsoft Forms Microsoft Exchange/Office/365
  • Featured image multi monitor
    Enhanced Multi-Monitor Experience with Windows 11 Windows
  • settings app not working featured 800x400 1
    Disable or Remove Kiosk Mode Via the Local Settings Windows
  • copy and paste between host machines and VirtualBox VM
    How to copy and paste between host machines and VirtualBox VM Virtualization
  • featured image
    How to Add or Remove Sites from Favorites list in Microsoft Edge Windows
  • Snapshot replication fix on synology
    Fix Task failed to perform Scheduled Snapshot Replication [Part 1] Storage
  • HyperV
    How to install free Hyper-V Server on a VMware Workstation Virtualization
  • How To Put Multiple OS ISO Files In One Bootable USB Disk
    USB Drive: Create a Multiboot with Multiple OS ISOs Windows

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1,819 other subscribers
  • RSS - Posts
  • RSS - Comments
  • About
  • Authors
  • Write for us
  • Advertise with us
  • General Terms and Conditions
  • Privacy policy
  • Feedly
  • Telegram
  • Youtube
  • Facebook
  • Instagram
  • LinkedIn
  • Tumblr
  • Pinterest
  • Twitter
  • mastodon

Tags

Active Directory Azure Bitlocker Microsoft Windows PowerShell WDS Windows 10 Windows 11 Windows Deployment Services Windows Server 2016

Copyright © 2025 TechDirectArchive

 

Loading Comments...
 

You must be logged in to post a comment.