Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學

Windows Server 遷移工具移除完整指南:PowerShell 與 Server Core 雙模式

編輯:XP 系統應用技巧

Windows Server 遷移工具 用於跨伺服器遷移角色、功能、設定與資料。若需移除以釋放資源或精簡映像,可透過 PowerShell 或 Server Core 命令列完成。本文提供標準版與 Server Core 兩種環境的完整移除步驟。

完整安裝版(含 GUI)移除步驟

  1. 以系統管理員身分開啟 PowerShell。
  2. 匯入 ServerManager 模組:
    Import-Module ServerManager
  3. 移除遷移工具功能:
    Remove-WindowsFeature Migration

或使用「伺服器管理員」→「移除角色及功能」圖形介面操作。

Server Core 安裝選項移除步驟

Server Core 無圖形介面,需使用命令列:

方法一:PowerShell(建議)

  1. 輸入 powershell 進入 PowerShell 工作階段。
  2. Import-Module ServerManager
  3. Remove-WindowsFeature Migration

方法二:OCSetup / Pkgmgr(傳統指令,仍支援)

在命令提示字元直接執行任一指令:

ocsetup ServerMigration /uninstall
# 或
pkgmgr /uu:ServerMigration

執行後無需額外步驟。

驗證移除結果

PowerShell 執行:
Get-WindowsFeature Migration
顯示 Install State : Removed 即成功。

注意事項

  • 移除前確認無進行中的遷移作業。
  • 若伺服器為遷移來源/目標,移除工具不影響已遷移的資料與設定。
  • Server Core 環境建議優先使用 PowerShell 方式,相容性最佳。
Copyright © Windows教程網 All Rights Reserved