We help IT Professionals succeed at work.

Live@edu powershell distribution group commands

klfinkley
klfinkley asked
on
Medium Priority
669 Views
Last Modified: 2012-07-11
What is the syntax to add members to a Live@edu distribution group from a csv file. I tried the command below:

 Import-csv "c:\stemtest.csv" |foreach{Add-DistributionGroupMember -Identity "Test" -Member $_.alias}


csv file looks like this:

SN,givenName
Johnson, Jon
outlook.GIF
Comment
Watch Question

Commented:
Hi

My guess is that since you use $_.alias to identify the user from stemtest.csv you need the users alias in that csv file. You could try to change $_.alias to $_.SN or $_.givenname

Author

Commented:
Thanks!

Explore More ContentExplore courses, solutions, and other research materials related to this topic.