title: Get "DC" value from result of Get-ADDomain?
body: <p>Now I just want to get two value <code>DC</code> from the result of <code>Get-ADDomain</code> command and I assign it to two different variables in Powershell.</p>
  
  <p>Example </p>
  
  <pre><code>$dc1=mydomain
  $dc2=com
  </code></pre>
  
  <p>How can I do it with Powershell?</p>