Modify Custom Attributes in AD

I have a list of 100 users (in a csv file) that I need to modify the “extensionAttributed1” attribute in AD. Without having to do this manually, is there a quicker process?

6 Spice ups

You can do this interactively in Hyena . As long as you have something in your input file to uniquely identify your users, the entire process will take about 2-3 minutes to setup and run. We have a video to show you how this works, using an employee ID as the match/lookup:

Another tool that I’ve found useful is WiseSoft Bulk AD Users - and it’s a little dated, but it’s a free tool - author only asks for donations. I’ve used it here recently for cleaning up AD user fields - and it should work for custom attributes as well.

Tzo

It may be dated but it worked like a champ!!

Thank You.

PowerShell is the free tool built into windows for doing this.

Do you need to set the value of extensionAttribute1 to the same value for each user or a different value?

I thought about

Import-Csv C:\users.csv | ForEach { Set-ADUser -Identity $_.samaccountname -Replace @{extendedAttribute="List1"} } 

I’d have done it something like

$users = Import-CSV -path C:\users.csv $value = "thevalueIwantinextentionAttribute1" foreach ($user in $users) { Set-ADUser -identity $user -replace @{extensionAttribute1 = $value} } 

Although I’d probably need a few tests to get the syntax right.

Here’s a PowerShell script that allows you to import users from CSV and update them if they already exist in Active Directory.

You can also check out Adaxes’ bulk AD management options . It’s not free, but it has a free 30-day trial , which you can use with no limitations whatsoever. It has built-in templates, custom actions, support for cross-domain management, support for Exchange and Office 365, etc.

1 Spice up