Copy the users from a ADgroup to another ADgroup

 

To Copy the users from a ADgroup to another ADgroup or duplicate the contents of a group, us the commandlet Add-ADGroupMember.

You cannot pipe the contents of Get-ADGroupMember to this commandlet as it does not accept pipeline imput. You can check this in the help of the command.

For this to work correctly you must place the content in a variable with Get-ADGroupMember and use this in Add-ADGroupMember.

These two command are:

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *