Country Codes used in Active Directory


User account has c and co attributes to specify the country of the user. c attribute has the country code and co has actual country name. When we edit the user accounts to populate the country code,  we need to know the correct code. These country codes are defined in ISO 3166 (LINK).

If you use PowerShell, use this command to update the country.

Set-ADUser <SAMAccountName> -Country US

For you convenience, I have created an CSV file (LINK) and also the table below.

English short name

Alpha-2 code

Afghanistan

AF

South Africa

ZA

Åland Islands

AX

Albania

AL

Algeria

DZ

Germany

DE

Andorra

AD

Angola

AO

Anguilla

AI

Antarctica

AQ

Antigua and Barbuda

AG

Saudi Arabia

SA

Argentina

AR

Armenia

AM

Aruba

AW

Australia

AU

Austria

AT

Azerbaijan

AZ

Bahamas (the)

BS

Bahrain

BH

Bangladesh

BD

Barbados

BB

Belarus

BY

Belgium

BE

Belize

BZ

Benin

BJ

Bermuda

BM

Bhutan

BT

Bolivia (Plurinational State of)

BO

Bonaire, Sint Eustatius and Saba

BQ

Bosnia and Herzegovina

BA

Botswana

BW

Bouvet Island

BV

Brazil

BR

Brunei Darussalam

BN

Bulgaria

BG

Burkina Faso

BF

Burundi

BI

Cabo Verde

CV

Cayman Islands (the)

KY

Cambodia

KH

Cameroon

CM

Canada

CA

Chile

CL

China

CN

Christmas Island

CX

Cyprus

CY

Cocos (Keeling) Islands (the)

CC

Colombia

CO

Comoros (the)

KM

Congo (the Democratic Republic of the)

CD

Congo (the)

CG

Cook Islands (the)

CK

Korea (the Republic of)

KR

Korea (the Democratic People’s Republic of)

KP

Costa Rica

CR

Côte d’Ivoire

CI

Croatia

HR

Cuba

CU

Curaçao

CW

Denmark

DK

Djibouti

DJ

Dominican Republic (the)

DO

Dominica

DM

Egypt

EG

El Salvador

SV

United Arab Emirates (the)

AE

Ecuador

EC

Eritrea

ER

Spain

ES

Estonia

EE

United States of America (the)

US

Ethiopia

ET

Falkland Islands (the) [Malvinas]

FK

Faroe Islands (the)

FO

Fiji

FJ

Finland

FI

France

FR

Gabon

GA

Gambia (the)

GM

Georgia

GE

South Georgia and the South Sandwich Islands

GS

Ghana

GH

Gibraltar

GI

Greece

GR

Grenada

GD

Greenland

GL

Guadeloupe

GP

Guam

GU

Guatemala

GT

Guernsey

GG

Guinea

GN

Equatorial Guinea

GQ

Guinea-Bissau

GW

Guyana

GY

French Guiana

GF

Haiti

HT

Heard Island and McDonald Islands

HM

Honduras

HN

Hong Kong

HK

Hungary

HU

Isle of Man

IM

United States Minor Outlying Islands (the)

UM

India

IN

British Indian Ocean Territory (the)

IO

Indonesia

ID

Iran (Islamic Republic of)

IR

Iraq

IQ

Ireland

IE

Iceland

IS

Israel

IL

Italy

IT

Jamaica

JM

Japan

JP

Jersey

JE

Jordan

JO

Kazakhstan

KZ

Kenya

KE

Kyrgyzstan

KG

Kiribati

KI

Kuwait

KW

Lao People’s Democratic Republic (the)

LA

Lesotho

LS

Latvia

LV

Lebanon

LB

Liberia

LR

Libya

LY

Liechtenstein

LI

Lithuania

LT

Luxembourg

LU

Macao

MO

Macedonia (the former Yugoslav Republic of)

MK

Madagascar

MG

Malaysia

MY

Malawi

MW

Maldives

MV

Mali

ML

Malta

MT

Northern Mariana Islands (the)

MP

Morocco

MA

Marshall Islands (the)

MH

Martinique

MQ

Mauritius

MU

Mauritania

MR

Mayotte

YT

Mexico

MX

Micronesia (Federated States of)

FM

Moldova (the Republic of)

MD

Monaco

MC

Mongolia

MN

Montenegro

ME

Montserrat

MS

Mozambique

MZ

Myanmar

MM

Namibia

NA

Nauru

NR

Nepal

NP

Nicaragua

NI

Niger (the)

NE

Nigeria

NG

Niue

NU

Norfolk Island

NF

Norway

NO

New Caledonia

NC

New Zealand

NZ

Oman

OM

Uganda

UG

Uzbekistan

UZ

Pakistan

PK

Palau

PW

Palestine, State of

PS

Panama

PA

Papua New Guinea

PG

Paraguay

PY

Netherlands (the)

NL

Peru

PE

Philippines (the)

PH

Pitcairn

PN

Poland

PL

French Polynesia

PF

Puerto Rico

PR

Portugal

PT

Qatar

QA

Syrian Arab Republic

SY

Central African Republic (the)

CF

Réunion

RE

Romania

RO

United Kingdom of Great Britain and Northern Ireland (the)

GB

Russian Federation (the)

RU

Rwanda

RW

Western Sahara*

EH

Saint Barthélemy

BL

Saint Kitts and Nevis

KN

San Marino

SM

Saint Martin (French part)

MF

Sint Maarten (Dutch part)

SX

Saint Pierre and Miquelon

PM

Holy See (the)

VA

Saint Vincent and the Grenadines

VC

Saint Helena, Ascension and Tristan da Cunha

SH

Saint Lucia

LC

Solomon Islands

SB

Samoa

WS

American Samoa

AS

Sao Tome and Principe

ST

Senegal

SN

Serbia

RS

Seychelles

SC

Sierra Leone

SL

Singapore

SG

Slovakia

SK

Slovenia

SI

Somalia

SO

Sudan (the)

SD

South Sudan

SS

Sri Lanka

LK

Sweden

SE

Switzerland

CH

Suriname

SR

Svalbard and Jan Mayen

SJ

Swaziland

SZ

Tajikistan

TJ

Taiwan (Province of China)

TW

Tanzania, United Republic of

TZ

Chad

TD

Czech Republic (the)

CZ

French Southern Territories (the)

TF

Thailand

TH

Timor-Leste

TL

Togo

TG

Tokelau

TK

Tonga

TO

Trinidad and Tobago

TT

Tunisia

TN

Turkmenistan

TM

Turks and Caicos Islands (the)

TC

Turkey

TR

Tuvalu

TV

Ukraine

UA

Uruguay

UY

Vanuatu

VU

Venezuela (Bolivarian Republic of)

VE

Virgin Islands (British)

VG

Virgin Islands (U.S.)

VI

Viet Nam

VN

Wallis and Futuna

WF

Yemen

YE

Zambia

ZM

Zimbabwe

ZW

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s