Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


Live@edu powershell distribution group commands

Posted on 2012-03-12
Medium Priority
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:

Johnson, Jon
Question by:klfinkley
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

Accepted Solution

Ironbone earned 2000 total points
ID: 37805580

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 Comment

ID: 38175916

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Problem: You created a new custom form in Outlook for your contacts (added fields, deleted fields, changed the layout of fields, whatever) and made it the default form for contacts. The good news is that all new contacts will utilize the new form. T…
Ever visit a website where you spotted a really cool looking Font, yet couldn't figure out which font family it belonged to, or how to get a copy of it for your own use? This article explains the process of doing exactly that, as well as showing how…
Viewers will learn how to maximize accessibility options in an Excel workbook for users with accessibility issues.
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …

610 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