This lesson we'll talk about modifying their properties and the previous lesson we've seen how to create
user accounts use an Active Directory PowerShares Madill and Active Directory administrative center.
The task of system administrator will not and just by creating user objects in Active Directory Lavey
will also be responsible for modifying and managing them.
This lesson will help you understand the process involved in modifying the user accounts use and power
show since modifying user accounts has a very big scope.
We'll discuss a few examples.
Example cases where a bulky user modification is required.
Those examples will help you to understand their modification brothas.
You can leverage examples or modify any other attributes in Active Directory like OBD-II to the description
of a user object update and the telephone number of multiple users enabling disable user accounts Imbolc
moving the user account to another oh you before start to modify user properties.
Let's brush up on the basics with a graphical user interface to the description of a user account.
You'll typically follow these steps open active directory administrative center to search for for a
user name in Active Directory.
Go to the properties of that object and update the description and save your changes by clicking on
a kid.
What happens under the scenes when you update the description of the object and save it the system writes
the radio to their respective attribute of that you are their object.
You can view all attributes and their values using the attribute editor type in Active Directory administrative
center or Active Directory Users and Computers.
Of course you can also use ADSI added MEAC to for these purposes.
So let's find some user or weasel named Tom and to you His attributes details in tribute Ed..
So in order to update any details of a user object first we need to know its attribute name or display
name and also all this remember that the names for properties you see and graphical user interface tools
might not be the same as what you're saying that every good editor.
For example the first name field you see in graphical user interface is translated to a given name and
the attribute editor similar to the Gruyere approach we can search for a user object.
And at least it's attributes Yulan power shell with get Desch Aidy user command left and we can add
filter.
For example we can type get a user filter parameter Antrel filter it by name which is equal to.
Tom This will return the user object with the name attribute having the value of Tom by default it will
return only a basic set of attributes.
If you want to see all attributes of this user object then specify the property parameter.
So let's add to this command property parameter and we'll be looking for all the properties of this
user.
The wildcard for all the properties as you might remember is asterisk.
You can also Querrey users might change their name.
In that case you can add asterisk to the filter you've used before like dormant asterisks will find
all the users which are start in with Tom.
Similarly you can Kaveri all objects inside a particular organizational unit by Bosson there or you
distinguished name to their search base perimeter.
So we could Taieb get a user filter parameter asterisks search based perimeter and trail below can in
lab.
Oh you you might have another over use so you have to change this address which is suitable to your
environment.
No one will know how to search for objects.
Let's move on to learn how to modify them.
Updating the description of a user object is not that hard.
Let's use that for Tom object which we have found before so we could create a variable which will be
called Dollar character use or Auberge pages for use or object and it will be equal to that.
There's a user with philtre by name which is equal to Tom.
And properties will be looking for pro for all properties of that user object.
We can also now view the current description of the user object by using the following command the variable
use a roach dot description assuming that the user account has a description set to replace the current
description with a new value.
First we need to understand what data type this attribute will accept as you might remember we can find
this out.
You're the get type method.
You can invoke this method as shown in the following command variable user object description that get
type in brackets.
The output of this command shows that it accepts data types Drian so to update the description to a
new value.
We need to use a set does 80 years or command let and parse the user object wearable to the identity
parameter and the string that you want to set in the description field to the description parameter.
We have this command.
This command will return to the power shall prompt in polish of window if it completes without any errors.
So the command looks like that Cert. a user with identity parameter which is user object variable description
parameter which is then your description will be modified.
So in quotes we have to add a new description and to verify if the new description is updated in the
user description field.
We can either check it through the graphical user interface or run the power shell command that we used
for querent the user object in the preceding commands.
So putting everything together the phone and code will update the description of a given active directory
user for us to set that variable username then reset and another way or able new description which will
be equal to some string.
We also at User object wearable which will be equal to get the user with filter and properties.
We could also use Arite host to get the current description of the user object.
And after that we set new description with the user identity will be equal to the variable use the raw
object and a description parameter which will be equal to new description a variable which we have added
before.
And now we could get the user and check then your description.
So we do that with a new wearable user object or in my case it's the same variable which I've used before
which is equal to the user of filter or by name username and its properties and we could output it to
the screen and say in your description of the object in such a way you can update whaler's of any other
attribute using the procedure shown in this code.
So you could try a Dayton for example the display name of a user for your practice.