Hyper-V WMI–Creating External Only Virtual Switch (i.e. Do Not–Allow Management Traffic

In response to a few of my old posts Hyper-V WMI Using PowerShell Scripts – Part 5 (Creating Virtual Switchs/Networks) and Hyper-V V2: Guest Only External Networks + Add Roles Wizard Changes I’ve had a lot of people ask me how to create external virtual switches that do not allow management traffic i.e. guest only…

2

Attaching Passthough Disks Via WMI (SCSI or IDE)

So you want to use passthough disks with Hyper-V cool – but how do you script attaching them?  Well here’s your answer…  But first you need to decide if you are going to attach them to the virtual IDE controller or the virtual SCSI controller.  The IDE controller is ideal if you plan to boot…

3

VBScript Versions of The KVP Scripts

Ben Armstrong (aka Virtual PC Guy) posted some great VBScript and PowerShell KVP scripts.  These are a great edition to some of my earlier scripts (Adding Host KVP’s, Adding Guest KVP’s, Modifying KVP’s).  Check them out if your looking for more samples. Sending data from parent to virtual machine via KVP Enumerating parent KVP data…

0

PDC Teaser – Attaching a VHD to A Virtual Machine

PDC is just around the corner now – I am giving the dry run of my talk tomorrow morning, so of course I am working on my demo’s today…  Just to give you a bit of a teaser here’s one of the scripts that I am using in one of my demo’s… This script will…

6

Open Source PowerShell Editor — PowerGUI

Many of you know I have been a fan of PowerShellPlus for quite a while, but I was turned on to a new editor the other day that’s pretty slick – PowerGUI.  Winner of this years Windows IT Pro Magazine’s Best of Tech Ed IT Pro Breakthrough Product Award this editor/GUI is not to shabby… …

3

Hyper-V WMI: What VHD’s/Physical Disks Are Associated With a Virtual Machine?

I  got a great question based on yesterday’s post (by the way my e-mail was blocking a lot of external messages that’s fixed now so I apologize to anyone I missed a mail from).  The person was asking how they could figure out what physical disk a virtual machine is using when configured for passthough…

7

PDC 2008 Here We Come!

Hyper-V will be well represented at the Microsoft Professional Developers Conference (PDC) this year.  Additional sessions where posted today (http://www.microsoftpdc.com/Agenda/Sessions.aspx) and they include two Hyper-V sessions.  The first is Developing Solutions For Hyper-V Using WMI and the second is Enabling Test Automation Using Hyper-V.  I am especially excited as I am currently slated to be…

5

Hyper-V WMI: Creating a Thumbnail Image

Hyper-V has a WMI API that will allow you to create a thumbnail image of any running or paused virtual machine.  You can create any sized thumbnail you want (640×480, 800×600, 1024×768 etc…).  Creating the image is pretty easy, you just call GetVirtualSystemThumbnailImage passing a reference to an Msvm_VirutalSystemSettingData instance and the size of the…

1

Hyper-V WMI: KVP Exchange aka Data Exchange (Retrieving and Modifying Parent/Host KVP’s)

On Sunday I showed how to add registry keys to the guest from the host (Hyper-V WMI: KVP Exchange aka Data Exchange (Adding New Items From Parent/Host)) and on Monday I showed how to read registry key’s written by the guest from the host (Hyper-V WMI- KVP Exchange aka Data Exchange (Adding New Items From…

3