Friday Afternoon–hardware time

tweetmeme_url = ‘http://blogs.msdn.com/b/virtual_pc_guy/archive/2011/11/04/friday-afternoon-hardware-time.aspx’; I spend far too much time in meetings these days.  But I try to keep my Friday afternoons free of meetings – and often use this time to update my various servers and try out new configurations.  Today it is time to rebuild some of my storage: Specifically I am throwing a… Read more

Diagnosing a cause of PXE boot failure

tweetmeme_url = ‘http://blogs.msdn.com/b/virtual_pc_guy/archive/2011/11/02/diagnosing-a-cause-of-pxe-boot-failure.aspx’; The other day I was trying to boot a virtual machine over the network using my Windows Deployment Services (WDS) Server.  This normally works fine – but for some reason I was getting nothing but errors.  Sometimes I would get a DHCP failure, other times I received varied PXE error messages: After… Read more

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