All the information in the PSCustomObject isn't necessary. It doesn't hurt to know it's there, though. The code was shamelessly purloined (and slightly modified) from here: powershell-get-list-of-two-letter-country-iso-3166-code-alpha-2-currency-language-and-more Latin American is only associated with one language. "es" is your two-letter language code. That aside, I would recommend against using language codes to indicate keyboard layouts. There is a separate system already in place for abbreviating the names of the layouts themselves. However thereโ€™s loads of country codes โ€“ and in order to fulfil our legal obligations I needed a list of 2 letter country codes applicable to Europe only. So, I created a list of codes that you can see (and use) below. For a full list of all the ISO 2 letter country codes check out the Wikipedia page on the subject. The European Country A 2 letter country code โ€“ defined under ISO 3166; 2 check digit โ€“ defined under ISO/IEC 7064; Up to 30 alpha-numeric characters โ€“ which is made up of the Basic Bank Account Number (BBAN) The BBAN number indicates an account at a bank in a particular country โ€“ it is typically made up of a bank identifier, sort code and account number Airport coding first began in the 1930s, and airlines typically chose their own two-letter codes. By the late 1940s, there were too many airports , and the system shifted to the three-letter code There is a limit of one two-letter country code per country. Country codes may not contain numbers, in line with the ISO 3166-1 alpha-2 standard. AA, OO, QM โ€” QZ, XA โ€” XZ, and ZZ are reserved, in line with the aforementioned ISO standard. In the real world, certain ranges of codes are reserved for end users, mainly for documentation Cultures are groupings of language and social norms defining things like the way numbers are written and dates are written. Cultures are usually denoted using their ISO 639 language codes. There are actually four different codes for each language, alpha-2, alpha-3, alpha-3 based on the English language name, and alpha-3 with dialect extensions. The country/region is represented as a 2-character code based on ISO-3166. co โ€” Country name (e.g. United States). Microsoft got really detailed on their description for this one. The country/region in which the user is located. countryCode โ€” Numeric Id (e.g. 840) Specifies the country/region code for the user's language of choice. TMwb.

is there a 2 letter country code