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.

Windows 10 - powershell elevated

List all the members of a group.

Copy to Clipboard

Here is the command output.

Copy to Clipboard

Copy the members of a group to another.

Copy to Clipboard

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.

Copy to Clipboard

Here is the command output.

Copy to Clipboard

The RECURSIVE option allows you to copy only user accounts from nested groups.

Copy to Clipboard

Verify the members of the new group.

Copy to Clipboard

Here is the command output.

Copy to Clipboard

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.