We help IT Professionals succeed at work.
Get Started

Country/Region is not visible in Global Address List but does appear in ADUC

Last Modified: 2013-12-14
Hi all.  I use the following code successfully to create users in the Users container along with a mailbox.  The country is populated by querying sql, then doing an IF statement, then setting the attribute.

My problem is that when I use this vbscript code to create a contact, the Country/Region field is blank.  I can go back into the GUI of ADUC and change to a different country and then apply....then change back to the original country and it then shows up in the GAL.

This issue also happens when creating users.  This happens in the Users container as well as the Contacts OU.

Any ideas?  I am running Exchange 2003.
strCountry is the value pulled from my SQL query.

                      vCountry = "USA"
      vCountryCa = "Canada"
      if  strCountry = vCountry then sCountry = "US"
      if  strCountry = vCountryCa then sCountry = "CA"
if sCountry <> "" then
      oContact.put"c", sCountry
      end if

The country/region shows up in ADUC.

Watch Question
This problem has been solved!
Unlock 1 Answer and 3 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE