title: Getting Serial Number of each computer in a list (Powershell)
body: <p>I would like to get the serial numbers of a list of computers.
  I have created a powershell script as follows:</p>
  
  <hr>
  
  <pre><code>$computers = Get-Content c:\pstest\computerlist.txt
  
  Get-wmiobject win32_bios | ForEach-Object {$_.serialnumber}
  </code></pre>
  
  <hr>
  
  <p>All I get is as follows:</p>
  
  <pre><code>PS C:\pstest&gt; .\pstest01.ps1
  R6Z00180
  </code></pre>
  
  <p>How do I do this ? </p>