Last active
October 28, 2022 11:12
-
-
Save Fantasillion/9ea420fb536637beece303fd6eaa836a to your computer and use it in GitHub Desktop.
Office 365 Exchange Online Get all mail aliases for Group or Distribution List
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Get all mail aliases for group: | |
#Distribution Group: | |
Get-distributiongroup <replace brackets and contents with Group name> | select -ExpandProperty EmailAddresses | |
#O365 Group: | |
Get-UnifiedGroup <replace brackets and contents with Group name> | select -ExpandProperty EmailAddresses | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment