You are here:

WindowsManagement.com > PowerShell > PowerShell 1.0 > Format-Wide
ActiveXperts Network Monitor 2019 proactively manages network servers, devices, databases and more.

Format-Wide - PowerShell 1.0

Microsoft Windows PowerShell is a command-line shell and scripting tool based on the Microsoft .NET Framework. It is designed for system administrators, engineers and developers to control and automate the administration of Windows and applications.

More than hundred command-line tools (so called "cmdlets") can be used to perform system administration tasks and Windows Management Instrumentation (WMI). These cmdlets are easy to use, with standard naming conventions and common parameters, and standard tools for piping, sorting, filtering, and formatting data and objects.

Format-Wide


Description
Back up your Hyper-V VMs Easy & Fast. 100% built for Hyper-V. Free for 2 VMs, forever.

Usage


Options
-property Object[]
       The object properties to display (in order)
       Wildcards are permitted.
       You cannot use -Property and -View in the same command.

   -autosize
       Adjust the column sizes based on the width of the data.
       Ignore any column details in the view.

    -column int
       The number of columns in the display.
       Cannot be combined with the -Autosize parameter

   -hideTableHeaders
       Omit column headings from the table.

   -view string
       The name of an alternate format or "view." 
        
   -groupBy Object
       Format the output in groups based on a shared property or value.
 
   -force 
       Override restrictions that prevent the command from succeeding, 
       without compromising security. Force will override read-only
       attributes but will not change file permissions.

   -inputObject psobject
       The objects to format. (a variable, command or expression that gets the objects)
    
   -expand string
       Where string is either EnumOnly (the default), CoreOnly or Both
       'CoreOnly' will format and display properties of the collection object itself, 
       while 'emumOnly' will enumerate and display the object properties. 
       (designed around the ICollection (System.Collections) interface.)

   -displayError 
       Display errors at the command line.
        
   -showError 
       Send errors through the pipeline.

   CommonParameters
       The common parameters: -Verbose, -Debug,-ErrorAction, -ErrorVariable, -OutVariable.

Example(s)
Display filenames in the current directory in 3 columns:

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

Display registry key names, the default property "Name" is the full registry pathname:

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

Display registry key names:

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