您可以添加-Wrap以完整显示它们,并根据需要将它们分散到多行中。 另一种方法是通过管道连接到Out-String,并使用其-Width参数,使用一个足够大的terminal-column计数来容纳所有表列,这在屏幕上不会很好地呈现: ... | Out-String -Width 300 注意:对于输出对象,Format-Table格式是隐含的(它们有4个或更少的属性)...
Get-Command-VerbFormat |Format-Wide-PropertyNoun Output Custom Hex List Table Wide 使用列來控制 Format-Wide 顯示 使用Format-WideCmdlet,您一次只能顯示一個屬性。 這可讓您在多個資料行中顯示大型清單。 PowerShell Get-Command-VerbFormat |Format-Wide-PropertyNoun-Column3 ...
最常見的格式命令是 Format-Table 與Format-List。 也可以使用 Format-Wide 和Format-Custom,但較不常見。 如第3 章所述,命令如果返回超過四個屬性,預設將是清單格式,除非使用自定義格式。 PowerShell 複製 Get-Service -Name w32time | Select-Object -Property Status, DisplayName, Can* Output 複製 ...
如果 Format-Table 命令无法显示所有属性,它将从显示中删除某些列,并发出警告。如果你使名称变成列表中的最后一个属性,便可以看到这一行为: PS> Get-Process -Name powershell | Format-Table -Property Company,Path,Id,Name -AutoSize WARNING: column "Name" does not fit into the display and was removed....
Format-Table [-AutoSize] [-RepeatHeader] [-HideTableHeaders] [-Wrap] [[-Property] <Object[]>] [-GroupBy <Object>] [-View <String>] [-ShowError] [-DisplayError] [-Force] [-Expand <String>] [-InputObject <PSObject>] [<CommonParameters>]Description...
Format-Table [[-Property] <Object[]>] [-AutoSize] [-RepeatHeader] [-HideTableHeaders] [-Wrap] [-GroupBy <Object>] [-View <string>] [-ShowError] [-DisplayError] [-Force] [-Expand <string>] [-InputObject <psobject>] [<CommonParameters>]Description...
Format-Table[[-Property] <Object[]>] [-AutoSize] [-RepeatHeader] [-HideTableHeaders] [-Wrap] [-GroupBy <Object>] [-View <string>] [-ShowError] [-DisplayError] [-Force] [-Expand <string>] [-InputObject <psobject>] [<CommonParameters>] ...
无法使用 Out-GridView cmdlet(如 Format 或Format-Table cmdlet)设置发送到 Format-Wide 的命令输出的格式。 若要选择属性,请使用 Select-Object cmdlet。在网格视图窗口中,可能无法对来自远程命令的反序列化输出正确进行格式设置。的键盘快捷方式 Out-GridView...
details> <command:name> Format-Table </command:name> <maml:description> <maml:para>Formats the output as a table.</maml:para> </maml:description> <command:verb>format</command:verb> <command:noun>table</command:noun> <dev:version></dev:version> </command:details> ... </command:...
I'm hoping someone can provide me a PowerShell script that will calculate the current size of a SharePoint site and set the Maximum storage quota...