CALENDAR ENTRIES
January 2009
Sun Mon Tue Wed Thu Fri Sat
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31

December 2008
Sun Mon Tue Wed Thu Fri Sat
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31      

About this Entry

This page contains a single entry by Mike Pastore published on August 11, 2008 3:06 PM.

Microsoft NAP Review was the previous entry in this blog.

Event Forwarding with Windows Server 2008 is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

 

Coding with Hyper-V

| | Comments (0) | TrackBacks (0)
Looking to start experimenting with Hyper-V? Whether it's programming or scripting, it's easy to get started. If you want to do some coding, all you need is a language that can access WMI. Microsoft bloggers have advice for getting started with each one.

We'll start with Richard MacDonald who shows you how to get started programming with Hyper-V using C#.
Hyper-V provides a nice interface for scripting and programming.  The interface is usable from any scripting/coding language that can access WMI.  For example: VBScript, C++, PowerShell, C#, etc.  In this short tutorial I'll look at connecting and querying via C#, but the techniques can be easily adapted to the language of your choice.
Ben Pearce, meanwhile, is starting a series of blog posts on Scripting Hyper-V with WMI and PowerShell. There are a couple of options for scripting: Using the virtualization WMI provider that ships with Hyper-V or using the cmdlets provided by System Center Virtual Machine Manager 2008. Provided that you have System Center, of course.
Use SCVMM 2008, and scripting Hyper-V is like a pleasurable dream.  The cmdlets are task orientated, provide a rich set of features and really do work very well.  So why is this a guide to Option 1 – Using the virtualization WMI provider?  Well, sometimes Hyper-V will be used without an accompanying System Centre deployment, and if that’s the case, using WMI is your only scripting option.



0 TrackBacks

Listed below are links to blogs that reference this entry: Coding with Hyper-V.

TrackBack URL for this entry: https://swarm.jupitermedia.com/mt-tb.cgi/4354

Leave a comment