Copy Group Membership From One User to Another in Active Directory

2 months ago
10

How to copy the membership of a specific user to another user via PowerShell, and in this way, you can also copy group membership from one user to another in Active Directory. The command used in the video is: Get-ADUser -Identity username -Properties memberof | Select-Object -ExpandProperty memberof | Add-ADGroupMember -Members username Although the command is long, it will be very useful when you want to copy the membership of a user to another user without any loss or error. The steps are very simple, and you can follow the video. or you can use copy user; it will give the same results
Enjoy

Loading 1 comment...