select -ExpandProperty CapacityGB <strong>| FT</strong> }} , @{N="IP Address";E={@($_.guest.IPAddress[0])}}
but instand of hdd size it shows type "{Microsoft.PowerShell.Commands.Internal.Format.FormatEntryData.."
I also checked FT in last section
get-vm | ft Name, numcpu, memorygb, @{N="Hard Disk"; E={get-harddisk -VM $_ |
select -ExpandProperty CapacityGB }} , @{N=“IP Address”;E={@($_.guest.IPAddress[0])}} | FT
I don’t understand your code. It’s is convoluted. Please format it with the pre tags and include the output. I don’t have the get-vm command, so I’m also at a disadvantage. Maybe you can turn the array into a string like this.