Solved

Live@edu powershell distribution group commands

Posted on 2012-03-12
2
644 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

I wanted to share this with fellow Experts, who might not know. How often have you wanted to learn something, only to be set back by either restrictions imposed on "trial" or "evaluation" software?  How often have you had to rebuild a home networ…
Technology opened people to different means of presenting information, but PowerPoint remains to be above competition. Know why PPT still works today.
Viewers will learn the different options available in the Backstage view in Excel 2013.
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…

808 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