

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

# 使用 Amazon EC2 執行個體刪除使用者帳戶
<a name="ms_ad_manage_users_groups_delete_user"></a>

 您可以使用下列程序來刪除已加入 AWS Managed Microsoft AD 的 Amazon EC2 執行個體的使用者。

**注意**  
 完成此程序之前，您必須安裝 Active Directory 管理工具。如需詳細資訊，請參閱[安裝 Active Directory 管理工具](https://docs.aws.amazon.com/directoryservice/latest/admin-guide/ms_ad_install_ad_tools.html)。

**若要刪除使用者**

1. 開啟 Active Directory 使用者和電腦工具。**Windows 系統管理工具**資料夾具有此工具的捷徑。
**提示**  
您可以在執行個體上透過命令提示執行下列命令，以直接開啟 Active Directory 使用者和電腦工具箱。  

   ```
   %SystemRoot%\system32\dsa.msc
   ```

1. 在目錄樹中，選取包含要刪除的使用者的 OU (例如，"Corp\\Users")。

1. 選取要刪除的使用者。在**動作**功能表上，選擇**刪除**。

1. 將出現一個對話方塊，提示您確認要刪除該使用者。選擇**是**以刪除使用者。

刪除的使用者暫時儲存在 AD 資源回收筒。如需 AD 資源回收筒的詳細資訊，請參閱 Microsoft 的 Ask the Directory Services Team 部落格中的 [The AD Recycle Bin: Understanding, Implementing, Best Practices, and Troubleshooting](https://techcommunity.microsoft.com/t5/ask-the-directory-services-team/the-ad-recycle-bin-understanding-implementing-best-practices-and/ba-p/396944) 一文。