title: List all Server Features/Roles in Powershell
body: <p>So I have the following code to output all features and roles installed:</p>
  
  <pre><code>Import-Module ServerManager
  $Arr = Get-WindowsFeature | Where-Object {$_.Installed -match “True”} | Select-Object -Property Name
  $loopCount = $Arr.Count
  For($i=0; $i -le $loopCount; $i++) {
      Write-Host $Arr[$i]
  }
  </code></pre>
  
  <p>However, the output is:</p>
  
  <pre><code>@{Name=Backup-Features}
  @{Name=Backup}
  @{Name=Backup-Tools}
  </code></pre>
  
  <p>How can I get rid of the <code>@</code> and <code>{}</code>'s ?</p>