Knowledge BaseHow to user Exchange powershell to get a list of Groups and Users
W P Staff asked 7 years ago

foreach ($group in Get-DistributionGroup) { get-distributiongroupmember $group | ft @{expression={$_.displayname};Label=”$group”} | Out-File c:\temp\Users.txt -append}