Hello all,
I know that it is very possible to combine the two commands of:
Import-Csv c:\Users\USERID\contacts.csv | ForEach {New-MailContact -Name $_.Name -Firstname $_.FirstName -LastName $_.LastName -ExternalEmailAddress $_.ExternalEmailAddress -Alias $_.Alias -OrganizationalUnit DOMAIN.COM/Folder1/Folder2}
Import-csv C:\Users\USERID\contacts.csv | foreach {add-distributiongroupmember -id NAME_OF_DISTROLIST -member $_.ExternalEmailAddress
How can I do it?