Created
January 28, 2022 00:02
-
-
Save carlosdoliveira/3bfc1f8de2a875daae081fcdb26dc00e to your computer and use it in GitHub Desktop.
Adiciona multiplos membros a uma lista de distribuição
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
$group="contabilidade@M365x484652.OnMicrosoft.com" | |
# Seu arquivo CSV deve conter um título chamado "Email" | |
$users=Import-Csv C:\temp\users.csv | |
foreach ($user in $users) | |
{ | |
Add-DistributionGroupMember -Identity $group -Member $user.Email | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment