Link to home
Start Free TrialLog in
Avatar of K B
K BFlag for United States of America

asked on

Import (New or) Set Distribution Groups with CSV Powershell

I need to create new distribution groups into Active Directory with these attributes (as the headers):

DisplayName      Alias      LegacyExchangeDN      PrimarySmtpAddress      ManagedBy      EmailAddresses      EmailAddresses02      EmailAddresses03      EmailAddresses04

How would we utilize a CSV of this nature to create/populate all the Distribution Groups?
Thank you!
Avatar of Michael Pfister
Michael Pfister
Flag of Germany image

Avatar of K B

ASKER

Thank you for your reply. However, I have seen this page before and I don't see any that reference a CSV.
Scroll down to
"Create Bulk Distribution Groups from a CSV File"
HTH
Of yourse you have to add add'l parameters for the other fields you need.

Can't check right now if you can provide all required fields with New-DistributionGroup. It might be necessary to do an extra loop for example to set the owner or add add'l mail addresses.
Avatar of K B

ASKER

All the required fields are in the original question. Again, thank you for your reply.
ASKER CERTIFIED SOLUTION
Avatar of Michael Pfister
Michael Pfister
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial