Solved

Live@edu powershell distribution group commands

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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

User Beware!  This is a rather permanent solution to removing your email from an exchange server.  The only way to truly go back is to have your exchange administrator restore your mailbox from backups.  This is usually the option of last resort.  A…
Technology opened people to different means of presenting information, but PowerPoint remains to be above competition. Know why PPT still works today.
The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…
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…

705 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

18 Experts available now in Live!

Get 1:1 Help Now