Setting VM CPU scheduler settings with PowerShell [Hyper-V]

// A while ago I did a number of posts talking about the different controls that are available to you in regards to how Hyper-V schedules virtual machine processor resources (Hyper-V CPU Scheduling–Part 1, Hyper-V CPU Scheduling–Part 2, Hyper-V CPU Scheduling–Part 3 and Hyper-V CPU Scheduling–Part 4).  Today I want to share a PowerShell script… Read more

Running DOS fullscreen applications in Windows XP Mode

tweetmeme_url = ‘http://blogs.msdn.com/b/virtual_pc_guy/archive/2011/10/24/running-dos-fullscreen-applications-in-windows-xp-mode.aspx'; Here is a problem that I was asked about a while ago: When I try to start a DOS application that switches to fullscreen in Windows XP Mode – it fails with an error that states “The video device failed to initialize for fullscreen mode.  Choose ‘Close’ to terminate the application.”  Why… Read more

Deleting a snapshot sub-tree–via PowerShell [Hyper-V]

// Here is a dangerous script!  Given a virtual machine name and a snapshot name, it will delete the specified snapshot *and* any snapshots underneath it in the snapshot tree that Hyper-V manager displays: # Function for handling WMI jobs / return values Function ProcessResult($result, $successString, $failureString) { #Return success if the return value is… Read more

Deleting a snapshot–via PowerShell [Hyper-V]

// Here is a script that will allow you to delete a single snapshot from a Hyper-V virtual machine: # Function for handling WMI jobs / return values Function ProcessResult($result, $successString, $failureString) { #Return success if the return value is “0” if ($result.ReturnValue -eq 0) {write-host $successString} #If the return value is not “0” or… Read more

Applying a snapshot–via PowerShell [Hyper-V]

// Now that we know how to take a snapshot, and how to list snapshots – let’s start applying snapshots: # Function for handling WMI jobs / return values Function ProcessResult($result, $successString, $failureString) { #Return success if the return value is “0” if ($result.ReturnValue -eq 0) {write-host $successString} #If the return value is not “0”… Read more

Listing snapshots–via PowerShell [Hyper-V]

// After the relatively trick “taking a snapshot” script – today’s snapshot script is quite easy.  Listing the snapshots that a virtual machine has: # Prompt for the Hyper-V Server to use $HyperVServer = Read-Host “Specify the Hyper-V Server to use (enter ‘.’ for the local computer)” # Prompt for the virtual machine to use… Read more

Taking a snapshot–via PowerShell [Hyper-V]

// This week I am going to be sharing a bunch of scripts that show you how to interact with virtual machine snapshots in Hyper-V.  And I am going to start off with the hardest one – taking a snapshot: # Function for handling WMI jobs / return values Function ProcessResult($result, $successString, $failureString) { #Return… Read more

Installing Internet Explorer 8 in Windows XP mode

tweetmeme_url = ‘http://blogs.msdn.com/b/virtual_pc_guy/archive/2011/10/13/installing-internet-explorer-8-in-windows-xp-mode.aspx'; If you are like me, and obsessively ensure that all your virtual machines are kept up-to-date with the latest patches at all times, you may have wondered why your Windows XP mode virtual machine seems to be stuck with Internet Explorer 6. No matter how many times you check for updates –… Read more

Looking at 5nine Manager for Hyper-V

tweetmeme_url = ‘http://blogs.msdn.com/b/virtual_pc_guy/archive/2011/10/12/looking-at-5nine-manager-for-hyper-v.aspx'; This has been on my “to do” list for a while now – but I have finally got around to checking out the 5nine Manager for Hyper-V (http://5nine.com/5nine-manager-for-hyper-v.aspx). If you are unaware of this product – it is a management solution that is basically designed to replace the Hyper-V management tools that… Read more