Anthony K O365
asked on
Exchange 2013 Powershell-- Export members from All Distribution Groups in OU
Need PS script to export All Members from All Distribution Groups in an OU...to csv file.
thanks!
thanks!
ASKER
Question: What is the content of the text file in line one? Or is it simply creating a variable and being used later in line 8 to create the content?
Thank you!
Thank you!
It is actually blank, and data will be written to it. so you can change path as per your choice.
Rest code will fetch the data from DLs and will write to members.txt
Rest code will fetch the data from DLs and will write to members.txt
ASKER
I'm sorry. After speaking to the client, these are actually security groups. not DL. Can the script be modified for Security Groups?
Thank you!
Thank you!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you!
ASKER
when I run the script i get:
cmdlet ForEach-Object at command pipeline position 2
Supply values for the following parameters:
Process[0]:
Any thoughts?.
cmdlet ForEach-Object at command pipeline position 2
Supply values for the following parameters:
Process[0]:
Any thoughts?.
ASKER
Disregard last comment. I see the issue. Thanks!
Great to know
Open in new window