• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 246
  • Last Modified:

I need to make a global group a member of another global group in active directory, using vbscript

How can this be done ?
1 Solution
I will assume that you are running Windows 2000 Native mode or later, so your active directory will support Global group nesting.

The code is basically identical to adding a user to a group.  Just the ADsPath of the "member" happens to point to another global group:

Set grp = GetObject("LDAP://CN=Domain Admins, CN=Users, DC=Fabrikam, DC=com")
grp.Add "LDAP://CN=SomeOtherGlobalGroup, OU=Sales,DC=Fabrikam,DC=com"
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now