Transferring Group Membership to Another User

Updated: February 28, 2009

Applies To: Windows Server 2008 R2

This topic explains how to use the Active Directory module for Windows PowerShell to transfer a user’s group membership to another user.

The following example demonstrates how to transfer the group membership of the user SaraDavis to the user JaneDow:

Get-ADPrincipalGroupMembership -Identity SaraDavis | % {Add-ADPrincipalGroupMembership -Identity JaneDow -MemberOf $_}

For a full explanation of the parameters that you can pass to Get-ADPrincipalGroupMembership or Add-ADPrincipalGroupMembership, at the Active Directory module command prompt, type Get-Help Get-ADPrincipalGroupMembership –detailed or Get-Help Add-ADPrincipalGroupMembership –detailed, and then press ENTER.

Community Additions