January 2015
Intermediate to advanced
230 pages
5h 4m
English
In the previous sections, we saw how to create groups in Active Directory, how to search for them, and how to change group object information. Groups are useless without members in them. In this section, we will concentrate on how to add both user accounts and computer accounts to security groups in Active Directory.
Like any other operation, Active Directory module has a cmdlet to add members to groups. The Get-ADGroupMember cmdlet does this for you.
To add a member to the group, use the Add-ADGroupMember cmdlet with the member parameter. Use the samaccountName of the member/user for ease of addition.
Adding a single user account to a security group is very straightforward with the
Add-ADGroupMember ...
Read now
Unlock full access