- Copy group’s membership from one user to another one
- Copy all members from one group to another group
To show you to perform these tasks ,I’ll set two scenarios – one for each task – and demonstrate how to accomplish each of them . our scenarios are:
- TestUser1 is a domain user who is member of two groups [ TestGroup1 & TestGroup2 ] . We require that TestUser2 – a newly created domain user – to be a member of all Active Directory groups that TestUser1 is member in it.
- TestGroup3 includes the following members [ TestUser3 : TestUser7 ] ,those users are required to be added to another group named TestGroup4.
Here is a screen shoot indicating that all objects [ TestUsers & TestGroups ] are located at TestOU.
For the first scenario [ task ] , it can be accomplished using Directory Services commands as follow:
For my example and as both users are located at TestOU which located directly under my domain node, our command will be as follow:
For the first scenario [ task ] , we can accomplish it using Directory Service commands as follow:
For my example and as both groups are located at TestOU which located directly under my domain node, our command will be as follow: