在PowerShell中有四种格式化的 Cmdlets。
Format-Table(格式化表格)
The Format-Table cmdlet formats the output of a command as a table with the selected properties of the object in each column.
Format-List(格式化列表)
The Format-List cmdlet formats the output of a command as a list of properties in which each property is displayed on a separate line.
把数据水平的展现到一个表中。
Format-List(格式化列表)
The Format-Wide cmdlet formats objects as a wide table that displays only one property of each object.
用于展示一个宽列表,它仅展示要给单独属性的值,所以它的-property参数仅接受一个属性名,而不是列表,并且不接受通配符。
Get-Process | Fo