名前 Format-List 概要 Formats the output as a list of properties in which each property appears on a new line. 構文 Format-List [[-Property] []] [-DisplayError] [-Expand {CoreOnly | EnumOnly | Both}] [-Force] [-GroupBy [ ]] [-InformationAction {SilentlyContinue | Stop | Continue | Inquire | Ignore | Suspend}] [-InformationVar iable []] [-InputObject []] [-ShowError] [-View []] [] 説明 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. You can use Format-List to format and display all or selected properties of an object as a li st (format-list *). Because more space is available for each item in a list than in a table, Windows PowerShell displays more properti es of the object in the list, and the property values are less likely to be truncated. パラメーター -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-List command, and the expressions do not appear to be working. The fo llowing shows an example of the results of adding the DisplayError parameter with an expression. PS > Get-Date | Format-List 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 [] Formats the output in groups based on a shared property or value. Enter an expression or a property of the out put. The value of the GroupBy parameter can be a new calculated property. To create a calculated property, use a ha sh table. Valid keys are: -- Name (or Label) -- Expression or