名前 Format-Table 概要 Formats the output as a table. 構文 Format-Table [[-Property] []] [-AutoSize] [-DisplayError] [-Expand {CoreOnly | EnumOnly | Both}] [-Force ] [-GroupBy []] [-HideTableHeaders] [-InformationAction {SilentlyContinue | Stop | Continue | Inquire | Ig nore | Suspend}] [-InformationVariable []] [-InputObject []] [-ShowError] [-View [< String>]] [-Wrap] [] 説明 The Format-Table cmdlet formats the output of a command as a table with the selected properties of the object in e ach column. The object type determines the default layout and properties that are displayed in each column, but yo u can use the Property parameter to select the properties that you want to see. You can also use a hash table to add calculated properties to an object before displaying it and to specify the co lumn headings in the table. To add a calculated property, use the Property or GroupBy parameters. パラメーター -AutoSize [] Adjusts the column size and number of columns based on the width of the data. By default, the column size and number are determined by the view. 必須 false 位置 named 既定値 none パイプライン入力を許可する false ワイルドカード文字を許可する false -DisplayError [] Displays errors at the command line. This parameter is rarely used, but can be used as a debugging aid when yo u are formatting expressions in a Format-Table command, and the expressions do not appear to be working. The f ollowing shows an example of the results of adding the DisplayError parameter with an expression. PS > Get-Date | Format-Table DayOfWeek,{ $_ / $null } -ShowError DayOfWeek $_ / $null --------- ------------ Wednesday #ERR 必須 false 位置 named 既定値 none パイプライン入力を許可する false ワイルドカード文字を許可する false -Expand [] Formats the collection object, as well as the objects in the collection. This parameter is designed to format objects that support the ICollection (System.Collections) interface. The default value is EnumOnly. Valid values are: -- EnumOnly: Displays the properties of the objects in the collection. -- CoreOnly: Displays the properties of the collection object. -- Both: Displays the properties of the collection object and the properties of objects in the collection. 必須 false 位置 named 既定値 none パイプライン入力を許可する false ワイルドカード文字を許可する false -Force [] Directs the cmdlet to display all of the error information. Use with the DisplayError or ShowError parameters. By default, when an error object is written to the error or display streams, only some of the error informati on is displayed. 必須 false 位置 named 既定値 none パイプライン入力を許可する false ワイルドカード文字を許可する false -GroupBy [] Arranges sorted output in separate tables based on a property value. For example, you can use GroupBy to list services in separate tables based on their status. Enter an expression or a property of the output. The output must be sorted before you send it to Format-Table. The value of the GroupBy parameter can be a new calculated property. To create a calculated, property, use a h ash table. Valid keys are: -- Name (or Label) -- Expression or