ganapa2000
Hot Shot
Hot Shot

LucD,

the below script shows just the VM Name, I would like to get the Cluster and Folder Names of all the duplicate VMs.

I tried as below but Cluster and Folder info shows blank

Get-VM |
Group-Object -Property Name |
Where {$_.Count -gt 1} |
Select @{N='VM';E={$_.Name}},
@{N='Cluster';E={Get-Cluster -VM $_}},
@{N='Folder';E={$_.Folder.Name}}

Reply
0 Kudos