You can use Windows power shell to create modify and delete groups in my the same way that you do for
users.
You can use this command less to individual operations or as part of a script to perform bulk operations.
Let's take a look at the list or some of the command slots for management groups.
We have new a group which will create a new group set a group which will modify properties of groups
get the group band to remove a group which will display properties of the group and delete group we
have at age group member and get a group member which will add members to groups and display members
of groups.
There is also remove a group member which will remove members from a group at a d principal group membership
and get a principal group membership which will add group membership to objects and display group membership
of objects.
And we have got to remove a principal group membership which will remove group membership from an object.
Let's start with a new age group command led which will create groups.
However when you create groups by using the new age group command led you must use the group's scope
parameter in addition to the group name.
This is only required parameter.
Let's review the commonly used parameters for new age group.
There are such parameter says name group scope display name group category managed by path and same
account name so name will define the name of the group group's scope will define the scope of the group
as domain local global and universal.
You must provide this parameter display name will define the Lightweight Directory Access Protocol display
name for the object group category will define whether it is security group or a distribution group.
If you do not specify either a security group is created managed by defiance a user or group that can
be managed that can manage the group path.
Defiance they owe you a container in which the group is created and same account name.
Defiance a name that is backwards compatible with older operating systems.
Let's take a look at the following command one liner which is an example of what you could type out
a Windows power shall prompt to create a new group.
You could type new age group name customer management pass the pass to the O U in which this group will
exist.
Group scope global and group categories security.
There are two sets of common letters that you can use to manage group memberships.
They come on let's eat a group member and a D principal group membership.
They distinguish between these two sets of common letters is a perspective used when modifying group
membership.
The 80 group member.
Come on let's modify the membership of a group.
For example you add or remove members of a group you can not buy up a list of members to these command
levels and you can pass a list of groups to this Come lads.
Another site is a D principal group membership.
These come on let's modify the group memberships or one object such as a user.
For example you can modify a user account to added as a member of a group.
You can type a list of members to these command letters and you can not provide a list of groups to
these command letters.
Please know that piping is a common process in scripting languages that allow you to use the output
of one command loud as input for next command led in the command.
For example the following command will create a user account and then enable it with the help of new
ADA user command led so you could type.
New ADA user name Stern yours account password provided with the help of read host command led.
And then pipe the result of this part of the command to another part of the command which is enable
account.
So first the power shall processes new the user command led and sends the result to enable account command
let.