Can I do a bulk import of user attibutes into AD

S

Sayed

Hi,

I have about 2000 users in AD and would like to populate
the "email" field on all the user accounts. Is there a
bulk import or any other easy way to do that beside having
to open each user account and typing in the information?

Your response will be appreciated. Thanks,

Sayed
 
M

Matjaz Ladava [MVP]

1. Create a script. See
http://www.microsoft.com/technet/treeview/default.asp?url=/technet/scriptcenter/default.asp
for examples
2. use ldifde tool to export all users from AD, change mail address and then
ldifde tool to reimport changed data to AD. For example
ldifde -f test.ldf -r "(&(objectCategory=person)(objectclass=user))" -l
"mail"

will export all users and their mail attribute. Next change mail attribute
in file to something else and change changeType command in ldf file to
modify (instead of add)

use
ldifde -i -f test.ldf

to reimport the settings.


Regards

Matjaz Ladava, MCSE, MCSA, MCT, MVP
Microsoft MVP - Active Directory
(e-mail address removed), (e-mail address removed)
http://ladava.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top