Reply to Message

View discussion in a popup

Replying to:
LucD
Leadership
Leadership

And if you want his for all duplicate VMS, you could do

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


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

View solution in original post

Reply
0 Kudos