Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there any way to find some informations relating to virtual disks in Hyper-V without calling PowerShell or WMI commands? Maybe something like xml files for virtual disks (like the snapshot xml files)?

In fact I was wondering to get information related to virtual disks without asking powershell or HyperV Manager like: storageName that hosts the VirtualDisk, its order in the VM attached with etc...

share|improve this question
What specific information are you looking for? Also, when you ask a question, please try to stick to the point a bit more. It might be worthwhile for you to read the faq and How to Ask. This isn't a discussion area like a typical forum :) I've edited your question to be less chatty and more to-the-point. This will make it easier for you to get an actual answer to what you're looking for. – MDMarra Jul 3 '12 at 15:48
if you don't see the xml files where the snapshot files are then you are using the default location which is c:\programdata\microsoft\windows\hyper-v – tony roth Jul 3 '12 at 15:59
Vote to close. What information you look for? – TomTom Jul 3 '12 at 16:07
Information needed: storageName that hosts the VirtualDisk, – Aimar Jul 3 '12 at 16:08
if powershell is so bad why is vmware touting powershell as the script language of choice for their own platform. – tony roth Jul 5 '12 at 14:41

The only interface to get this from a Hyper-V host is through WMI. The Powershell objects just use WMI internally.

And while you may find what you're looking for by trying to interpret the XML representations of a VM that are the VM configuration files, their format is internal to Hyper-V, and thus is may change from release to release.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.