VMware Cloud Community
peterdcross
Contributor
Contributor

Script output truncated

Hi

I am running a script run to check the host profile compliance

$cluster = Get-Cluster xxxxxx
Get-VMHost -Location $cluster | Test-VMHostProfileCompliance > path\output.txt

This produces an output with trucated VMHostIds.

Is the any verbose command to expand this output thus making it useful?

VMHostId VMHostProf IncomplianceElementList
ileId
-------- ---------- -----------------------
HostSys... HostPro... {network.vswitch["key-vim-profile-host-VirtualSwitchProfi...
HostSys... HostPro... {network.vswitch["key-vim-profile-host-VirtualSwitchProfi...
HostSys... HostPro... {network.vswitch["key-vim-profile-host-VirtualSwitchProfi...
HostSys... HostPro... {network.vswitch["key-vim-profile-host-VirtualSwitchProfi...
HostSys... HostPro... {network.vmPortGroup["key-vim-profile-host-VmPortgroupPro...

0 Kudos
1 Reply
LucD
Leadership
Leadership

I moved your question to the PowerCLI Community.

You can get all properties of the returned objects by adding a Select-Object.

Like this

cluster = Get-Cluster xxxxxx
Get-VMHost -Location $cluster | Test-VMHostProfileCompliance | Select *


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference