I'm trying to copy the Group membership. From one user, to the user I already created with an automated adding user script. There are a lot of enumerating scripts out there. But I can't seem to find how to copy each group from the enumerated list to the target user.
So, the question is: What code should I add to get each of the enumerated group and add it to the user.