Create a user group:
New-ADGroup -Path "OU=Groups,OU=Example,DC=example,DC=com" -Name "GROUPMSAD" -GroupScope Global -GroupCategory Distribution
Where:
-Path: The distinguished name (DN)
of the user group.
You can specify the following attributes:
OU: The organizational unit
where the user group will be located.
DC: The components of the
domain that will be associated with the user
group.
-Name: The unique name of the user
group.
Add users to the group:
Add -ADGroupMember GROUPMSAD -Members user1,user2,user3
Where:
-ADGroupMember: The unique name of
the group to which users will be added.
-Members: The unique IDs of users
that will be added to the group.