VMware Cloud Community
fborges555
Enthusiast
Enthusiast
Jump to solution

Number of disk

Hi gurus

 

I am looking to get the number of disk that a VM have

vm1  2

vm2  1

vm3  4

thanks

0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

Try something like this

Get-VM |
Select Name,@{N='Harddisk';E={(Get-HardDisk -VM $_).Count}}


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

View solution in original post

0 Kudos
1 Reply
LucD
Leadership
Leadership
Jump to solution

Try something like this

Get-VM |
Select Name,@{N='Harddisk';E={(Get-HardDisk -VM $_).Count}}


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

0 Kudos