Deleting a Managed Service Account

Applies To: Windows Server 2008 R2

This topic explains how to use the Active Directory module for Windows PowerShell to delete a managed service account.

Example

The following example demonstrates how to delete the managed service account SQL-SRV1:

Remove-ADServiceAccount -Identity SQL-SRV1

Additional information

For a full explanation of the parameters that you can pass to Remove-ADServiceAccount, at the Active Directory module command prompt, type Get-Help Remove-ADServiceAccount –detailed, and then press ENTER.