- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Try like this
Get-VM |
Group-Object -Property Name |
Where {$_.Count -gt 1} |
Select @{N='VM';E={$_.Name}},
@{N='Cluster';E={(Get-Cluster -VM $_.Group[0]).Name}},
@{N='Folder';E={$_.Group[0].Folder.Name}}
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference