Created
June 1, 2023 10:59
-
-
Save Apoc70/2430457cb43ef93840757d4efa6e39c2 to your computer and use it in GitHub Desktop.
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
# Fetch all mail users | |
$DomainNameFilter = '*varunagroup.de' | |
Get-MailUser -ResultSize Unlimited | ?{$_.ExternalEmailAddress -like $DomainNameFilter} | Sort-Object DisplayName | Select-Object DisplayName, PrimarySmtpAddress |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment