How would I go about creating a VB script to enumerate specific groups
in two separate Active Directory domains:
Domains:
na.contoso.com
eu.contoso.com
Groups:
Exx - Managers
Exx - Employees
The group names will always begin with the letter E and will always be
followed by 2 numbers. So, the possibilities are E00 through E99.
The script would then need to export all of the user accounts from
these groups and write them to two separate text files called
managers.txt and employees.txt (with their full DN paths).
I then need to import the managers.txt into a group called Managers
and employees.txt into a group called Employees.
Then, delete the users from their old groups and then delete the
groups.
Any ideas on how I would go about doing this?
|