Get-vdportgroup | Get-V< -pipelinevariable VM | Select .....
And then what? I need to list portgroup name, along with the count of related VMs.
Thank you,
Did you try like this?
Select Name,
@{N = 'VMCount'; E = {($_ | Get-VM).Count}}
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Did you try like this?
Select Name,
@{N = 'VMCount'; E = {($_ | Get-VM).Count}}
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Awesome!
I learn a lot from you.
Thanks,