Powershell to add members to DL from CSV


posted by Krishna
12-29-2009

Downloads: 362
File size: 142 B
Views: 1,744

Embed
Powershell to add members to DL from CSV
  1. $csv = Import-csv -path "C:\details.csv"   
  2. foreach($user in $csv)   
  3. {   
  4. Add-DistributionGroupMember -Identity <groupname> -member $user 
Concentrated Tech NSoftware Dell Compellent Sponsored by Idera and Concentrated Tech and NSoftware and Dell Compellent
Copyright 2011 PowerShell.com. All rights reserved.