The Universal Distribution Group script.

Discussion in 'Scripting' started by harpoon, Feb 19, 2008.

  1. harpoon

    harpoon Guest

    I want to use the following script for creating multiple Universal
    distribution groups.

    Set objOU = GetObject("LDAP://ou=Sales,dc=NA,dc=fabrikam,dc=com")
    Set objGroup = objOU.Create("Group", "cn=Customers")

    objGroup.Put "sAMAccountName", "customers"
    objGroup.Put "groupType", ADS_GROUP_TYPE_UNIVERSAL_GROUP

    My question is how can I tell it to go and look for a text file that lists
    all of the groups I want it to create?

    Thank you very much

    harpoon, Feb 19, 2008
    1. Advertisements

  2. harpoon

    Marcin Guest

    Marcin, Feb 19, 2008
    1. Advertisements

  3. harpoon

    Wiseman82 Guest

    Wiseman82, Mar 2, 2008
    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.