默认情况下,Format-Wide cmdlet 只显示对象的默认属性。 与每个对象关联的信息将显示在单个列中:

Get-Command -Verb Format | Format-Wide

上面代码得到以下结果:

PS C:\Users\maxsu> Get-Command -Verb Format | Format-Wide


Format-Hex                                                  Format-Volume
Format-Custom                                               Format-List
Format-SecureBootUEFI                                       Format-Table
Format-Wide

还可以指定非默认属性:

Get-Command -Verb Format | Format-Wide -Property Noun

上面代码得到以下结果:

PS C:\Users\maxsu> Get-Command -Verb Format | Format-Wide -Property Noun


Hex                                                        Volume
Custom                                                     List
SecureBootUEFI                                             Table
Wide

使用列控制 Format-Wide 显示
使用 Format-Wide cmdlet 时,每次只能显示一个属性。 这可用于在多个列中显示大型列表。

PS C:\Users\maxsu> Get-Command -Verb Format | Format-Wide -Property Noun -Column 3


Hex                                     Volume                                 Custom
List                                    SecureBootUEFI                         Table
Wide