Bulk modify Active Directory user attributes | Windows Server 2022 | User attributes update

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hey friends in this video i will show you how you can update the attribute value for multiple users in active directory suppose if you are working in any organization and your manager says that to update the user attributes like email addresses for multiple users or bulk users you can say or update the department or location or like home pages as well so how you can do it what are the way either you can do it manually one by one in active directory users computer snapping or you will use a power shell so powershell provides a better way which you can use it and you can update the value attribute value for multiple users so what exactly required for updating the value first you require the username a list of users where you want to update the value and the value which you which you want to update like email addresses or department or something else in in our scenario what we will do we will just create a csv file where we will uh we will edit the username in one column and email address in second column and i will mention that like same account name and email addresses so because we are just updating only email addresses so how how we will do it how we will create the csv so currently i have just created an uh excel sheet or csv file where we have just mentioned this all details so just i am going to open it now you can see in the one column i just mentioned uh sam account name and in the second column i just mentioned uh mail addresses so this is the way which you can use to create the csv file now i will show you in the active directory before updating the value so we need to just cross check the attributes either that is blank or something is written so currently this this is blank so we just want to update the email address attributes in users property so this is the first user now you can see in the second user similarly uh this is blank so now we will see how uh how we can create the power shell so what just i'm going to open the power shell isc even you can use it power cell as well but because this is my favorite um power cell of windows where i just i can edit the value and even i can run a specific line of powershell script as well so i'm always try to use this power cell isc windows only so because i just already created the power shell for this all uh settings so i will just copy it and i will paste it on my window over here now you can see this is the power shell so in the first line import dash module active directory it is just importing the active directory over here now it's just creating a variable a trip csv and the value for this variable is import dash csv and because this is a command powershell command that will just import the csv file uh just by mistake i just copied somewhere else so now and import dash csv this is a powershell command that will import the csv file from this path this is the path which i just created to uh to save my csv file so it will just import the import the csv and it will put it on a trip csv variable now it will run the for each loop so uh it will just go one by one uh in this csv file because this csv file is stored in this variable so it will go one by one till last so this is the for each loop now this is the active directory command it will just fetch the identity from this user variable and it will take the same account name if you will go inside the this csv file so you can see this is the same account name so it will just fetch the same account name and then it will set the properties uh email address this is a attribute and it will just take the mail from this csv file and then it will set this value so now i will just execute it this has been executed successfully now i will go on dsa.msc now i will verify it again see this email address has been updated even you can see this has also been updated so this is the way which you can follow to create to update the user attributes uh if you have user details and email addresses which you want to update so so so now this has been updated in active directory users computers as well now uh how you will uh get this powershell command so currently i just updated this power cell on my website infoelias.com as well here you can just log in you can go on the infoliast.com and like info alias.com here you can go through and you can see the post which i just updated updating bulk user properties with powershell so i just given an example of csv file how you can create and once you create so you can use this powershell command to update the email address of the user so you need to just change the same account name as per your requirement as per your organizations how you have created this is just for example which i just given over here and here i just given the email address for the user where you want so when you are updating so you must be careful before updating any attribute value for your organization so first you need to just cross check with a single account and then if you are able to update the value then you can gradually go for multiple user accounts attribute updations thank you for watching this video
Info
Channel: InfoAlias
Views: 18,306
Rating: undefined out of 5
Keywords: bulk user, bulk user properties update, bulk user attributes update, user attributes, how to update multe user properties, Set-AdUser, user attributes update, multiple user attributes updpate in active directory, bulk user update powershell, powershell for user properties update, powershell for user attributes update, set multiple user attributes, how to set user user properties value, bulk user update csv, bulk user attributes csv, bulk modify Active Directory user attributes
Id: vDjoKsy0XkM
Channel Id: undefined
Length: 6min 57sec (417 seconds)
Published: Sun Feb 20 2022
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.