Hi to all.
I need to bulk add member of my organization to a new distribution list.
I have been using PowerShell commands but can't get it to work.
First I created a CSV file like this
DL,Email
mydl,*** Email address is removed for privacy ***
mydl,*** Email address is removed for privacy ***
mydl,*** Email address is removed for privacy ***
then after connecting with PowerShell I use the command:
Import-Csv C:\AddToDList.csv|foreach {Add-DistributionGroupMember -Identity $_.DL -Member $_.Email}
The result is an error for each line.
Can't find objet "*** Email address is removed for privacy ***" ....
Any help is appreciated.