1 00:00:06,400 --> 00:00:14,050 You can use Windows power shell to create modify and delete groups in my the same way that you do for 2 00:00:14,050 --> 00:00:15,100 users. 3 00:00:15,100 --> 00:00:22,930 You can use this command less to individual operations or as part of a script to perform bulk operations. 4 00:00:22,930 --> 00:00:28,210 Let's take a look at the list or some of the command slots for management groups. 5 00:00:28,210 --> 00:00:36,070 We have new a group which will create a new group set a group which will modify properties of groups 6 00:00:36,240 --> 00:00:43,180 get the group band to remove a group which will display properties of the group and delete group we 7 00:00:43,180 --> 00:00:51,220 have at age group member and get a group member which will add members to groups and display members 8 00:00:51,220 --> 00:00:52,060 of groups. 9 00:00:52,060 --> 00:01:00,400 There is also remove a group member which will remove members from a group at a d principal group membership 10 00:01:00,490 --> 00:01:08,920 and get a principal group membership which will add group membership to objects and display group membership 11 00:01:08,920 --> 00:01:09,850 of objects. 12 00:01:09,850 --> 00:01:17,350 And we have got to remove a principal group membership which will remove group membership from an object. 13 00:01:17,350 --> 00:01:22,600 Let's start with a new age group command led which will create groups. 14 00:01:22,600 --> 00:01:30,330 However when you create groups by using the new age group command led you must use the group's scope 15 00:01:30,330 --> 00:01:33,460 parameter in addition to the group name. 16 00:01:33,460 --> 00:01:36,280 This is only required parameter. 17 00:01:36,280 --> 00:01:41,770 Let's review the commonly used parameters for new age group. 18 00:01:41,770 --> 00:01:51,280 There are such parameter says name group scope display name group category managed by path and same 19 00:01:51,280 --> 00:01:58,330 account name so name will define the name of the group group's scope will define the scope of the group 20 00:01:58,330 --> 00:02:02,300 as domain local global and universal. 21 00:02:02,320 --> 00:02:09,340 You must provide this parameter display name will define the Lightweight Directory Access Protocol display 22 00:02:09,340 --> 00:02:17,230 name for the object group category will define whether it is security group or a distribution group. 23 00:02:17,260 --> 00:02:25,000 If you do not specify either a security group is created managed by defiance a user or group that can 24 00:02:25,000 --> 00:02:28,350 be managed that can manage the group path. 25 00:02:28,390 --> 00:02:34,640 Defiance they owe you a container in which the group is created and same account name. 26 00:02:34,690 --> 00:02:40,450 Defiance a name that is backwards compatible with older operating systems. 27 00:02:40,450 --> 00:02:47,740 Let's take a look at the following command one liner which is an example of what you could type out 28 00:02:47,740 --> 00:02:51,550 a Windows power shall prompt to create a new group. 29 00:02:51,550 --> 00:03:00,400 You could type new age group name customer management pass the pass to the O U in which this group will 30 00:03:00,400 --> 00:03:01,370 exist. 31 00:03:01,380 --> 00:03:05,550 Group scope global and group categories security. 32 00:03:05,620 --> 00:03:11,060 There are two sets of common letters that you can use to manage group memberships. 33 00:03:11,080 --> 00:03:17,090 They come on let's eat a group member and a D principal group membership. 34 00:03:17,140 --> 00:03:23,950 They distinguish between these two sets of common letters is a perspective used when modifying group 35 00:03:23,950 --> 00:03:24,940 membership. 36 00:03:25,000 --> 00:03:27,100 The 80 group member. 37 00:03:27,100 --> 00:03:31,000 Come on let's modify the membership of a group. 38 00:03:31,090 --> 00:03:38,440 For example you add or remove members of a group you can not buy up a list of members to these command 39 00:03:38,440 --> 00:03:43,800 levels and you can pass a list of groups to this Come lads. 40 00:03:43,850 --> 00:03:47,380 Another site is a D principal group membership. 41 00:03:47,380 --> 00:03:53,090 These come on let's modify the group memberships or one object such as a user. 42 00:03:53,170 --> 00:03:58,290 For example you can modify a user account to added as a member of a group. 43 00:03:58,330 --> 00:04:05,440 You can type a list of members to these command letters and you can not provide a list of groups to 44 00:04:05,440 --> 00:04:06,580 these command letters. 45 00:04:06,730 --> 00:04:14,650 Please know that piping is a common process in scripting languages that allow you to use the output 46 00:04:15,010 --> 00:04:20,140 of one command loud as input for next command led in the command. 47 00:04:20,140 --> 00:04:27,670 For example the following command will create a user account and then enable it with the help of new 48 00:04:27,700 --> 00:04:30,900 ADA user command led so you could type. 49 00:04:31,060 --> 00:04:38,790 New ADA user name Stern yours account password provided with the help of read host command led. 50 00:04:39,040 --> 00:04:46,360 And then pipe the result of this part of the command to another part of the command which is enable 51 00:04:46,360 --> 00:04:46,930 account. 52 00:04:47,290 --> 00:04:56,730 So first the power shall processes new the user command led and sends the result to enable account command 53 00:04:56,730 --> 00:04:57,070 let.