WEBVTT

00:00.530 --> 00:07.560
This lesson we'll talk about modifying their properties and the previous lesson we've seen how to create

00:07.770 --> 00:15.920
user accounts use an Active Directory PowerShares Madill and Active Directory administrative center.

00:16.070 --> 00:23.930
The task of system administrator will not and just by creating user objects in Active Directory Lavey

00:23.950 --> 00:28.260
will also be responsible for modifying and managing them.

00:28.260 --> 00:34.710
This lesson will help you understand the process involved in modifying the user accounts use and power

00:34.800 --> 00:39.470
show since modifying user accounts has a very big scope.

00:39.510 --> 00:42.330
We'll discuss a few examples.

00:42.420 --> 00:47.840
Example cases where a bulky user modification is required.

00:48.000 --> 00:52.610
Those examples will help you to understand their modification brothas.

00:52.620 --> 01:01.830
You can leverage examples or modify any other attributes in Active Directory like OBD-II to the description

01:02.100 --> 01:11.120
of a user object update and the telephone number of multiple users enabling disable user accounts Imbolc

01:11.460 --> 01:17.330
moving the user account to another oh you before start to modify user properties.

01:17.340 --> 01:25.260
Let's brush up on the basics with a graphical user interface to the description of a user account.

01:25.410 --> 01:34.830
You'll typically follow these steps open active directory administrative center to search for for a

01:34.830 --> 01:37.450
user name in Active Directory.

01:37.620 --> 01:44.850
Go to the properties of that object and update the description and save your changes by clicking on

01:44.850 --> 01:45.570
a kid.

01:45.600 --> 01:53.100
What happens under the scenes when you update the description of the object and save it the system writes

01:53.100 --> 01:57.820
the radio to their respective attribute of that you are their object.

01:57.990 --> 02:06.810
You can view all attributes and their values using the attribute editor type in Active Directory administrative

02:06.810 --> 02:10.830
center or Active Directory Users and Computers.

02:10.980 --> 02:17.860
Of course you can also use ADSI added MEAC to for these purposes.

02:17.940 --> 02:27.140
So let's find some user or weasel named Tom and to you His attributes details in tribute Ed..

02:27.570 --> 02:34.950
So in order to update any details of a user object first we need to know its attribute name or display

02:34.950 --> 02:43.140
name and also all this remember that the names for properties you see and graphical user interface tools

02:43.440 --> 02:48.090
might not be the same as what you're saying that every good editor.

02:48.210 --> 02:56.140
For example the first name field you see in graphical user interface is translated to a given name and

02:56.150 --> 03:02.960
the attribute editor similar to the Gruyere approach we can search for a user object.

03:03.060 --> 03:11.780
And at least it's attributes Yulan power shell with get Desch Aidy user command left and we can add

03:11.790 --> 03:12.820
filter.

03:12.900 --> 03:22.680
For example we can type get a user filter parameter Antrel filter it by name which is equal to.

03:22.830 --> 03:31.560
Tom This will return the user object with the name attribute having the value of Tom by default it will

03:31.560 --> 03:34.930
return only a basic set of attributes.

03:35.010 --> 03:42.330
If you want to see all attributes of this user object then specify the property parameter.

03:42.360 --> 03:50.970
So let's add to this command property parameter and we'll be looking for all the properties of this

03:50.970 --> 03:51.850
user.

03:51.930 --> 03:57.800
The wildcard for all the properties as you might remember is asterisk.

03:57.810 --> 04:01.500
You can also Querrey users might change their name.

04:01.500 --> 04:10.670
In that case you can add asterisk to the filter you've used before like dormant asterisks will find

04:10.710 --> 04:14.460
all the users which are start in with Tom.

04:14.460 --> 04:22.380
Similarly you can Kaveri all objects inside a particular organizational unit by Bosson there or you

04:22.680 --> 04:26.960
distinguished name to their search base perimeter.

04:27.090 --> 04:36.240
So we could Taieb get a user filter parameter asterisks search based perimeter and trail below can in

04:36.510 --> 04:37.180
lab.

04:37.240 --> 04:45.210
Oh you you might have another over use so you have to change this address which is suitable to your

04:45.450 --> 04:46.670
environment.

04:46.680 --> 04:49.710
No one will know how to search for objects.

04:49.740 --> 04:52.710
Let's move on to learn how to modify them.

04:52.840 --> 04:57.060
Updating the description of a user object is not that hard.

04:57.090 --> 05:07.370
Let's use that for Tom object which we have found before so we could create a variable which will be

05:07.380 --> 05:16.770
called Dollar character use or Auberge pages for use or object and it will be equal to that.

05:16.780 --> 05:23.240
There's a user with philtre by name which is equal to Tom.

05:23.460 --> 05:29.900
And properties will be looking for pro for all properties of that user object.

05:29.910 --> 05:38.010
We can also now view the current description of the user object by using the following command the variable

05:38.010 --> 05:47.160
use a roach dot description assuming that the user account has a description set to replace the current

05:47.160 --> 05:49.250
description with a new value.

05:49.380 --> 05:56.850
First we need to understand what data type this attribute will accept as you might remember we can find

05:56.850 --> 05:57.630
this out.

05:57.670 --> 06:00.650
You're the get type method.

06:00.870 --> 06:09.600
You can invoke this method as shown in the following command variable user object description that get

06:09.600 --> 06:11.640
type in brackets.

06:11.640 --> 06:19.300
The output of this command shows that it accepts data types Drian so to update the description to a

06:19.320 --> 06:20.260
new value.

06:20.420 --> 06:29.430
We need to use a set does 80 years or command let and parse the user object wearable to the identity

06:29.430 --> 06:37.140
parameter and the string that you want to set in the description field to the description parameter.

06:37.140 --> 06:38.620
We have this command.

06:38.620 --> 06:46.820
This command will return to the power shall prompt in polish of window if it completes without any errors.

06:46.860 --> 06:57.630
So the command looks like that Cert. a user with identity parameter which is user object variable description

06:57.630 --> 07:02.550
parameter which is then your description will be modified.

07:02.670 --> 07:09.930
So in quotes we have to add a new description and to verify if the new description is updated in the

07:09.930 --> 07:11.880
user description field.

07:12.000 --> 07:19.310
We can either check it through the graphical user interface or run the power shell command that we used

07:19.320 --> 07:24.130
for querent the user object in the preceding commands.

07:24.240 --> 07:32.190
So putting everything together the phone and code will update the description of a given active directory

07:32.190 --> 07:41.340
user for us to set that variable username then reset and another way or able new description which will

07:41.340 --> 07:44.510
be equal to some string.

07:44.520 --> 07:52.890
We also at User object wearable which will be equal to get the user with filter and properties.

07:52.920 --> 07:59.160
We could also use Arite host to get the current description of the user object.

07:59.370 --> 08:08.580
And after that we set new description with the user identity will be equal to the variable use the raw

08:08.580 --> 08:16.920
object and a description parameter which will be equal to new description a variable which we have added

08:16.920 --> 08:17.750
before.

08:17.880 --> 08:22.860
And now we could get the user and check then your description.

08:22.860 --> 08:30.420
So we do that with a new wearable user object or in my case it's the same variable which I've used before

08:30.690 --> 08:41.550
which is equal to the user of filter or by name username and its properties and we could output it to

08:41.550 --> 08:49.950
the screen and say in your description of the object in such a way you can update whaler's of any other

08:50.040 --> 08:54.860
attribute using the procedure shown in this code.

08:55.020 --> 09:01.680
So you could try a Dayton for example the display name of a user for your practice.
