Learn about Windows PowerShell
Summary: Use Windows PowerShell to add a user to a security group in Active Directory.
How can I use Windows PowerShell to add a user to a security group in Active Directory?
In Windows Server 2012 R2 or Windows Server 2008 R2, use the Add-ADGroupMember cmdlet.
To add a user with a SAM ID “John.Smith” to a security group called “Finance”:
ADD-ADGroupMember “Finance” –members “John.Smith”
To add two or three members to group
What about if I want to add all members into one group ? or members in an OU into one group?