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