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.
Windows Server 2012

Avatar of undefined
Last Comment
gateguard

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Philip Elder

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
gateguard

ASKER
Yes, they are on the physical nodes and they don't show up in cluster manager.
gateguard

ASKER
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)
Philip Elder

Thanks for the points. :)
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
gateguard

ASKER
no problem.