Finding Managed Service Accounts

Applies To: Windows Server 2008 R2

This topic explains how to use the Active Directory module for Windows PowerShell to find managed service accounts.


The following example demonstrates how to find the managed service accounts in the domain:

Get-ADServiceAccount -Filter 'Name -like "*"' | FT Name,HostComputers -A

Additional information

In addition to the standard Lightweight Directory Access Protocol (LDAP) attributes, you can retrieve the following extended properties of the Get-ADServiceAccount cmdlet by using the -Properties parameter:

  • HostComputers

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