Deleting a Managed Service Account
       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
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.
This topic explains how to use the Active Directory module for Windows PowerShell to install a managed service account.
Installing a Managed Service Account
This topic explains how to use the Active Directory module for Windows PowerShell to install a managed service account.
Example
         The following example demonstrates how to install the managed  service account SQL-SRV1. You must run the command on the local  computer:
Install-ADServiceAccount -Identity SQL-SRV1
Install-ADServiceAccount -Identity SQL-SRV1
Additional information
For a full explanation of the parameters that you can pass to Install-ADServiceAccount, at the Active Directory module command prompt, type Get-Help Install-ADServiceAccount –detailed, and then press ENTER.|  Note | 
|---|
| Installing a managed service account using the New-ADServiceAccount cmdlet fails with error 0xC0000225 when the value for the name attribute does not match the accounts corresponding SAM account name. | 
 
 
No comments:
Post a Comment