rmcguire80
IS-IT--Management
Hello,
I'm trying to setup this script to import a csv into a distribution list in exchange console:
Import-CSV FileName.csv | ForEach {Add-DistributionGroupMember -Identity "DG Name" -Member $_.Name}
But when I run the script in the exchange console shell. I receive the following:
Cannot find object "ALEXCLARK" Please make sure that it was spelled correctly or specify a different object.
I've attached my .csv, if someone could tell me why this won't add this address to a new distribution group
My CSV just has the 1st row
Name PrimarySMTPAddress
ALEXCLARK his email address
I'm trying to setup this script to import a csv into a distribution list in exchange console:
Import-CSV FileName.csv | ForEach {Add-DistributionGroupMember -Identity "DG Name" -Member $_.Name}
But when I run the script in the exchange console shell. I receive the following:
Cannot find object "ALEXCLARK" Please make sure that it was spelled correctly or specify a different object.
I've attached my .csv, if someone could tell me why this won't add this address to a new distribution group
My CSV just has the 1st row
Name PrimarySMTPAddress
ALEXCLARK his email address