Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to change country code of all user existing in one OU. I am using windows server 2003 enterprises edition, in which DNS is active directory integrated.

share|improve this question

You can try to create a VBScript which will edit the properties of all your users in a particular OU, using this :

objUser.Put "c", "US"

Where "US" is your country.

Using something like : (sample from VBsedit)

' Modify User Account Address Attributes

Set objUser = GetObject _

objUser.Put "streetAddress", "Building 43" & _
    VbCrLf & "One Microsoft Way"
objUser.Put "l", "Redmond"
objUser.Put "st", "Washington"
objUser.Put "postalCode", "98053"
objUser.Put "c", "US"
objUser.Put "postOfficeBox", "2222"

Then you use some $var for changing specific name in the first "cn=" or just do a loop.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.