title: Create table using HTML in Powershell
body: <p>i want to know services stopped and which are set to automatic and output file goes to HTML page. In that HTML output i want to create table for stopped services on top of that table server name. Can someone tell me.. </p>
  
  <pre><code>$ServerListFile = "C:\Dv\Server_List.txt" 
  $ServerList = Get-Content $ServerListFile -ErrorAction SilentlyContinue
  foreach ($Computername in $ServerList) {
  Write-Host "Automatic Services Stopped :" $Computername 
  Get-wmiobject win32_service -computername $Computername  -Filter  "startmode  
  = 'auto'  AND state != 'running'" | Select DisplayName,Name,State,startmode  
  |  Format-Table  -auto | Out-File C:\Dv\Report.html
  }
  </code></pre>