Tag Archives: powercli

Full column width in PowerCLI

In order to view the full column output in PowerCLI we need to format table appropriately e.x.

PS C:\> Get-VM  | Format-Table -AutoSize -Wrap

Formats the output as a table.

-AutoSize [<SwitchParameter>]
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.

-Wrap [<SwitchParameter>]
Displays text that exceeds the column width on the next line. By default, text that exceeds the column width is truncated.