Friday, December 07, 2012 6:34 PM
Hi all. I've had a lot of success using the csvde utility, but am looking to take it one step further. I am a noob in regards to PowerShell, but want to utilize it for all its power. I'm in the middle of doing an AD migration through ADMT 3.2, and need to create a csv file with the email addresses of users in batches. Each batch will be from an OU in our Accounts OU.
I have a txt file with the DNs of each of the target OUs in separate lines, and want to use PS to read this file, and for each line (OU), get the email address of the users in the OU and output to a separate txt file (a different text file for each different OU).
I can do this with csvde, but I'd have to edit the output file name and the -d switch for each OU, and would rather take this opportunity to get into PS since there will be more migrations to come. Thanks in advance for your help!
Friday, December 07, 2012 9:50 PM
Hi -welcome to PowerShell. You will not regret making the change.
I think you will find everything you need to get started.
- Marked As Answer by IamMredMicrosoft Employee, Owner Sunday, January 06, 2013 2:58 AM