Add list of users in DG
Hello,I have a list of users in a text file.I would like to know whether I could create a shell command to add all the users to a specific distribution group.If you figure something out, I would also like to know how to remove users from a distribution list using a list.Thanks,Graig
January 18th, 2010 12:30am

Oups sorry about that --> Exchange 2007
Free Windows Admin Tool Kit Click here and download it now
January 18th, 2010 10:38am

See if this helps http://www.wisesoft.co.uk/scripts/active_directory_groups/default.aspxRaj
January 18th, 2010 10:44am

Hi,Add the members from the csv file to the DL Test:import-csv dlmember.csv | foreach {add-distributiongroupmember -identity Test -member $_.memberAlias}Below link is for your reference:http://groups.google.com/group/microsoft.public.exchange.admin/browse_thread/thread/72e06b70cc2eaa0cThanksAllen
Free Windows Admin Tool Kit Click here and download it now
January 20th, 2010 12:51pm

Hi, Assuming that you have Alias or user principal names or other IDs in notepad one in each line... #To Add. Get-content | Add-DistributionGroupMember -id <GroupID> #To Remove Get-Content | Remove-DistributionGroupMember -id <GroupID> Thanks. Vishal Ramnani MCITP - Exchange 2007, MCSE Messaging, MCTS - Win 2008 Config
January 20th, 2010 5:54pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics