Solved

Live@edu powershell distribution group commands

Posted on 2012-03-12
2
645 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
LARGE INDEX formula 3 90
Defining contents of Combo box 4 77
Is AWS.RDS considered a part of "Big Data"? 4 134
SCCM2012 sp2 CU3 cant see boot images missing tabs 3 113
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…
The new Microsoft OS looks great, is easier than ever to upgrade to, it is even free.  So what's the catch?  If you don't change the privacy settings, Microsoft will, in accordance with the (EULA) you clicked okay to without reading, collect all the…
Viewers will learn the different options available in the Backstage view in Excel 2013.
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…

696 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