Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

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 _
    ("LDAP://cn=myerken,ou=management,dc=fabrikam,dc=com") 

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"
objUser.SetInfo

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

share|improve this answer

Your Answer

 
discard

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.