title: How to list all computers in the ActiveDirectory with their OU in a tables?
body: <p>I was wondering if it is possible to list all computers in the Active Directory with their OU name?  Something like this:</p>
  
  <pre>Name  |        OU         |
  ---------------------------  
  WS1   |  Administratrion  |
  WS2   |  Finances         |
  WS3   |  IT               |</pre>
  
  <p>The best I could come up with is this:</p>
  
  <pre><code>Import-Module ActiveDirectory  
  Get-ADComputer -Filter * -Properties * | FT Name,DistinguishedName -a
  </code></pre>
  
  <p>which produces the following output:</p>
  
  <pre>Name  |                     OU                      |
  -----------------------------------------------------
  WS1   |  CN=WS1,OU=Administratrion, DC=test, DC=nl  |
  WS2   |  CN=WS1,OU=Finances, DC=test, DC=nl         |
  WS3   |  CN=WS1,OU=IT, DC=test, DC=nl               |</pre>
  
  <p>But that's not exactly what I want.</p>