Skip to content

Active Directory country code list

We like to create Active Directory users with PowerShell. This time, we need to add a country code to the users. Having a list with all the countries and the specific country codes is excellent, as we can search for which country we want to add and use the code. In this article, you will learn how to get the Active Directory country code list.

Where to find the country/region in Active Directory?

Start Active Directory Users and Computers on the domain controller or management server.

Find the country information by going to the Address tab of a user. Select the Country/region from the dropdown.

Active Directory country code AD user properties

Create AD users in bulk with the Add-Newusers.ps1 PowerShell script and save yourself time. Learn more in the article Create Active Directory Users from CSV with PowerShell.

ISO 3166 country codes

The purpose of ISO 3166 is to define internationally recognized codes of letters and/or numbers that we can use when we refer to countries and their subdivisions. However, it does not define the names of countries – this information comes from United Nations sources (Terminology Bulletin Country Names and the Country and Region Codes for Statistical Use maintained by the United Nations Statistics Divisions).

Note: There are 249 country codes at the moment of writing.

ISO 3166 alpha-2 country code list

To get the alpha-2 country code, follow the below steps:

1. Go to ISO Online Browsing Platform (OBP).

2. Select Country codes and click on Search

Active Directory country code ISO 3166 OPB search

3. The alpha-2 code is the country code you need to set the Active Directory country/region setting for the user.

ISO 3166 OPB alpha-2 code

4. Search for a country and click on the search icon.

In our example, the United Kingdom.

Active Directory country code ISO 3166 OPB search UK

Active Directory country code

Here is a list that you can use to search for the country and the specific alpha-2 code.

