Professional Documents
Culture Documents
How To Bulk Modify Active Directory User Attributes
How To Bulk Modify Active Directory User Attributes
Attributes
Are you looking for a quick and easy solution to bulk modify Active
Directory user attributes?
Then you are in the right place.
In this post, I’m going to show you the AD Bulk User Update Tool that
makes it easy to bulk update active directory user attributes.
This is a GUI tool that updates AD user attributes from a CSV.
Let’s jump right into some examples:
1. Bulk Modify Users Office Attribute
2. Bulk Modify User Department and Title
3. Bulk Update User Employee ID and Employee Number
4. Bulk Remove User Attributes
5. Understanding LDAP Attributes (Cheat Sheet)
The first column of the CSV file needs to be the sAmAccountName followed
by the list of users you want to modify. The next column needs to be the
attribute you want to modify followed by the value.
TIP: The Active Directory names do not always match the LDAP attribute
name. This is how Microsoft designed it. This can be confusing and is why I
created a cheat sheet showing the most common Active Directory names to
LDAP attribute names. See the end of this post for the cheat sheet.
Looking at the cheat sheet the LDAP attribute for office is
physicalDeliveryOffice.
You can see below I have my CSV file setup and ready to import. I’ll just
save it to my computer and move to step 2. (You can name the file whatever
you want it just needs to be a CSV file).
This is optional but to verify the change just add the office column to Active
Directory Users and Computers.
Now you can easily see your user accounts and the office field.
You can use PowerShell to verify the changes with this command.
Get-ADUser -filter * -Properties * | select name, office
Looks great!
I can see the test users account office attribute has been updated to the
value I set in the CSV file.
Ready to go, I’ll open the tool, select the CSV file and click run.
The tool runs and makes the changes set by the CSV file.
Now I’ll verify the changes in ADUC.
To verify with PowerShell use this command
Get-ADUser -filter * -Properties * | select department, title
Perfect!
I just modified the department and job title for 100 users in 15 seconds.
Below is a table of the most commonly used ADUC fields and the LDAP
attribute mappings. I’ve grouped them based on the ADUC tabs General,
Address, Profile, Telephones, and Organization.
You can use this to quickly lookup what LDAP attribute name to setup in
the CSV file.
There comes a time when every administrator faces the need to make bulk
changes to Active Directory user accounts. I have faced this challenge
several times and have struggled with it in the past. With the AD User Bulk
Update Tool this is no longer a problem myself or my team has to deal with.
This tool makes it very easy and saves a great amount of time when dealing
with modifying user accounts.
This tool is included in the AD Pro Toolkit. You can download a free trial
here.