Browse by Tags

Tagged Content List
  • Blog Post: Programmatically Detecting when a VM Changes State

    Every now and then I get asked how to detect whenever a virtual machine changes state. Usually, people who ask about this have written some code that periodically queries Hyper-V to see what state different virtual machines are in (stopped, running, etc.). What they find is that this is not efficient...
  • Blog Post: Setting up non-administrative control of Hyper-V through PowerShell–Updated

    Yesterday, I told you about how it was now easier to allow a non-administrative user to control Hyper-V . This is nice – but it does mean that this script that I blogged about 4 years ago no longer works. Here is a new one: $myWindowsID=[System.Security.Principal.WindowsIdentity]::GetCurrent...
  • Blog Post: Allowing non-Administrators to control Hyper-V–Updated

    A long time ago, I did a post about how to allow non-Administrative users to control Hyper-V .  Then I did a post that showed you how to script this whole configuration .  Finally, I did a post that showed you how to setup a “Hyper-V Administrators” group to make the whole process easier. Well...
  • Blog Post: Looking for Wasted Space inside Virtual Machines

    Recently, I tried to update the operating system installed inside of one of my virtual machines.  I quickly received an error message stating that I did not have enough free space available to perform the upgrade.  My immediate thought was that I would need to expand the size of the virtual...
  • Blog Post: Exporting a Virtual Machine Checkpoint

    Something neat that you can do in Windows Server 2012 / Windows 8 or later is to export a virtual machine checkpoint.  You can do this by either: Selecting the checkpoint in the UI and selecting Export from the action pane Using the Export-VMSnapshot cmdlet When you do this, we will actually create...
  • Blog Post: Understanding Maximum Dynamic Memory from inside a VM

    Dynamic memory is a great feature that allows Hyper-V administrators to get better utilization of their physical memory.  But it can be hard to tell what is going on from inside of a virtual machine.  There are, however, some things that you can do from inside a virtual machine. The first thing...
  • Blog Post: Importing a VM with VHDs in Different Paths

    I was recently given an interesting challenge.  I was asked to show how you could use PowerShell to import a virtual machine; where the virtual hard disks were stored in multiple different locations.  Now, if the virtual hard disks were all in a single location, you could just use the “VHDSourcePath...
  • Blog Post: Hyper-V Networking–Router Guard

    Router guard is another advanced networking feature that was added in Windows Server 2012: When you enable Router Guard Hyper-V switch will discard the following packets: ICMPv4 Type 5 (Redirect message) ICMPv4 Type 9 (Router Advertisement) ICMPv6 Type 134 (Router Advertisement) ICMPv6 Type 137 (Redirect...
  • Blog Post: Hyper-V Networking–DHCP Guard

    If you start digging into the advanced settings section of a virtual network adapter – there is a lot of interesting stuff to look at.  Today I’m going to talk about the DHCP guard setting: This setting stops the virtual machine from making DHCP offers over this network interface.  To be clear...
  • Blog Post: Using Compare-VM on Compare-VM

    I have been spending a lot of time this week looking at all the functionality that is available in the Compare-VM PowerShell cmdlet in Hyper-V.  The core concept of Compare-VM is that it returns a “virtual machine compatibility report” that lets you know about any problems that exist with the virtual...
  • Blog Post: Using PowerShell to Live Migrate to a Computer with a Different Virtual Switch

    So far this week I have shown you how to register and how to import virtual machines with configuration problems using PowerShell.  However, the question I most often hear is this one: how do I use PowerShell to live migrate a virtual machine to another computer – where the virtual switch names...
  • Blog Post: Importing an Incompatible VM with PowerShell

    Yesterday I stepped through the process of registering an incompatible virtual machine with PowerShell .  But what if you want to import the virtual machine instead of registering it?  Well, the process is pretty much identical.  Replace Import-VM with Compare-VM, fix the incompatibilities...
  • Blog Post: Registering an Incompatible VM with PowerShell

    If you have ever tried to register a virtual machine in Hyper-V Manager, and the virtual machine was not compatible with your current computer, you would have seen something like this: This is a GUI experience that allows you to make changes to the incoming virtual machine in order to make it work on...
  • Blog Post: Why is the wrong time displayed on my virtual machine?

    Here is the scenario: You have a bunch of server virtual machines that are merrily running somewhere in your environment.  Normally you do not interact with them, but once in a while you need to login to one of them and do something.  When this happens – you open up Hyper-V Manager and connect...
  • Blog Post: Managing Windows Server 2012 Hyper-V from Windows 8.1

    In the past we have always required that you use Hyper-V Manager on the same version of Windows as the version of Windows that you are using to run Hyper-V (i.e. Use Windows 7 to manage Windows Server 2008 R2, use Windows 8 to manage Windows Server 2012).  But we have made a change with Windows...
  • Blog Post: Figuring out your NUMA topology with Hyper-V

    I was recently asked how you should go about determining the NUMA topology of a physical computer, for the purposes of planning a Hyper-V deployment.  This is something that is normally quite tricky to do – so we actually included this information directly into the Hyper-V PowerShell interface to...
  • Blog Post: Bulk Registering Virtual Machines with PowerShell

    I recently rebuilt a Hyper-V server – where all of my virtual machines were shutdown first and stored on a secondary disk.  Once I had finished installing the operating system and had Hyper-V up and running – I wondered what the most efficient way to get the virtual machines all reconnected would...
  • Blog Post: Hyper-V WMI v2 Porting Guide

    I have been getting more and more questions about how to use the Hyper-V v2 WMI namespace recently – so I have just created a TechNet Wiki article that links to a number of samples / documentation pages about how to do this.  You can get all the details here: http://social.technet.microsoft.com...
  • Blog Post: Why does Hyper-V create a snapshot every time I apply a snapshot?

    I was asked this question today.  My first response was: “It doesn’t”.  But after a bit of thought I realized what was going on for the user in question.  Whenever you take a snapshot of a Hyper-V virtual machine, we capture the point in time data about that virtual machine and then continue...
  • Blog Post: Important Hyper-V Update–July 2013 rollup

    The Windows Server 2012 July 2013 update rollup is an important one to install on Hyper-V servers.  Specifically because of this update: 2853952   Active Directory database becomes corrupted when a Windows Server 2012-based Hyper-V host server crashes While I have been running Active Directory...
  • Blog Post: Configuring wide screen resolutions in a Hyper-V virtual machine

    I recently had to do some demonstrations on my laptop – which has a 1366 x 768 display.  This made it hard to use Hyper-V virtual machines, which default to 1024 x 768 and only allow you to configure 4 x 3 resolutions. Luckily, it is actually possible to setup a Hyper-V virtual machine with a widescreen...
  • Blog Post: Creating a Virtual Machine with WMI v2

    Most people use the built in Hyper-V PowerShell cmdlets to control Hyper-V these days.  That said, there are people out there who program directly to our WMI APIs.  In Windows Server 2012 we introduced a new WMI namespace – and recently I have been getting a number of questions about how to...
  • Blog Post: PowerShell script to tell you if you need to update your Integration Services

    A while ago I did a blog post that showed you how easy it was to check what version of the Integration Services were installed inside your virtual machines. However, a number of people came back to me and said: “Ben, I do not really care about the version number of the integration services –...
  • Blog Post: Convert-WindowsImage Script

    In the past I have pointed out the excellent WIM2VHD tool, that allows you to take Windows installation media and create template virtual machines without ever starting a virtual machine.  There is now an updated version of this script that takes advantage of the new PowerShell functionality in...
  • Blog Post: Compacting Virtual Hard Disks in Windows 8 / Windows Server 2012

    Recently the “ Ask the Core Team ” blog did a great post about compacting a dynamically expanding virtual hard disk in Windows 8 / Windows Server 2012 .  You should check out their full post for the details, but the summary is that you now need to manually mount the virtual hard disks in the management...
Page 1 of 3 (71 items) 123