skip to Main Content

Active Directory country code list

We like to create Active Directory users with PowerShell. This time, we need to add country code to the users. Having a list with all the countries and the specific country codes is excellent, as we can search which country we want to add and use the code.

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

Access country codes on ISO Online Browsing Platform (OBP). Search for the country and use the Alpha-2 code.

Active Directory country code ISO 3166 OPB search

Active Director country code

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

CountryCode
AfghanistanAF
AlbaniaAL
AlgeriaDZ
AndorraAD
AngolaAO
AnguillaAI
Antigua and BarbudaAG
ArgentinaAR
ARIPOAP
ArmeniaAM
ArubaAW
AustraliaAU
AustriaAT
AzerbaijanAZ
BahamasBS
BahrainBH
BangladeshBD
BarbadosBB
BBM and BBDMBX
BelarusBY
BelgiumBE
BelizeBZ
BeninBJ
BermudaBM
BhutanBT
BoliviaBO
Bosnia and HerzegovinaBA
BotswanaBW
Bouvet IslandBV
BrazilBR
British Virgin IslandsVG
BurundiBI
Brunei DarussalamBN
BulgariaBG
Burkina FasoBF
BurmaBU
CameroonCM
CanadaCA
Cape VerdeCV
Cayman IslandsKY
Central African RepublicCF
ChadTD
ChileCL
ChinaCN
ColombiaCO
ComorosKM
CongoCG
Cook IslandsCK
Costa RicaCR
Cote d’IvoireCI
CroatiaHR
CubaCU
CyprusCY
Czech RepublicCZ
CzechoslovakiaCS
DenmarkDK
DjiboutiDJ
DominicaDM
Dominican RepublicDO
EAPOEA
East GermanyDD
East TimorTP
EcuadorEC
EgyptEG
El SalvadorSV
EPOEP
Equatorial GuineaGQ
EstoniaEE
EthiopiaET
Falkland IslandFK
Faroe IslandsFO
FijiFJ
FinlandFI
FranceFR
GabonGA
GambiaGM
GreenlandGL
GeorgiaGE
GermanyDE
GhanaGH
GibraltarGI
GreeceGR
GrenadaGD
GuatemalaGT
GuineaGN
Guinea-BissauGW
GuyanaGY
HaitiHT
HondurasHN
Hong KongHK
HungaryHU
IcelandIS
IIBIB
IndiaIN
IndonesiaID
IranIR
IraqIQ
IrelandIE
IsraelIL
ItalyIT
JamaicaJM
JapanJP
JordanJO
KampucheaKH
KazakhstanKZ
KenyaKE
KiribatiKI
KuwaitKW
KyrgyzstanKG
LaosLA
LebanonLB
LesothoLS
LiberiaLR
LibyaLY
LiechtensteinLI
LithuaniaLT
LuxembourgLU
MacaoMO
MacedoniaMK
MadagascarMG
MalawiMW
MalaysiaMY
MaldivesMV
MaliML
MaltaMT
Marshall IslandsMH
MauritaniaMR
MauritiusMU
MexicoMX
MicronesiaFM
MoldovaMD
MonacoMC
MongoliaMN
MontserratMS
MoroccoMA
MozambiqueMZ
MyanmarMM
NamibiaNA
NauruNR
NepalNP
Netherlands(Holland)NL
Netherlands AntillesAN
New ZealandNZ
NicaraguaNI
NigerNE
NigeriaNG
North KoreaKP
NorwayNO
Northern Mariana IslandsMP
OAPIOA
OHIMEM
OmanOM
Other CountryXX
Other Country in AfricaX6
Other Country in AsiaX1
Other Country in EuropeX4
Other Country in North AmericaX2
Other Country In OceaniaX5
Other Country in South AmericaX3
PakistanPK
PanamaPA
Papua New GuineaPG
ParaguayPY
PeruPE
PhilippinesPH
PolandPL
PortugalPT
QatarQA
Republic of YemenYD
RhodesiaRH
RomaniaRO
Russian FederationRU
RwandaRW
Saint HelenaSH
Saint Kitts and NevisKN
Saint LuciaLC
Saint Vincent and the GrenadinesVC
SamoaWS
San MarinoSM
Sao Tome and PrincipeST
Saudi ArabiaSA
SenegalSN
SeychellesSC
Sierra LeoneSL
SingaporeSG
SlovakiaSK
SloveniaSI
Solomon IslandsSB
SomaliaSO
South AfricaZA
South Georgia and The South Sandwich IslandsGS
South KoreaKR
SpainES
Sri LankaLK
SudanSD
SurinameSR
SwazilandSZ
SwedenSE
SwitzerlandCH
SyriaSY
TaiwanTW
TajikistanTJ
TanzaniaTZ
ThailandTH
TogoTG
TongaTO
Trinidad and TobagoTT
TunisiaTN
TurkeyTR
TurkmenistanTM
Turks and Caicos IslandsTC
TuvaluTV
UgandaUG
UkraineUA
United Arab EmiratesAE
United KingdomGB
United States of AmericaUS
UruguayUY
Soviet UnionSU
UzbekistanUZ
VanuatuVU
Vatican CityVA
VenezuelaVE
VietnamVN
VoltaHV
Western SaharaEH
WIPOWO
YemenYE
YugoslaviaYU
ZaireZR
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 *

Back To Top