a) Can I export all users irrespective of there group memberships to a CSV File, for e.g. users.csv ?
b) Can I also export all OUs to a CSV, so I can later re-import them into a New DC on a New Domain ?
c) Can I export all Groups to a CSV, so I can re-import them into the New DC / New Domain ?
Basically, we have a lot of users, groups, OUs, we are just testing to see if we had to manually re-create all users, groups, ous, via CSV files ?
is this possible ? Will be grateful if someone could provide a script / command to get there.
Thank you all for your suggestions, I think I may have not explained my Question better. Basically, I am not doing or wish to do this for Backup purposes.
I just want to see how this works, for e.g. : If I manually create a CSV file with a list of say 20 or 30 users, what would that csv file should be like ? I mean attributes or fields so that it can be imported into AD with one command or script?
So, I thought if one would export first they would know which attributes would be necessary to create accounts into AD.
Now, the question is :-) :
a) How to create that CSV File, what fields are required?
b) Can we set a Default password too for those new accounts?
c) Can we also specify which OU to create that users in or I can move them later?
I hope I have asked clearly this time, it's not meant to be a backup of any kind, just a way to create multiple users or move multiple users around with ease.
Thanks again for your input.