Created
May 6, 2024 22:56
-
-
Save seyerj/2787f6eae47470616693dc6aabbeaff0 to your computer and use it in GitHub Desktop.
Get emails of all AD Group Members and send to out-gridview
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-ADGroupMember -Identity "GroupName" | Get-ADUser -Properties EmailAddress | Select-Object -ExpandProperty EmailAddress | Out-GridView |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment