Blog Introduction
I wrote the msdn Hyper-V documentation samples with my colleges' help. I want to use this blog to explain the contexts that we missed from these samples.
I will be really happy if we can achieve the following goals together:
- Make our MSDN online samples easier to understand.
- Get your feedbacks into these samples.
- Get scenario samples that we need to write.
So far we have 48 samples written in both C# and VBScripts. It covers most the API that Hyper-V currently has. These samples can be divided into the following categories:
- Virtual System Management Service. 17 methods. https://msdn.microsoft.com/en-us/library/cc136940(VS.85).aspx
- Virtual Switch Management Service. 13 methods. https://msdn.microsoft.com/en-us/library/cc136938(VS.85).aspx
- Virtual Image Management Service. 13 methods. https://msdn.microsoft.com/en-us/library/cc136845(VS.85).aspx
- Keyboard and Mouse. 3 methods. https://msdn.microsoft.com/en-us/library/cc136956(VS.85).aspx. https://msdn.microsoft.com/en-us/library/cc136772(VS.85).aspx
- Msvm_ComputerSystem. 1 method. https://msdn.microsoft.com/en-us/library/cc723874(VS.85).aspx
- Scenarios. 1 Scenario https://msdn.microsoft.com/en-us/library/cc723870(VS.85).aspx
I will try to explain these APIs in the following context:
- Methods and VM relationships
- WMI objects it creates.
- Mapping between the Hyper-V console UI and the method
I am looking forward getting your feedbacks.
Cheers,
Howard.
Comments
Anonymous
January 01, 2003
Thank you for your feedbacks. I have a plan to post Visio drawings to show WMI objects affected by each Hyper-V method. You are absolutely right. It’s very difficult to understand WMI programming model without understanding the objects and object relationships behind, especially Hyper-V networking related operations.Anonymous
January 01, 2003
Hi, thanks for this useful links. As an MVP for Virtual Machines I'm focused on all related topics. I'm not a programmer, I'm IT Pro but I currently do a lot with PowerShell and WMI together with Hyper-V. I found it very useful to have some scripts to start off, and also very useful is a list of available classes within the WMI namespace. I look forward on new posts on this blog. Thanks Peter Forster MVP Virtual Machines AustriaAnonymous
February 10, 2009
How would one start a VM programatically. I see that you can use InitiateShutdown to stop a VM Regi