Delete a user
Use the following procedure to delete a user with an EC2 Windows instance that is joined to your Simple AD directory.
You can use any of the following methods to delete a user:
Active Directory Administration Tools
Windows PowerShell
Delete a user with Active Directory Administration Tools
Connect to the instance where the Active Directory Administration Tools were installed.
Open the Active Directory Users and Computers tool from the Windows Start menu. There is a shortcut to this tool found in the Windows Administrative Tools folder.
Tip
You can run the following from a command prompt on the instance to open the Active Directory Users and Computers tool box directly.
%SystemRoot%\system32\dsa.msc
In the directory tree, select the OU containing the user that you want to delete (for example,
corp\Users
).Select the user you wish to delete. On the Action menu, choose Delete.
A dialog box will appear prompting you to confirm you want to delete the user. Choose Yes to delete the user. This permanently deletes the selected user.
Delete a user in Windows PowerShell
Connect to the instance joined to your Active Directory domain as the Active Directory administrator.
-
Open Windows PowerShell.
-
Type the following command replacing the username
jane.doe
with the username of the user you want to delete. For more information on the Remove-ADUser command, see Microsoft documentation.
Remove-ADUser -Identity "
jane.doe
"