VB Script to set email in active directory - TechRepublic
Question
October 2, 2009 at 07:44 AM
jtbjustin

VB Script to set email in active directory

by jtbjustin . Updated 16 years, 9 months ago

Hello,
I have a Windows 2008 Active Directory server, and within that server I have about 800 user accounts. All of these accounts have user names that match their work issued email account, less the domain name. So for example, my login name is jtbjustin, and my email is jtbjustin@mydomain.com.

So here is what I would like to do,
I would like to write a VB script that takes someone’s active directory user name and then puts that plus “@mydomain.com” into the email contact field in active directory.

I also want to run this script on only a certain OU, I don’t want to run it for every user in my domain.

Could any one give me some documentation or help to write this kind of script? I have virtually no experience with VB.

Thank you very much!

This discussion is locked

All Comments