So, my question is fairly simple, how do I edit the groups a user is a member of rather than which members are in a group?
In ADUC, I can either pick a user and edit his groups, or pick a group and edit the membership.
Why does this matter? Because some groups are in other domains, and admins in our various domains don't always have rights to the groups in all domains, but they do have rights to their own users, so when a leaver is removed from all groups, you can remove them from groups in other domains via the GUI by editing the user rather than the group.
How would I achieve this in Powershell? All the commands for adding or removing a user from a group that I have found do it by editing the group...