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.


VMware PowerShell unable to start

Even when launching VMware PowerShell CLI with administrator privileges you are still unable to start it.

Moreover, you are unable to change execution policy for the machine.

Try the following it only changes policy for current user.

Set-ExecutionPolicy Unrestricted -Scope CurrentUser