?
Solved

.NET API Hyper V Cluster

Posted on 2014-12-31
1
Medium Priority
?
187 Views
Last Modified: 2015-01-27
Hi,

I was wondering does anyone know of any API's (preferably through .NET) to query a Hyper V Cluster (server 2012) such as getting the shared volume, settings of the VM (Cores etc).

I know there is something similar within PowerShell but I was hoping there is something available via .NET?

Thanks,
Alex
0
Comment
Question by:BoltonWanderer
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 37

Accepted Solution

by:
bbao earned 2000 total points
ID: 40563546
the secret Hyper-V APIs are available via WMI, actually the same APIs that PowerShell uses to access the system's Hyper-V engine.

Hyper-V WMI Provider
https://msdn.microsoft.com/en-us/library/cc136992(VS.85).aspx

regarding how to access WMI providers using .NET framework, see belw the MS official article.

WMI .NET Overview
https://msdn.microsoft.com/en-us/library/ms257340(VS.80).aspx

hope it helps..
0

Featured Post

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

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

Optimized for private cloud infrastructures and datacenters, Nano Server is minimalistic, yet super-efficient, OS for services such as Hyper-V and Hyper-V cluster. Learn how you can easily deploy Nano Server and unlock its power!
In the absence of a fully-fledged GPO Management product like AGPM, the script in this article will provide you with a simple way to watch the domain (or a select OU) for GPOs changes and automatically take backups when policies are added, removed o…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…
Starting up a Project
Suggested Courses

752 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