Solved

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

Posted on 2014-11-08
5
102 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

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

Suggested Solutions

Every now and then, Microsoft does something that totally impresses me. It doesn't happen often, but in this case I must say I am thoroughly impressed with Windows Server Backup. One of the long time issues with Windows Backup has been the ability t…
I don't know if many of you have made the great mistake of using the Cisco Thin Client model with the management software VXC. If you have then you are probably more then familiar with the incredibly clunky interface, the numerous work arounds, and …
In this Micro Tutorial viewers will learn how to restore single file or folder from Bare Metal backup image of their system. Tutorial shows how to restore files and folders from system backup. Often it is not needed to restore entire system when onl…
This tutorial will walk an individual through the process of installing of Data Protection Manager on a server running Windows Server 2012 R2, including the prerequisites. Microsoft .Net 3.5 is required. To install this feature, go to Server Manager…

749 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