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

Format-Table
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.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s