Home All Groups Group Topic Archive Search About

wirte country attribute for AD user account



Author
14 Mar 2007 2:10 AM
Golden_au
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

Author
14 Mar 2007 6:54 AM
Richard Mueller [MVP]
Show quote
"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
--
Author
15 Mar 2007 2:15 AM
Golden_au
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


Show quote
"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
> --
>
>
>
Author
15 Mar 2007 5:44 AM
Richard Mueller [MVP]
That agrees with the information I have for Australia.

--
Richard Mueller
Microsoft MVP Scripting and ADSI
Hilltop Lab - http://www.rlmueller.net
--

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
>> --
>>
>>
>>

AddThis Social Bookmark Button