1 00:00:00,380 --> 00:00:05,960 Add in computer accounts to groups is no different than at any users. 2 00:00:05,970 --> 00:00:11,470 All you need to do is just replace the user name with the computer account name. 3 00:00:11,490 --> 00:00:21,060 The only thing you need to do is add the suffix dollar a symbol to the computer name while attempting 4 00:00:21,090 --> 00:00:26,040 the addition to add a single computer account to IT security group. 5 00:00:26,160 --> 00:00:27,740 Use the following command. 6 00:00:27,750 --> 00:00:38,730 Add does a group member identity test group members Lapis a with doula a symbol in quotes you need to 7 00:00:38,730 --> 00:00:42,640 specify whatever name you need for computer. 8 00:00:42,720 --> 00:00:49,110 In this codes you might wonder why this dollar signs should be used to along with a computer or name. 9 00:00:49,110 --> 00:00:52,700 This is simple inactive directory each computer. 10 00:00:52,770 --> 00:01:00,360 Same account name is stored in the same format to check some account name off of a computer you could 11 00:01:00,510 --> 00:01:08,850 use the following command get the say the computer identity leopards are with three for example and 12 00:01:08,850 --> 00:01:19,080 pipe it to select some account name and as you can see the output is with dollar character for computer 13 00:01:19,380 --> 00:01:20,310 account. 14 00:01:20,310 --> 00:01:24,070 So why we add computers to security groups. 15 00:01:24,120 --> 00:01:32,660 Many organizations create group policies and target them to list computer names by adding the computer 16 00:01:32,660 --> 00:01:39,450 accounts to a security group and Grant and apply permissions to that group alone. 17 00:01:39,750 --> 00:01:47,340 Similarly Sarge groups based on the computer accounts are used for tasks such as software deployments 18 00:01:47,610 --> 00:01:51,950 perform reboots schedule and jobs and so on. 19 00:01:52,050 --> 00:01:59,050 Computer accounts can be added to security groups based on a certain strain in their name. 20 00:01:59,130 --> 00:02:06,090 For example each organization will have a name and Stander for instance all test computers might have 21 00:02:06,090 --> 00:02:14,180 a screen test somewhere in their name and production could have a string such as broad in their name. 22 00:02:14,190 --> 00:02:22,830 In such cases if you would like to automatically add all test servers to one security group and all 23 00:02:22,830 --> 00:02:30,140 brought servers to another security group you can utilize the following sample example and adjust it 24 00:02:30,150 --> 00:02:31,590 according to your needs. 25 00:02:31,680 --> 00:02:40,680 So to do this first let's read the computers with test in their name to a variable called Dollar character 26 00:02:40,710 --> 00:02:48,310 test servers and all computer with a broad in their name to dollar character broad servers. 27 00:02:48,330 --> 00:02:52,170 We can do this by year then the guard dash a computer. 28 00:02:52,170 --> 00:02:56,270 Come on let with a filter as shown in this command. 29 00:02:56,370 --> 00:03:02,330 So wearable tech servers is equal to get a computer filter. 30 00:03:02,460 --> 00:03:05,190 Should look like test in it. 31 00:03:05,190 --> 00:03:09,560 And it goes the same for production computers. 32 00:03:09,570 --> 00:03:17,940 There should be brought in the name for this search and criteria or better to say filtering criteria. 33 00:03:17,970 --> 00:03:25,590 Once this wearables are populated with the computer records we can add them to the designated groups 34 00:03:25,620 --> 00:03:34,980 by using the at this age group member command led as shown in the following command and we pass it to 35 00:03:34,980 --> 00:03:44,400 the members parameter so to add all the computers to the test group will use the following game at Ad 36 00:03:44,730 --> 00:03:47,280 Age Group member identity. 37 00:03:47,280 --> 00:03:56,040 All test servers and members of this group will be the results or better to say the contents of the 38 00:03:56,370 --> 00:04:06,060 test servers wearable and the same goes for production servers will populate group all broad servers 39 00:04:06,140 --> 00:04:09,010 with the broad servers variable. 40 00:04:09,210 --> 00:04:17,820 So after running these commands all your test computers should be added to the all test server security 41 00:04:17,820 --> 00:04:26,280 group and all the production servers should be added to the all brought sorrow security group the membership 42 00:04:26,280 --> 00:04:34,890 of these groups can be viewed by the get dash a D group member command let let's run it and test and 43 00:04:34,890 --> 00:04:43,800 check all the members of the test computer so production computers with get a group command led so it's 44 00:04:43,800 --> 00:04:54,330 a good hint to to have the user so computers that you want to add them to a variable and then you just 45 00:04:54,330 --> 00:05:01,600 need to pass it to the at this a group member command led to to the required group.