The following example demonstrates how to find the managed service accounts in the Fabrikam.com domain:
Get-ADServiceAccount -Filter 'Name -like "*"' | FT Name,HostComputers -A