Propagate an Active Directory property to all persons in an OU

I'm looking for a way for me to populate a attribute in Windows 2003 Active directory and have it fill in those same values for all the users in the OU. Current and new.  Even if I move a user or create a new one.

Is that possible?
kblackwelAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

exx1976Commented:
Uhhh.....

Sort of..  You could use a small piece of VBS to accomplish this.  You'd have to either schedule it or re-run it by hand to include the new users though.  Here's an example that sets the phone number for every user in an OU (I just hacked this together quick here to give you an example)


HTH,
exx
Set oOU = GetObject("LDAP://OU=MyUsers,DC=myDomain,DC=local")
For each object in oOU
    If object.class = "user" Then
        object.telephoneNumber = "202-555-1212"
        object.setinfo()
    End If
Next

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Databases

From novice to tech pro — start learning today.