Quantcast
Channel: Exchange Server 2013 - Administration, Monitoring, and Performance forum
Viewing all articles
Browse latest Browse all 1453

How do we use PowerShell commands for Mail Contacts (mail forwarding only, no login)?

$
0
0

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


Viewing all articles
Browse latest Browse all 1453

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>