|
server
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
wirte country attribute for AD user account
hi
I use objNewUser.Put "co", "Australia" to set the country/region but it do not display on the user properties address screen, I have to use objNewUser.Put "c", "Au" then it work. my question are 1. is there anything wrong in my first statement 2. if use my second statement, how can I get the cointry code for each country. many thanks for any provided info -- Golden_au
Show quote
"Golden_au" <Golde***@discussions.microsoft.com> wrote in message It's based on ISO-3166. Search the Internet for documentation on the codes. news:4BF7D3F8-F799-4FF2-8A3C-4DF0A366B7F4@microsoft.com... > hi > > I use > objNewUser.Put "co", "Australia" > to set the country/region but it do not display on the user properties > address screen, I have to use > objNewUser.Put "c", "Au" > then it work. > > my question are > 1. is there anything wrong in my first statement > 2. if use my second statement, how can I get the cointry code for each > country. > > many thanks for any provided info > -- > Golden_au Note, there is also a countryCode attribute. I believe you should set c, co, and countryCode. The method you used is fine. Thanks, Richard, good info.
Can I confirm that, for example if the country is australia the following info are correct: from iso 3166 c: au co: Australia countryCode: 036 -- Show quoteGolden_au "Richard Mueller [MVP]" wrote: > > "Golden_au" <Golde***@discussions.microsoft.com> wrote in message > news:4BF7D3F8-F799-4FF2-8A3C-4DF0A366B7F4@microsoft.com... > > hi > > > > I use > > objNewUser.Put "co", "Australia" > > to set the country/region but it do not display on the user properties > > address screen, I have to use > > objNewUser.Put "c", "Au" > > then it work. > > > > my question are > > 1. is there anything wrong in my first statement > > 2. if use my second statement, how can I get the cointry code for each > > country. > > > > many thanks for any provided info > > -- > > Golden_au > > It's based on ISO-3166. Search the Internet for documentation on the codes. > Note, there is also a countryCode attribute. I believe you should set c, co, > and countryCode. The method you used is fine. > > -- > Richard Mueller > Microsoft MVP Scripting and ADSI > Hilltop Lab - http://www.rlmueller.net > -- > > > That agrees with the information I have for Australia.
Show quote "Golden_au" <Golde***@discussions.microsoft.com> wrote in message news:2F3E0273-8FF5-42DD-B1EC-5B7CA0439927@microsoft.com... > Thanks, Richard, good info. > > Can I confirm that, for example if the country is australia the following > info are correct: from iso 3166 > c: au > co: Australia > countryCode: 036 > > -- > Golden_au > > > "Richard Mueller [MVP]" wrote: > >> >> "Golden_au" <Golde***@discussions.microsoft.com> wrote in message >> news:4BF7D3F8-F799-4FF2-8A3C-4DF0A366B7F4@microsoft.com... >> > hi >> > >> > I use >> > objNewUser.Put "co", "Australia" >> > to set the country/region but it do not display on the user properties >> > address screen, I have to use >> > objNewUser.Put "c", "Au" >> > then it work. >> > >> > my question are >> > 1. is there anything wrong in my first statement >> > 2. if use my second statement, how can I get the cointry code for each >> > country. >> > >> > many thanks for any provided info >> > -- >> > Golden_au >> >> It's based on ISO-3166. Search the Internet for documentation on the >> codes. >> Note, there is also a countryCode attribute. I believe you should set c, >> co, >> and countryCode. The method you used is fine. >> >> -- >> Richard Mueller >> Microsoft MVP Scripting and ADSI >> Hilltop Lab - http://www.rlmueller.net >> -- >> >> >> |
|||||||||||||||||||||||