Link to home
Start Free TrialLog in
Avatar of gateguard
gateguard

asked on

How to list all VHD drives on a Hyper-V node and on a Hyper-V cluster

Server2012r2 cluster with 2 nodes and multiple VMs

Some of the VMs are not clustered.

I would like to use powershell to list the VHD locations of all the VMs, by node and by cluster.

Thanks.
ASKER CERTIFIED SOLUTION
Avatar of Philip Elder
Philip Elder
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of gateguard
gateguard

ASKER

Yes, they are on the physical nodes and they don't show up in cluster manager.
The actual command turns out to be: get-vmharddisdrive * | format-list  > hardrivelist.txt

But who's counting?  :)

(the format-list is needed if you actually want to be able to see the results and sending it to a file so they don't all just scroll right past)
Thanks for the points. :)
no problem.