Solved

Live@edu powershell distribution group commands

Posted on 2012-03-12
2
639 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
0
Comment
Question by:klfinkley
2 Comments
 
LVL 3

Accepted Solution

by:
Ironbone earned 500 total points
ID: 37805580
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
0
 

Author Comment

by:klfinkley
ID: 38175916
Thanks!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

The canonical version of this article is on my web site here: http://iconoun.com/articles/collisions/ A companion presentation is available here: http://iconoun.com/articles/collisions/Unicode_Presentation.pdf
As with any other System Center product, the installation for the Authoring Tool can be quite a pain sometimes. This article serves to help you avoid making these mistakes and hopefully save you a ton of time on troubleshooting :)  Step 1: Make sur…
Viewers will learn the different options available in the Backstage view in Excel 2013.
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…

912 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now