Skip to content

Instantly share code, notes, and snippets.

@carlosdoliveira
Created January 27, 2022 23:59
Show Gist options
  • Save carlosdoliveira/f0b7eaae35831ba0106f197eba95be4f to your computer and use it in GitHub Desktop.
Save carlosdoliveira/f0b7eaae35831ba0106f197eba95be4f to your computer and use it in GitHub Desktop.
Cria múltiplas listas de distribuição para o Exchange Online
# Seu Arquivo CSV deve ter as colunas Nome e Email
$listas=Import-Csv C:\temp\listas.csv
foreach ($lista in $listas)
{
New-DistributionGroup -Name $lista.Nome -PrimarySmtpAddress $lista.Email
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment