Solved

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

Posted on 2014-11-08
5
99 Views
Last Modified: 2015-05-04
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.
0
Comment
Question by:gateguard
  • 3
  • 2
5 Comments
 
LVL 38

Accepted Solution

by:
Philip Elder earned 500 total points
ID: 40431551
What does "not clustered" mean? Are they connected to the physical nodes?

Off the top the following should work on each node in PowerShell: Get-VHD *
0
 

Author Comment

by:gateguard
ID: 40449606
Yes, they are on the physical nodes and they don't show up in cluster manager.
0
 

Author Closing Comment

by:gateguard
ID: 40758531
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)
0
 
LVL 38

Expert Comment

by:Philip Elder
ID: 40758549
Thanks for the points. :)
0
 

Author Comment

by:gateguard
ID: 40758551
no problem.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Make exe run on Startup - Server 2012 R2 13 42
Server 2012 management. 5 25
MS Endpoint Protection 2 27
Windows Services - Run a Program Grey Out 3 26
In my previous 24 VMware Articles (http://www.experts-exchange.com/ARTH_1864316.html?arthOrderBy=3&arthSort=1#arth), most featured Intermediate VMware Topics. My next series of articles concentrated on topics for the VMware Novice;   If you would…
Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
In this Micro Tutorial viewers will learn how to use Boot Corrector from Paragon Rescue Kit Free to identify and fix the boot problems of Windows 7/8/2012R2 etc. As an example is used Windows 2012R2 which lost its active partition flag (often happen…
This tutorial will walk an individual through the process of configuring basic necessities in order to use the 2010 version of Data Protection Manager. These include storage, agents, and protection jobs. Launch Data Protection Manager from the deskt…

825 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question