PowerShell for IT Professionals [#7] – Formatting output

Exercises Send output of any commandlet, e.g. get service to Printer Lesson notes # So far, we've been using default PowerShell behaviour for formatting output # Although in the last lesson we did filtering data with Where-Object and Select-Object # We didn't really focus on how data is presented on the screen. Let's see what can be done here. # Let's have a look at local Get-LocalGroup Get-LocalGroup | Format-List #Alias is FL #Like with Select-Object, we can specify properties we're after Get-LocalGroup | fl -Property name,sid #Another example when List might be easier to read then table Get-CimInstance win32_ComputerSystem ## Format Table #ipconfig....

11 August 2020 · 2 min · 224 words · Kamil