PowerShell Logo Small

Format-Wide



This is the built-in help made by Microsoft for the command 'Format-Wide', in PowerShell version 2 - as retrieved from Windows version 'Microsoft® Windows Vista™ Ultimate ' 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 <int>] [-DisplayError] [-Expand <string>] [-Force] [-GroupBy <Object>] [-InputObject <pso
bject>] [-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 dete
rmine which property is displayed.



<

RELATED LINKS


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

REMARKS

<

Examples


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

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



Description
-----------
This command displays the names of files in the current directory in three columns across the screen. The Get-ChildItem cmdlet gets objects repre
senting 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 --------------------------

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



Description
-----------
This command displays the names of registry keys in the HKEY_CURRENT_USER\Software\Microsoft key. The Get-ChildItem cmdlet gets objects represent
ing 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 parame
ter specifies the name of the property, and the AutoSize parameter adjusts the columns for readability.