

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# 加速探索 Microsoft 工作負載並將其遷移至 AWS
<a name="accelerate-the-discovery-and-migration-of-microsoft-workloads-to-aws"></a>

*Ali Alzand，Amazon Web Services*

## 總結
<a name="accelerate-the-discovery-and-migration-of-microsoft-workloads-to-aws-summary"></a>

此模式說明如何使用 [Migration Validator Toolkit PowerShell 模組](https://github.com/aws-samples/migration-validator-toolkit-for-microsoft-workloads)來探索 Microsoft 工作負載並將其遷移至 AWS。此模組的運作方式是針對與任何 Microsoft 工作負載相關聯的一般任務，執行多次檢查和驗證。例如，模組會檢查是否有可能連接多個磁碟的執行個體，或使用多個 IP 地址的執行個體。如需模組可執行之檢查的完整清單，請參閱模組 GitHub 頁面上的[檢查](https://github.com/aws-samples/migration-validator-toolkit-for-microsoft-workloads#checks)一節。

您的組織可透過 Migration Validator Toolkit PowerShell 模組，減少用來探索 Microsoft 工作負載上有哪些應用程式和服務正在運作的時間和心力。此模組也可助您識別工作負載的組態，以便瞭解 AWS 是否支援您的組態。此模組也會提供後續步驟和緩解動作的建議，以避免在遷移之前、期間或之後出現任何組態錯誤。

## 先決條件和限制
<a name="accelerate-the-discovery-and-migration-of-microsoft-workloads-to-aws-prereqs"></a>

**先決條件**
+ 本機管理員帳戶
+ PowerShell 4.0

**限制**
+ 僅適用於 Microsoft Windows Server 2012 R2 或更新版本

## 工具
<a name="accelerate-the-discovery-and-migration-of-microsoft-workloads-to-aws-tools"></a>

**工具**
+ PowerShell 4.0

**程式碼儲存庫**

此模式的 Migration Validator Toolkit PowerShell 模組可在 GitHub[migration-validator-toolkit-for-microsoft-workloads](https://github.com/aws-samples/migration-validator-toolkit-for-microsoft-workloads) 中取得。

## 史詩
<a name="accelerate-the-discovery-and-migration-of-microsoft-workloads-to-aws-epics"></a>

### 在單一目標上執行 Migration Validator Toolkit PowerShell 模組
<a name="run-the-migration-validator-toolkit-powershell-module-on-a-single-target"></a>


| 任務 | Description | 所需的技能 | 
| --- | --- | --- | 
| 下載、擷取、匯入和叫用模組。 | 選擇下列其中一種方法來下載和部署模組：[\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/prescriptive-guidance/latest/patterns/accelerate-the-discovery-and-migration-of-microsoft-workloads-to-aws.html)**執行 PowerShell 指令碼**在 PowerShell 中，執行下列範例程式碼：<pre>#MigrationValidatorToolkit<br />$uri = 'https://github.com/aws-samples/migration-validator-toolkit-for-microsoft-workloads/archive/refs/heads/main.zip'<br />$destination = (Get-Location).Path<br />if ((Test-Path -Path "$destination\MigrationValidatorToolkit.zip" -PathType Leaf) -or (Test-Path -Path "$destination\MigrationValidatorToolkit")) {<br />    write-host "File $destination\MigrationValidatorToolkit.zip or folder $destination\MigrationValidatorToolkit found, exiting"<br />}else {<br />    Write-host "Enable TLS 1.2 for this PowerShell session only."<br />    [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12<br />    $webClient = New-Object System.Net.WebClient<br />    Write-host "Downloading MigrationValidatorToolkit.zip"<br />    $webClient.DownloadFile($uri, "$destination\MigrationValidatorToolkit.zip")<br />    Write-host "MigrationValidatorToolkit.zip download successfully"<br />    Add-Type -Assembly "system.io.compression.filesystem"<br />    [System.IO.Compression.ZipFile]::ExtractToDirectory("$destination\MigrationValidatorToolkit.zip","$destination\MigrationValidatorToolkit")<br />    Write-host "Extracting MigrationValidatorToolkit.zip complete successfully"<br />    Import-Module "$destination\MigrationValidatorToolkit\migration-validator-toolkit-for-microsoft-workloads-main\MigrationValidatorToolkit.psm1"; Invoke-MigrationValidatorToolkit<br />}</pre>此程式碼會從 .zip 檔案下載模組。然後，程式碼會擷取、匯入和叫用模組。**下載並解壓縮 .zip 檔案**[\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/prescriptive-guidance/latest/patterns/accelerate-the-discovery-and-migration-of-microsoft-workloads-to-aws.html)**複製 GitHub 儲存庫**[\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/prescriptive-guidance/latest/patterns/accelerate-the-discovery-and-migration-of-microsoft-workloads-to-aws.html) | 系統管理員 | 
| 手動叫用模組。 | [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/prescriptive-guidance/latest/patterns/accelerate-the-discovery-and-migration-of-microsoft-workloads-to-aws.html)[Format-Table](https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/format-table?view=powershell-7.3)format：<pre>Import-Module .\MigrationValidatorToolkit.psm1;Invoke-MigrationValidatorToolkit</pre>[Format-List](https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/format-list?view=powershell-7.3)format：<pre>Import-Module .\MigrationValidatorToolkit.psm1;Invoke-MigrationValidatorToolkit -List</pre>[Out-GridView](https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/out-gridview?view=powershell-7.3)format：<pre>Import-Module .\MigrationValidatorToolkit.psm1;Invoke-MigrationValidatorToolkit -GridView</pre>[ConvertTo-Csvformat](https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/convertto-csv?view=powershell-7.3)：<pre>Import-Module .\MigrationValidatorToolkit.psm1;Invoke-MigrationValidatorToolkit -csv</pre> | 系統管理員 | 

### 在多個目標上執行 Migration Validator Toolkit PowerShell 模組
<a name="run-the-migration-validator-toolkit-powershell-module-on-multiple-targets"></a>


| 任務 | Description | 所需的技能 | 
| --- | --- | --- | 
| 下載 .zip 檔案或複製 GitHub 儲存庫。 | 請選擇下列其中一個選項：[\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/prescriptive-guidance/latest/patterns/accelerate-the-discovery-and-migration-of-microsoft-workloads-to-aws.html)<pre>git clone https://github.com/aws-samples/migration-validator-toolkit-for-microsoft-workloads.git</pre> | 系統管理員 | 
| 更新 server.csv 清單。 | 如果您下載了 .zip 檔案，請遵循下列步驟：[\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/prescriptive-guidance/latest/patterns/accelerate-the-discovery-and-migration-of-microsoft-workloads-to-aws.html) | 系統管理員 | 
| 叫用 模組。 | 您可以使用網域內任何使用具有目標電腦管理員存取權的網域使用者的電腦。[\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/prescriptive-guidance/latest/patterns/accelerate-the-discovery-and-migration-of-microsoft-workloads-to-aws.html)<pre>Import-Module .\MigrationValidatorToolkit.psm1;Invoke-DomainComputers</pre>輸出 .csv 檔案會以字首名稱儲存在 中`MigrationValidatorToolkit\Outputs\folder``DomainComputers_MigrationAutomations_YYYY-MM-DDTHH-MM-SS`。 | 系統管理員 | 

## 疑難排解
<a name="accelerate-the-discovery-and-migration-of-microsoft-workloads-to-aws-troubleshooting"></a>


| 問題 | 解決方案 | 
| --- | --- | 
| `MigrationValidatorToolkit` 會將有關執行、命令和錯誤的資訊寫入執行中主機上的日誌檔案。 | 您可以在下列位置手動檢視日誌檔案：[\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/prescriptive-guidance/latest/patterns/accelerate-the-discovery-and-migration-of-microsoft-workloads-to-aws.html) | 

## 相關資源
<a name="accelerate-the-discovery-and-migration-of-microsoft-workloads-to-aws-resources"></a>
+ [將 Microsoft 工作負載遷移至 AWS 的選項、工具和最佳實務](https://docs.aws.amazon.com/prescriptive-guidance/latest/migration-microsoft-workloads-aws/introduction.html) (AWS 規範性指導）
+ [Microsoft 遷移模式](https://docs.aws.amazon.com/prescriptive-guidance/latest/patterns/migration-migration-patterns-by-workload-microsoft-pattern-list.html) (AWS 方案指引）
+ [AWS 免費雲端遷移服務](https://aws.amazon.com/free/migration/) (AWS 文件）
+ [預先定義的啟動後動作 ](https://docs.aws.amazon.com/mgn/latest/ug/predefined-post-launch-actions.html)（應用程式行銷文件）

## 其他資訊
<a name="accelerate-the-discovery-and-migration-of-microsoft-workloads-to-aws-additional"></a>

**常見問答集**

*我可以在哪裡執行 Migration Validator Toolkit PowerShell 模組？*

您可以在 Microsoft Windows Server 2012 R2 或更新版本上執行模組。

*何時執行此模組？*

我們建議您在遷移旅程的評估[階段](https://aws.amazon.com/cloud-migration/how-to-migrate/)執行模組。

*模組是否會修改我現有的伺服器？*

否。此模組中的所有動作皆為唯讀。

*執行模組需要多長時間？*

執行模組通常需要 1-5 分鐘，但取決於您伺服器的資源配置。

*模組需要執行哪些許可？*

您必須從本機管理員帳戶執行模組。

*我可以在實體伺服器上執行模組嗎？*

是，只要作業系統是 Microsoft Windows Server 2012 R2 或更新版本即可。

*如何為多部伺服器大規模執行模組？*

若要大規模在多個加入網域的電腦上執行模組，請遵循本指南多個*目標的執行遷移驗證工具組 PowerShell 模組*中的步驟。對於未加入網域的電腦，請使用遠端調用或在本機執行模組，方法是遵循本指南*單一目標上執行遷移驗證工具組 PowerShell 模組*中的步驟。