PowerShell Logo Small

Format-Wide



This is the built-in help made by Microsoft for the command 'Format-Wide', in PowerShell version 3 - as retrieved from Windows version 'Microsoft Windows Server 2012 Standard' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

Formats objects as a wide table that displays only one property of each object.

SYNTAX


Format-Wide [[-Property] <Object>] [-AutoSize] [-Column <Int32>] [-DisplayError] [-Expand <String>] [-Force] [-GroupBy <Object>] [-InputObject
<PSObject>] [-ShowError] [-View <String>] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Format-Wide cmdlet formats objects as a wide table that displays only one property of each object. You can use the Property parameter to
determine which property is displayed.



<

RELATED LINKS


Online Version: http://go.microsoft.com/fwlink/?LinkID=113304

REMARKS

<

Examples


-------------------------- EXAMPLE 1 --------------------------

PS C:\>get-childitem | format-wide -column 3



This command displays the names of files in the current directory in three columns across the screen. The Get-ChildItem cmdlet gets objects
representing each file in the directory. The pipeline operator (|) passes the file objects through the pipeline to Format-Wide, which formats
them for output. The Column parameter specifies the number of columns.








-------------------------- EXAMPLE 2 --------------------------

PS C:\>get-childitem HKCU:\software\microsoft | format-wide -property pschildname -autosize



This command displays the names of registry keys in the HKEY_CURRENT_USER\Software\Microsoft key. The Get-ChildItem cmdlet gets objects
representing the keys. The path is specified as "HKCU:", one of the drives exposed by the Windows PowerShell Registry provider, followed by
the key path. The pipeline operator (|) passes the registry key objects through the pipeline to Format-Wide, which formats them for output.
The Property parameter specifies the name of the property, and the AutoSize parameter adjusts the columns for readability.