Category Archives: dsmod

Command to Copy Member Of from one Group to another AD Group

Have googled this and didn’t found command/script to copy member of, however found many articles to copy members from a group, though of write a simplified command to achieve this, have already discussed how to copy group membership from one group to another group

Also Read: Display the list of members with nested groups

Source … [Continue reading]

How to add all members of one group to the other group

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

Check the below link to find … [Continue reading]