Asked by:
Powershell script for updating user data in AD

Question
-
Hello guys,
Could you please help me in getting the powershell script to update users data(i.e first name, last name, job title) in
Active Directory in a bulk manner.
Regards,
Upendra V.
Sunday, September 22, 2019 4:03 PM
All replies
-
Please have a look in the Powershell Gallery or search for it ... there are literally thousands of examples out there ... even here in this forum
Please read this first: Forum Posting Guidelines.
Also find scripts here: PowerShell Gallery or here: TechNet Gallery - resources for IT professionals.
Learn PowerShell: Microsoft Channel 9 - Getting Started with Microsoft PowerShell 3.0.
Script requests: Microsoft Technet Script Center - Requests.
Live long and prosper!
(79,108,97,102|%{[char]$_})-join''
- Edited by BOfH-666 Sunday, September 22, 2019 4:13 PM
Sunday, September 22, 2019 4:12 PM -
Here are links to two examples in the Script Gallery to update AD users in bulk. You can find more by searching. First a script using the information in an Excel spreadsheet:
https://gallery.technet.microsoft.com/Update-AD-Users-in-Bulk-ca0068f1
And a more recent script to update users from a CSV (comma delimited) file:
https://gallery.technet.microsoft.com/Update-Active-Directory-cd5c5513
Any script to update AD objects in bulk needs to be carefully designed to handle as many possible problems as possible. If the script does something unintended, it can be very difficult or impossible to correct. It is also best for the script to log everything it does. Each of these scripts has limitations documented in the writeup or comments. But the properties you mention should be straightforward. The LDAPDisplayNames of the corresponding AD attributes are givenName (for the first name), sn (for the last name), and title (for job title).
Richard Mueller - MVP Enterprise Mobility (Identity and Access)
- Proposed as answer by LeeSeenLiMicrosoft contingent staff Monday, September 23, 2019 3:07 AM
Sunday, September 22, 2019 8:50 PM -
Hi,
Thanks for your question.
https://activedirectorypro.com/how-to-bulk-modify-ad-user-attributes/
Please read the article to understand how it works.
Best regards,
Just do it.
Monday, September 23, 2019 3:10 AM -
Hi,
Was your issue resolved?
If you resolved it using our solution, please "mark it as answer" to help other community members find the helpful reply quickly.
If you resolve it using your own solution, please share your experience and solution here. It will be very beneficial for other community members who have similar questions.
If no, please reply and tell us the current situation in order to provide further help.
Best Regards,
Lee
Just do it.
Thursday, October 3, 2019 2:47 AM