[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

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

Posted on 2006-05-23
1
Medium Priority
?
225 Views
Last Modified: 2010-04-17
How can this be done ?
0
Comment
Question by:itbabe
1 Comment
 
LVL 14

Accepted Solution

by:
dlwyatt82 earned 2000 total points
ID: 16745148
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"
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Let's recap what we learned from yesterday's Skyport Systems webinar.
How to deal with a specific error when using the Enable-RemoteMailbox cmdlet to create a mailbox in the cloud-based service, for an existing user in an on-premises Active Directory.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Loops Section Overview

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question