[EXO][PS] Find all the Distribution Groups a user is a member of.


 

 Quickly find out all the Distribution Groups a user is a member of with a few lines of simple PS code. 

$Username = "johnsmith@hiepic.com"
$DistributionGroups = Get-DistributionGroup -ResultSize unlimited | where { (Get-DistributionGroupMember -ResultSize unlimited $_.Name | foreach {$_.PrimarySmtpAddress}) -contains "$Username"}
$DistributionGroups

 

 

test Exchange Administrator Tecism
Sorry! The Author has not filled his profile.
0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted