title: PowerShell to add dash symbols at beginning of line output from Get-ComputerInfo
body: <p>I would like to add an asterisk to the beginning of liner in output:</p>
  <pre><code>$SYSLST1 = &quot;OsName&quot;,&quot;OsVersion&quot;,&quot;TimeZone&quot;,&quot;CsName&quot;
  $X = (Get-ComputerInfo -Property $SYSLST1 | Format-List | Out-String).Trim()
  $Y = ForEach ($Z in $X){
  $Z.insert(0,&quot;  * &quot;)
  }
  Write-Host $Y
  </code></pre>
  <p>But it's only doing the first line:</p>
  <pre class="lang-none prettyprint-override"><code>  * OsName    : Microsoft Windows Server 2016 Standard
  OsVersion : 10.0.14393
  TimeZone  : (UTC-05:00) Eastern Time (US &amp; Canada)
  CsName    : SIS-2016-INT-ST
  </code></pre>