Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $DG = Get-DistributionGroup | where {
- $_.Alias -eq 'Moscow_office'-or $_.Alias -eq 'Saratov_office' -or $_.Alias -eq 'Voronezh_office'
- }
- $DG | foreach { Get-DistributionGroupMember $_.Alias } | Select Name, DisplayName, PrimarySMTPAddress -Unique | Sort Name
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement