I have figured out how to add active directory groups to a user using the following command
Add-ADGroupMember -Identity "Group Name" -Members "UserName"
Is there a way to add multiple groups to a user or multiple users to a group? I have tried comma separating the users and groups but it doesn't seem to work.
Membersparameter can take an array of users, as long as you give it the DistinghuishedNames, SamAccountNames, GUIDs or SIDsAdd-ADGroupMember -Identity "Group Name" -Members "UserName1", "UserName2", "UserName3"does work. Are you getting any errors?