Solved

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

Posted on 2014-11-08
5
94 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
Comment Utility
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
Comment Utility
Yes, they are on the physical nodes and they don't show up in cluster manager.
0
 

Author Closing Comment

by:gateguard
Comment Utility
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
Comment Utility
Thanks for the points. :)
0
 

Author Comment

by:gateguard
Comment Utility
no problem.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

This article will review the basic installation and configuration for Windows Software Update Services (WSUS) in a Windows 2012 R2 environment.  WSUS is a Microsoft tool that allows administrators to manage and control updates to be approved and ins…
The article will show you how you can maintain a simple logfile of all Startup and Shutdown events on Windows servers and desktops with PowerShell. The script can be easily adapted into doing more like gracefully silencing/updating your monitoring s…
In this Micro Tutorial viewers will learn how to restore their server from Bare Metal Backup image created with Windows Server Backup feature. As an example Windows 2012R2 is used.
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…

763 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now