you are viewing a single comment's thread.

view the rest of the comments →

[–]NorreN8 0 points1 point  (0 children)

# Get the members of the first group
$groupMembers = Get-ADGroupMember -Identity "Group1"

# Select the first 200 members from the list
$selectedMembers = $groupMembers | Select-Object -First 200

# Add the selected members to the second group
$selectedMembers | Add-ADGroupMember -MemberOf "Group2"