title: What is the correct way to set an AD user country?
body: <p>I have to maintain a PowerShell script which transfer the employees informations from our database into our Active Directory.<br>
  This script runs every night automatically with elevated rights that I do not posess. In other words, I cannot &quot;test&quot; the script. To run the script, I have to commit my changes and create a PR that will trigger a deployment when accepted and wait until the next morning to see if it worked.<br>
  The informations are usually updated without any problems, except for the country. I tried updating the fields <strong>countryCode</strong>, <strong>c</strong> and <strong>co</strong> and it didn't work because we received an error like &quot;value was not in the acceptable range...&quot;. Apparently this error happens when you try to update one of these 3 fields separately.<br>
  I found <a href="https://www.adamfowlerit.com/2017/05/updating-country-field-active-directory/" rel="nofollow noreferrer">how to update them all at once</a> and I was going to make the changes but I was surprised to discover that there is another field called <strong>Country</strong>.<br>
  I have a few questions :</p>
  <ol>
  <li>Why does that Country field even exist ? Aren't <strong>countryCode</strong>, <strong>c</strong> and <strong>co</strong> enough ?</li>
  <li>Should I update <strong>Country</strong> or should I update the <strong>countryCode</strong>, <strong>c</strong> and <strong>co</strong> ?</li>
  <li>Why are there <strong>4</strong> different fields in the AD just to hold the country ?</li>
  </ol>
  <p>I'd like to know more about this because I really want to get this right on the second try (the first one failed, hence why I'm here) Thanks in advance for your help !</p>