Quantcast
Channel: Hyper-V forum
Viewing all articles
Browse latest Browse all 8743

Get Storage Drives Info for ALL VM's in a Given Cluster

$
0
0
Hello, I am trying to create a script that lists all the virtual machines in a given hyper-v cluster, and it also needs to list the maximum and the current size of the virtual disks that are attached to each virtual machine.

I started by getting this line that lists all the virtual machines in a given cluster –

Get-ClusterGroup -Cluster “myclustername” | Where GroupType –EQ ‘VirtualMachine’ | Get-VM

But unfortunately it does not give me any info about the maximum and the current size of the virtual disks that are attached to each virtual machine.

Can anyone help me here?


Viewing all articles
Browse latest Browse all 8743

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>