List a users distribution group memberships in Exchange

Save the code below to a ps1 file and execute. $User = read-host -Prompt “Enter Username” “User ” + $User + ” is a member of the following groups:” ForEach ($Group in Get-DistributionGroup) { ForEach ($Member in Get-DistributionGroupMember -identity $Group | Where { $_.Name –eq $User }) { $Group.name } } Saved the file as … Read moreList a users distribution group memberships in Exchange

Please turn AdBlock off