Windows Server 遷移工具 用於跨伺服器遷移角色、功能、設定與資料。若需移除以釋放資源或精簡映像,可透過 PowerShell 或 Server Core 命令列完成。本文提供標準版與 Server Core 兩種環境的完整移除步驟。
Import-Module ServerManagerRemove-WindowsFeature Migration或使用「伺服器管理員」→「移除角色及功能」圖形介面操作。
Server Core 無圖形介面,需使用命令列:
powershell 進入 PowerShell 工作階段。Import-Module ServerManagerRemove-WindowsFeature Migration在命令提示字元直接執行任一指令:
ocsetup ServerMigration /uninstall
# 或
pkgmgr /uu:ServerMigration
執行後無需額外步驟。
PowerShell 執行:
Get-WindowsFeature Migration
顯示 Install State : Removed 即成功。