VB Script to enumerate users in only select groups

Discussion in 'Scripting' started by Mike, May 4, 2011.

  1. Mike

    Mike Guest

    How would I go about creating a VB script to enumerate specific groups
    in two separate Active Directory domains:


    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

    Any ideas on how I would go about doing this?
    Mike, May 4, 2011
    1. Advertisements

  2. Mike


    Apr 19, 2011
    Likes Received:
    brain007, Jun 21, 2011
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.