title: Get only computer names from AD
body: <p>I'm new to Power Shell and I'm testing some commands and ideas. I'm stuck on what I feel should be pretty simple. I want to pull the names of computer objects in AD in to a file. The method I'm trying so far is this </p>
  
  <pre><code>$computers = Get-ADComputer -Filter * | Format-List name
  write($computers) | Out-File -FilePath .\computers.txt
  </code></pre>
  
  <p>the issue I have with this though is that the file that is output looks like this</p>
  
  <pre><code>name : SERVER1
  
  name : SERVER2
  
  name : WORKSTATION1
  
  name : WORKSTATION2
  </code></pre>
  
  <p>And I'm looking for just a straight list of names with out the "name  :  " part that comes in front. I'm not sure if there is a better way to accomplish this. </p>