Mail Contacts created in Exchange do have Active Directory entries, where each is listed in AD Users & Computers with a Type of Contact. I've not been able to figure out how to use PowerShell commands for these users.
At the simplest, I would like to do something like (found this in my searching for a solution):
Get-ADUser "<mail contact name>" | Get-ADPrincipalGroupMembership | select -Expand Distinguishedname | Get-DistributionGroup -EA 0
I'm not sure what the "-EA 0" parameter does, but this command does what I want for users with full AD accounts, but I don't know how to use it for users who are only of Type Contact. Is there a way to do this? If so, how?
My ultimate purpose is to be able to find all the groups that a Contact is a member of, including through inheritance (where a group is a member of another group).
Colin