Hi
The following script works good except it doesn't show VM with more than one datastore:
Get-VM | Select Name,PowerState, @{N="SnapName";E={
($_ | Get-Snapshot).Name}},@{N="Datastore";E={
($_ | Get-Datastore).Name}},@{ N="TotalDisk"; E={
($_ | Get-harddisk | measure-object -property CapacityGB
-sum).Sum}},@{N="GuestOS";E={
($_ | Get-VMGuest).OSFullName}},@{N="Cluster";E={
($_ | Get-Cluster).Name}}
How can it be modified to list VM with more than one DS?
Thanks