Thursday, February 24, 2011

Removing a Managed Service Account from a Computer

Removing a Managed Service Account from a Computer

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

Example

The following example demonstrates how to remove the managed service account EXCH-SRV1 from the computer Fabrikam-SRV1. You must run the command on the local computer:
Remove-ADComputerServiceAccount -Identity Fabrikam-SRV1 -ServiceAccount EXCH-SRV1

Additional information

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

No comments:

Post a Comment