title: Powershell HTML output not what is expected
body: <p>Basically I'm just trying to output all of the BIOS information to a HTML table and email it to myself.</p>
  
  <p>Specifically I'm just trying to return the output of:</p>
  
  <pre><code>get-wmiobject -class "Win32_BIOS" -namespace "root\CIMV2"
  </code></pre>
  
  <p>Into a table.  I've tried <strong>convertto-html</strong> but the output is all over the place, way to many columns (hard to describe and it wont translate very well on here).</p>
  
  <p>what i have so far:</p>
  
  <pre><code> function sendMail{
       $smtpServer = "server.com.au"
       $msg = new-object Net.Mail.MailMessage
       $smtp = new-object Net.Mail.SmtpClient($smtpServer)
       $msg.IsBodyHTML = $true
       $msg.From = "sender@server.com.au"
       $msg.To.Add("email@server.com.au")
       $msg.subject = "Subject"
       $msg.body = "$body"
       $smtp.Send($msg)  
  }
  
  
  $bios = get-wmiobject -class "Win32_BIOS" -namespace "root\CIMV2"
  $body = $bios | ConvertTo-Html
  sendmail
  </code></pre>
  
  <p>Though I have also tried <strong>format-table</strong> and a few other things.</p>