Can I do a bulk import of user attibutes into AD

  • Thread starter Thread starter Sayed
  • Start date Start date
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
 
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
 
Back
Top