Associating a Managed Service Account with a Computer

Applies To: Windows Server 2008 R2

This topic explains how to use the Active Directory module for Windows PowerShell to associate a managed service account with a computer. This action associates the managed service account with the computer that hosts the application or service that the computer uses.

Example

The following example demonstrates how to associate the managed service account IIS-SRV1 with the computer FABRIKAM-SRV1 in the Fabrikam.com domain:

Add-ADComputerServiceAccount -Identity Fabrikam-SRV1 -ServiceAccount IIS-SRV1

Additional information

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