什么是Active Directory中的“国家”字段中的值?字段、国家、Active、Directory

2023-09-08 12:45:59 作者:潮男情歌

我有一种感觉的Windows预计'国家'是一个整数,0表示美国。如果是这样的话,什么是整数和ISO 2字母的国家codeS之间的映射?主动

I have a feeling Windows expects 'country' to be an integer, with 0 meaning 'US'. If that's the case, what's the mapping between integers and ISO 2-letter country codes?active

推荐答案

请参阅该链接的位置:

ISO 3166国家codeS

似乎是标准的ISO 3166国家codeS在多个地方使用。

Seems to be standard ISO 3166 country codes used in several places.

这是这个职位在这里同样的结果:Active Directory和.NET

Same result from this post here: Active Directory and .NET

5点读:

5。设置用户的国家的

设置国家属性用户   是说我花了一些任务之一   时间才能体现出来。几个小时后,   研究我意识到你需要   要知道在 ISO 3166 codeS 作为   国家和地区设立三个属性为   定义一个用户的国家:C,Co和   国家code 的

To set the country property for a user was one of the tasks that took me some time to figure out. After some hours of research I realized that you need to know the ISO 3166 Codes for countries and set three properties to define a user's country: c, co, and countryCode.

这包括难以捉摸的ISO 3166的数值codeS 可以在维基百科 - 当然! (在ISO本身,你似乎无法得到免费的这些列表 - 你必须支付的特权......)

Best overview that includes the elusive ISO 3166 numeric codes can be found on Wikipedia - of course! (at ISO itself, you can't seem to get those lists for free - you have to pay for the privilege....)