Not sure of a VBScript to do this as I have not tinkered much with VBScripting yet, but you can accomplish this task using Windows built-in directory service tools.
Here is an example that is given at the command line if you open up a command prompt and type dsmod group /?
To add all members of the US Info group to the Cananda Info group:
dsget group "CN=US INFO,OU=Distribution Lists,DC=microsoft,DC=com" -members | dsmod group "CN=CANADA INFO,OU=Distribution Lists,DC=microsoft,DC=com" -addmbr
The task you are looking to complete could easily be accomplished modifying the above command values to meet the specifics of your domain and security groups.
Giving IllogicallyLogical a star for the excellent answer. I would suggest you do the same. It's the proper ettiquete for thanking someone who provided assistance.
Pat RichardMVP Plan for performance, and capacity takes care of itself. Plan for capacity, and suffer poor performance.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.