詳解:如何安裝Win2008 R2數(shù)據(jù)遷移工具
微軟的Windows Server 2008 R2在性能和功能上都得到了***的提升,諸多企業(yè)可將舊有的Windows Server 2003等服務器角色、操作系統(tǒng)設置和數(shù)據(jù)遷移到運行Win2008 R2。本文則介紹如何在源服務器和目標服務器上安裝Windows Server遷移工具。
如果計劃從運行 Windows Server 2008 或 Windows Server 2003 的計算機中遷移角色、功能或其他數(shù)據(jù),則在目標服務器上安裝Windows Server遷移工具后必須完成兩項其他任務。
- 在運行Windows Server 2008 R2的計算機上創(chuàng)建Windows Server遷移工具部署文件夾。
- 在運行Windows Server 2008或Windows Server 2003的源計算機上注冊Windows Server遷移工具。
一、在完整安裝的Windows Server 2008 R2上安裝Windows Server遷移工具的步驟
1、使用提升的用戶權(quán)限打開 Windows PowerShell 會話。若要執(zhí)行此操作,請依次單擊「開始」、“所有程序”、“附件”和“Windows PowerShell”,右鍵單擊“Windows PowerShell”快捷方式,然后單擊“以管理員身份運行”。
2、將服務器管理器模塊加載到 Windows PowerShell 會話中。若要加載服務器管理器模塊,請鍵入以下內(nèi)容,然后按 Enter。
Import-Module ServerManager
3、鍵入以下內(nèi)容,然后按 Enter。
Add-WindowsFeature Migration
二、在服務器核心安裝的Windows Server 2008 R2上安裝Windows Server遷移工具的步驟
1、oclist 命令顯示服務器核心安裝選項中的可用角色和功能、角色和功能命令 ID 以及安裝的角色或功能的列表。在命令提示符下,鍵入以下命令,然后按 Enter。
oclist
默認情況下,運行 Windows Server 2008 R2 服務器核心安裝選項的計算機上的命令提示符已使用提升的用戶權(quán)限運行。您不必在服務器核心環(huán)境中使用提升的用戶權(quán)限啟動命令提示符。
2、在顯示的 oclist 命令結(jié)果中查找以下內(nèi)容。如果所有三項內(nèi)容都位于已安裝的程序列表中,請?zhí)^下一步。如果缺少任一項,請繼續(xù)執(zhí)行下一步。
NetFx2-ServerCore
MicrosoftWindowsPowerShell
ServerManager-PSH-Cmdlets
3、鍵入下列內(nèi)容之一,然后按 Enter。
ocsetup NetFx2-ServerCore;MicrosoftWindowsPowerShell;ServerManager-PSH-Cmdlets
Pkgmgr /iu:NetFx2-ServerCore;MicrosoftWindowsPowerShell;ServerManager-PSH-Cmdlets
4、請執(zhí)行以下操作之一。
若要在“命令提示符”窗口中使用 ocsetup 或 pkgmgr 命令安裝 Windows Server 遷移工具,請鍵入下列內(nèi)容之一,然后按 Enter。您已完成了該過程,不需要執(zhí)行其余步驟。
ocsetup ServerMigration
pkgmgr /iu:ServerMigration
若要使用 Windows PowerShell 安裝 Windows Server 遷移工具,請繼續(xù)執(zhí)行下一步。
5、通過在當前的“命令提示符”會話中鍵入以下內(nèi)容,然后按 Enter,打開一個 Windows PowerShell 會話。
%windir%\System32\WindowsPowerShell\v1.0\powershell.exe
6、將服務器管理器管理單元加載到 Windows PowerShell 會話中。若要加載服務器管理器管理單元,請鍵入以下內(nèi)容,然后按 Enter。
Import-Module ServerManager
7、使用服務器管理器的 Windows PowerShell Add-WindowsFeature cmdlet 來安裝 Windows Server 遷移工具。在 Windows PowerShell 會話中,鍵入以下命令,然后按 Enter。
Add-WindowsFeature Migration
【編輯推薦】