btny
asked on
Add AD contacts (also in a .CSV) to Exchange distribution list
Hi,
I have just imported several CSV files into mail enabled contacts in MS Exchange 2010 using this command
Import-Csv C:\Export\EarlyInterventio n.csv | ForEach { New-MailContact -Name $_.DisplayName -ExternalEmailAddress $_.EmailAddress -OrganizationalUnit "BoardMembers" }
So now those users are contacts in my AD/MX servers.
I wish to be able to import those members into a distribution list called @BoardMembers howeveer when I run this command
Import-Csv C:\Export\BoardMembers.csv | ForEach-Object -Process { Add-DistributionGroupMembe r -@BoardMembers -Member $_ }
It doesnt work
Any advice on how to do this is appreciated!
I have just imported several CSV files into mail enabled contacts in MS Exchange 2010 using this command
Import-Csv C:\Export\EarlyInterventio
So now those users are contacts in my AD/MX servers.
I wish to be able to import those members into a distribution list called @BoardMembers howeveer when I run this command
Import-Csv C:\Export\BoardMembers.csv
It doesnt work
Any advice on how to do this is appreciated!
First guess would be that it doesnt like the @boardmembers as a name. Try it without then and report back. If that doesnt work ill dig deeper,
ASKER
Tried it on a new list called BoardMembers2, didnt work
error message
Cannot process argument transformation on parameter 'Member'. Cannot convert the "@{DisplayName=Kathy Nowak; EmailAddre
ss=knowak@si.rr.com}" value of type "Deserialized.System.Manag ement.Auto mation.PSC ustomObjec t" to type "Microsoft.Excha
nge.Configuration.Tasks.Re cipientIdP arameter".
+ CategoryInfo : InvalidData: (:) [Add-DistributionGroupMemb er], ParameterBindin...mationEx ception
+ FullyQualifiedErrorId : ParameterArgumentTransform ationError ,Add-Distr ibutionGro upMember
error message
Cannot process argument transformation on parameter 'Member'. Cannot convert the "@{DisplayName=Kathy Nowak; EmailAddre
ss=knowak@si.rr.com}" value of type "Deserialized.System.Manag
nge.Configuration.Tasks.Re
+ CategoryInfo : InvalidData: (:) [Add-DistributionGroupMemb
+ FullyQualifiedErrorId : ParameterArgumentTransform
Id edit your post to remove the personal email address there. Let me see if i can duplicate the issue.
Is this group for an Email distribution list? and will the members of the group always be in the same security group? If so, you can make the list a Dynamic Group, and have membership gereated automatically.
ASKER
It is for a email distri group
membership will change often so I dont think dynamic is ideal
these are also contacts I want added in, not mailboxes
membership will change often so I dont think dynamic is ideal
these are also contacts I want added in, not mailboxes
btny, you should include this question in the powershell section.
There is a well known expert by the name of Chris-dent who can probably answer your question fast =]
cheers
There is a well known expert by the name of Chris-dent who can probably answer your question fast =]
cheers
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
My answer provides a link to the correct answer in another ticket