Would you like to learn how to copy all members from a group to another using Powershell? In this tutorial, we are going to show you how to copy all members from an Active Directory group to another on a computer running Windows.
• Windows 2012 R2
• Windows 2016
• Windows 2019
• Windows 10
• Windows 7
Equipment list
The following section presents the list of equipment used to create this tutorial.
As an Amazon Associate, I earn from qualifying purchases.
Related tutorial – PowerShell
On this page, we offer quick access to a list of tutorials related to PowerShell.
Tutorial Powershell – Copy all members from an Active Directory group to another
As an Administrator, start a new Powershell command-line.
List all the members of a group.
Here is the command output.
Copy the members of a group to another.
In our example, all members of the group named DOMAIN ADMINS were copied to the Active Directory group named FIREWALL ADMINS.
In our example, nested groups will be copied to the new group.
Verify the members of the new group.
Here is the command output.
The RECURSIVE option allows you to copy only user accounts from nested groups.
Verify the members of the new group.
Here is the command output.
In our example, Broly and Krillin were members of the HELPDESK group.
In our example, only user accounts will be copied recursively to the new group.
Congratulations! You are able to copy the members from an Active Directory group to another.