How to add all members of one group to the other group
19 June 2009
Command to add members of one group to the other group (Group migration)
If you want to add all the members from group1 to the group2 user the below command
syntex:
dsget group "Source group DN" -members | dsmod group "Destination group DN" -addmbr
Example:
dsget group "CN=Group1,OU=Test,DC=test,DC=com" -members |
dsmod group "CN=Group2,OU=Test,DC=Test,DC=com"
-addmbr
Related Articles
Check the below link to find the group DN
how to find the ldap path
Related Articles
List active directory group members
Health check active directory
Force the Active Directory replication between two domain controllers in low bandwidth sites
Force replication with all of its replication partners
How to check Active directory replication for multiple Domain Controllers
ldap path
Force active directory replication

0 comments:
Post a Comment