Hi Luc
looking for IP address also..Can you correct the below code.its not writing IP
Get-VM | Get-HardDisk -DiskType "RawPhysical","RawVirtual" |Select @{N="VMName";E={$_.Parent}},
#@{N='IP';E={[string]::Join(',',($_.Guest.IPAddress | Where {($_.Split(".")).length -eq 4}))}},
@{N="IP";E={[string]::Join(',',$_.Guest.IpAddress)|Where {($_.Split(".")).length -eq 4}}},
@{N="HardDisk";E={$_.Name}},
DiskType,
ScsiCanonicalName,
DeviceName,
@{N="Datastore";E={$_.Filename.Split(']')[0].TrimStart('[')}},
@{N="VMHost";E={$_.Parent.Host.Name}},
@{N="Cluster";E={Get-Cluster -VM $_.Parent | Select -ExpandProperty Name}}