title: Export AD structure from specific OU, then re-create structure in new domain
body: <p>I've researched and found the way to export our active directory information for our application is like this:</p>
  <pre><code>csvde -d OU=MyAppsOU,DC=dot,DC=testdmz,DC=lan
        -f C:\temp\addump_ou.csv -r (objectClass=organizationalUnit)
  </code></pre>
  <p>Now, I've read that to do an import from that file, you just have to add the -i option to the line like this:</p>
  <pre><code>csvde -i -d OU=MyAppsOU-New,DC=dot,DC=newdmz,DC=lan 
        -f C:\temp\addump_ou.csv -r (objectClass=organizationalUnit)
  </code></pre>
  <p>Obviously, I'm very scared to try this as I don't want to blow away anything. My questions are:</p>
  <ol>
  <li><p>Does specifying the <code>OU=MyAppsOU-New</code> create the new OU structure with that specific name? (I'm just trying to be 100% positive)</p>
  </li>
  <li><p>Does specifying the different domain name (newdmz) just update all of the data in the file to contain the new domains name?</p>
  <p>or</p>
  </li>
  <li><p>Do I need to modify the exported csv file to change the domain name (testdmz) to what the new domain name will be (newdmz)?</p>
  </li>
  <li><p>Is there a different way I should be doing this?</p>
  </li>
  </ol>
  <p>I just want to re-create the OU structure without groups, roles (which are groups) and users. I will probably do those in a different process because we have different usernames for test and production.</p>