

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

# 適用於 的更新 AWSWindows AMIs
<a name="windows-ami-configuration"></a>

為了確保順暢且一致的啟動體驗，請 AWSWindows AMIs包含下列初始化、安裝和組態的更新。

**注意**  
當您從 Amazon 受管啟動執行個體時 AWSWindows AMI，Windows執行個體的根裝置是 Amazon Elastic Block Store (Amazon EBS) 磁碟區。 AWSWindows AMIs 不支援根裝置的執行個體存放區。


**清理與準備**  

| 描述 | 適用對象 | 
| --- | --- | 
| 檢查是否有待定的檔案名稱或重新開機，視需要重新開機 | 所有 AMI | 
| 刪除 `.dmp` 檔案 | 所有 AMI | 
| 刪除日誌 （事件日誌、Systems Manager、EC2Config) | 所有 AMI | 
| 刪除 的臨時資料夾和檔案 Sysprep | 所有 AMI | 
| 執行病毒掃描 | 所有 AMI | 
| 預先編譯排入佇列的 .NET 組件 （在 之前Sysprep) | 所有 AMI | 
| 還原Microsoft瀏覽器的預設值 | 所有 AMI | 
| 重設Windows桌布 | 所有 AMI | 
| 執行 Sysprep | 所有 AMI | 
| EC2Launch v1 設定為在下次啟動時執行 | Windows Server 2016 和 2019 | 
| 執行Windows維護工具 | Windows Server 2012 R2 及更新版本 | 
| 清除最近的歷史記錄 （開始功能表、 Windows Explorer 等） | Windows Server 2012 R2 及更早版本 | 
| 還原 的預設值 EC2Config | Windows Server 2012 R2 及更早版本 | 


**安裝及設定**  

| 描述 | 適用對象 | 
| --- | --- | 
| 停用安全時間粒子 | 所有 AMI | 
| 將連結新增至 Amazon EC2 Windows指南 | 所有 AMI | 
| 將執行個體儲存體磁碟區連接到擴充的掛載點 | 所有 AMI | 
| 安裝目前的 AWS Tools for Windows PowerShell | 所有 AMI | 
| 安裝目前的 CloudFormation 引導指令碼 | 所有 AMI | 
| 針對 RunOnce Internet Explorer 停用 | 所有 AMI | 
| 啟用遠端 PowerShell | 所有 AMI | 
| 停用休眠並刪除休眠檔 | 所有 AMI | 
| 停用「已連線的使用者體驗與遙測」服務 | 所有 AMI | 
| 設定效能選項以取得最佳效能 | 所有的 AMI | 
| 將電源設定設為最高效能 | 所有的 AMI | 
| 停用螢幕保護程式密碼 | 所有 AMI | 
| 設定RealTimeIsUniversal登錄機碼 | 所有 AMI | 
| 將時區設為 UTC | 所有 AMI | 
| 停用Windows更新和通知 | 所有 AMI | 
| 執行Windows更新並重新啟動，直到沒有待處理的更新為止 | 所有 AMI | 
| 將所有電源配置中的顯示器設定為永遠不關閉 | 所有的 AMI | 
| 將 PowerShell 執行政策設定為「無限制」 | 所有 AMI | 
| 如果已安裝 Microsoft SQL Server：[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_tw/ec2/latest/windows-ami-reference/windows-ami-configuration.html) | 所有 AMI | 
| 在系統磁碟區設定分頁檔，如下所示：[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_tw/ec2/latest/windows-ami-reference/windows-ami-configuration.html) | 所有 AMI | 
| 安裝目前的 EC2Launch v2和 SSM Agent | Windows Server 2022 及更新版本 | 
| 安裝目前的 EC2Launch v1和 SSM Agent | Windows Server 2016 和 2019 | 
| 安裝最新的 SRIOV 驅動程式 | Windows Server 2012 R2 及更新版本 | 
| 安裝目前的EC2WinUtil驅動程式 | Windows Server 2008 R2 及更新版本 | 
| 安裝目前的 EC2Config和 SSM Agent | Windows Server 2012 R2 及更早版本 | 
| 安裝目前的 AWS PV、ENA 和 NVMe 驅動程式 | Windows Server 2008 R2 及更新版本 | 
| 允許 ICMP 流量通過防火牆 | Windows Server 2012 R2 及更早版本 | 
| 在 `Z:` 設定額外的系統受管分頁檔，若有 | Windows Server 2012 R2 及更早版本 | 
| 啟用檔案和印表機共享 | Windows Server 2012 R2 及更早版本 | 
| 安裝目前的Citrix PV驅動程式 | Windows Server 2008 SP2 及更早版本 | 
| 安裝 PowerShell 2.0 和 3.0 | Windows Server 2008 SP2 和 R2 | 
| 套用以下修補程序：[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_tw/ec2/latest/windows-ami-reference/windows-ami-configuration.html) | Windows Server 2008 SP2 和 R2 | 