CountryAlpha-2 code
AfghanistanAF
AlbaniaAL
AlgeriaDZ
American SamaoAS
AndorraAD
AngolaAO
AnguillaAI
AntarcticaAQ
Antigua and BarbudaAG
ArgentinaAR
ArmeniaAM
ArubaAW
AustraliaAU
AustriaAT
AzerbaijanAZ
Bahamas (the)BS
BahrainBH
BangladeshBD
BarbadosBB
BelarusBY
BelgiumBE
BelizeBZ
BeninBJ
BermudaBM
BhutanBT
Bolivia (Plurinational State of)BO
Bonaire, Sint Eustatius and SabaBQ
Bosnia and HerzegovinaBA
BotswanaBW
Bouvet IslandBV
BrazilBR
British Indian Ocean Territory (the)IO
Brunei DarussalamBN
BulgariaBG
Burkina FasoBF
Cabo VerdeCV
CambodiaKH
CameroonCM
CanadaCA
Cayman Islands (the)KY
Central African Republic (the)CF
ChadTD
ChileCL
ChinaCN
Christmas IslandCX
Cocos (Keeling) Islands (the)CC
ColombiaCO
ComorosKM
Congo (the Democratic Republic of the)CD
CongoCG
Cook IslandsCK
Costa RicaCR
CroatiaHR
CubaCU
CuraçaoCW
CyprusCY
Czech RepublicCZ
Côte d’IvoireCI
DenmarkDK
DjiboutiDJ
DominicaDM
Dominican Republic (the)DO
EcuadorEC
EgyptEG
El SalvadorSV
Equatorial GuineaGQ
EritreaER
EstoniaEE
EswatiniSZ
EthiopiaET
Falkland Island (the)FK
Faroe Islands (the)FO
FijiFJ
FinlandFI
FranceFR
French GuianaGF
French PolynesiaPF
French Southern Territories (the)TF
GabonGA
Gambia (the)GM
GeorgiaGE
GermanyDE
GhanaGH
GibraltarGI
GreeceGR
GreenlandGL
GrenadaGD
GuadeloupeGP
GuamGU
GuatemalaGT
GuernseyGG
GuineaGN
Guinea-BissauGW
GuyanaGY
HaitiHT
Heard Island and McDonald IslandsHM
Holy See (the)VA
HondurasHN
Åland IslandsAX
Hong KongHK
HungaryHU
IcelandIS
IndiaIN
IndonesiaID
Iran (Islamic Republic of)IR
IraqIQ
IrelandIE
Isle of ManIM
IsraelIL
ItalyIT
JamaicaJM
JapanJP
JerseyJE
JordanJO
KazakhstanKZ
KenyaKE
KiribatiKI
Korea (the Democratic People’s Republic of)KP
Korea (the Republic of)KR
KuwaitKW
KyrgyzstanKG
Lao People’s Democratic Republic (the)LA
LatviaLV
LebanonLB
LesothoLS
LiberiaLR
LibyaLY
LiechtensteinLI
LithuaniaLT
LuxembourgLU
MacaoMO
MadagascarMG
MalawiMW
MalaysiaMY
MaldivesMV
MaliML
MaltaMT
Marshall Islands (the)MH
MartiniqueMQ
MauritaniaMR
MauritiusMU
MayotteYT
MexicoMX
Micronesia (Federated States of)FM
Moldova (the Republic of)MD
MonacoMC
MongoliaMN
MontenegroME
MontserratMS
MoroccoMA
MozambiqueMZ
MyanmarMM
NamibiaNA
NauruNR
NepalNP
Netherlands (the)NL
New CaledoniaNC
New ZealandNZ
NicaraguaNI
Niger (the)NE
NigeriaNG
NiueNU
Norfolk IslandNF
North MacedoniaMK
Northern Mariana Islands (the)MP
NorwayNO
OmanOM
PakistanPK
PalauPW
Palestine, State ofPS
PanamaPA
Papua New GuineaPG
ParaguayPY
PeruPE
Philippines (the)PH
PolandPL
PortugalPT
Puerto RicoPR
QatarQA
RomaniaRO
Russian Federation (the)RU
RwandaRW
RéunionRE
Saint BarthélemyBL
Saint Helena, Ascension and Tristan da CunhaSH
Saint Kitts and NevisKN
Saint LuciaLC
Saint Martin (French part)MF
Saint Pierre and MiquelonPM
Saint Vincent and the GrenadinesVC
SamoaWS
San MarinoSM
Sao Tome and PrincipeST
Saudi ArabiaSA
SenegalSN
SeychellesSC
Sierra LeoneSL
SingaporeSG
Sint Maarten (Dutch part)SX
SlovakiaSK
SloveniaSI
Solomon IslandsSB
SomaliaSO
South AfricaZA
South Georgia and The South Sandwich IslandsGS
South SudanSS
SpainES
Sri LankaLK
Sudan (the)SD
SurinameSR
Svalbard and Jan MayenSJ
SwedenSE
SwitzerlandCH
Syrian Arab Republic (the)SY
Taiwan (Province of China)TW
TajikistanTJ
Tanzania, the United Republic ofTZ
ThailandTH
Timor-LesteTL
TogoTG
TongaTO
Trinidad and TobagoTT
TunisiaTN
TurkeyTR
TurkmenistanTM
Turks and Caicos Islands (the)TC
TuvaluTV
UgandaUG
UkraineUA
United Arab Emirates (the)AE
United Kingdom of Great Britain and Northern Ireland (the)GB
United States Minor Outlying Islands (the)UM
United States of America (the)US
UruguayUY
UzbekistanUZ
VanuatuVU
Venezuela (Bolivarian Republic of)VE
VietnamVN
Virgin Islands (British)VG
Virgin Islands (U.S.)VI
Wallis and FutunaWF
Western SaharaEH
YemenYE
ZambiaZM
ZimbabweZW
ALI TAJRAN

ALI TAJRAN

ALI TAJRAN is a passionate IT Architect, IT Consultant, and Microsoft Certified Trainer. He started Information Technology at a very young age, and his goal is to teach and inspire others. Read more »

This Post Has 0 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *