Can anyone tell me how to get an export of the domain users group and after that import those users into another Security group? Thanks for any help.
Can anyone tell me how to get an export of the domain users group and after that import those users into another Security group? Thanks for any help.
You can try to add a User to a Group, but Only if that User is a Member of the IT Department, just follow the steps here - http://blogs.technet.com/b/heyscript...epartment.aspx
Check the below script using the DSGET and DSMOD:
Code:Set oGroup1 = GetObject("LDAP://cn=Group1,ou=Groups,dc=change-my-name,dc=local") Set oGroup2 = GetObject("LDAP://cn=Group2,ou=Groups,dc=change-my-name,dc=local") For Each oUser in oGroup1.Members oGroup2.Add(oUser.ADsPath) Next
I have tried to use the DSGET and DSMOD, but that is giving me some wrong info. I just want to add users of Domain Users Groups into another group. The only error with Domain Users group, if using another group like Domain Admin, will work. Does anyone have any other solution. Thanks.
Actually the script that is given will not work with Domain Users Groups, but with other Groups, it will work properly.
Hey i would like to bump this article.
I hopeless when it comes to VBscript so please be patient.
I want to copy the users from Domain users into another group. I've run this script and it seems to copy about 10 or so accounts but that's it. Anyone know why this might be the case and how i can get round it?
Thanks
p.s. AD is server 2003
You can try to Install Windows Server Migration Tools by following procedures in the Windows Server Migration Tools Installation, Access and Removal guide on the Microsoft Web site. Verify that the destination server can resolve the names of domain users who are members of the local group during the import operation. If source and destination servers are in different domains, the destination server must be able to contact a global catalog server for the forest in which the source domain user accounts are located.
Bookmarks