Category Archives: HyperV

Capacity Planner for Hyper-V Replica

Microsoft has released version 2 of their Capacity Planner for Hyper-V Replica tool. This tool is run on each primary host and provides data and metrics useful for administrators in determining their environment and how Hyper-V Replica will impact on the performance of the server and network.

The tool can be downloaded here –

How to rapidly create a Virtual Machine from WIM or ISO (WIM2VHD)

If you have DVD media or and ISO of your Operating System, you can quickly and easily create a sysprepped VHD or VHDX image. With this Virtual Hard Disk file, you can set up a Virtual Machine and boot it directly to the Out of Box Experience, thus saving about half an hour to an hour of installation time.

The process for doing this and PowerShell script called Convert-WindowsImage.ps1 is documented in the Technet Script Repository here –

Note: This latest release (v6.3) now supports the creation on Generation 2 VMs.

Windows Server 2012 R2 Hyper-V Component Architecture Poster and Hyper-V Mini-Posters

Microsoft have released a bunch of new visual guides to the various features of Windows Server 2012 R2. As per the Microsoft description “These posters provide a visual reference for understanding key Hyper-V technologies in Windows Server 2012 R2. They focus on Generation 2 virtual machines, Hyper-V with virtual hard disk sharing, online virtual hard disk resizing, storage quality-of-service, enhanced session mode, live migration, Hyper-V failover clustering, and upgrading your private cloud. This visual reference is available as a complete wall poster or as individual components that are suitable for printing on most standard printers.”

The link to download these posters is here –

How to create Self-Signed Certificates for Hyper-V Replication

Here is the quick and simple lowdown on how to create Self-Signed SSL Certificates for use in Hyper-V Replication. There is a great article on Technet which gives more background into this process –

You will need Makecert.EXE which can be found from or here –

On the First Server, in an elevated command prompt.

  1. Run makecert -pe -n “CN=FirstRootCA” -ss root -sr LocalMachine -sky signature -r “FirstRootCA.cer”
  2. Run makecert -pe -n “CN=[FQDN1]” -ss my -sr LocalMachine -sky exchange -eku, -in “FirstRootCA” -is root -ir LocalMachine -sp “Microsoft RSA SChannel Cryptographic Provider” -sy 12 FirstServer.cer
  3. Copy SecondRootCA.cer from Second Hyper-V
  4. Run certutil -addstore -f Root “SecondRootCA.cer”
  5. Run reg add “HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Virtualization\Replication” /v DisableCertRevocationCheck /d 1 /t REG_DWORD /f

On the Second Server, in an elevated command prompt.

  1. Run makecert -pe -n “CN=SecondRootCA” -ss root -sr LocalMachine -sky signature -r “SecondRootCA.cer”
  2. Run makecert -pe -n “CN=[FQDN2]” -ss my -sr LocalMachine -sky exchange -eku, -in “SecondRootCA” -is root -ir LocalMachine -sp “Microsoft RSA SChannel Cryptographic Provider” -sy 12 SecondServer.cer
  3. Copy FirstRootCA.cer from First Hyper-V
  4. Run certutil -addstore -f Root “FirstRootCA.cer”
  5. Run reg add “HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Virtualization\Replication” /v DisableCertRevocationCheck /d 1 /t REG_DWORD /f

Then you can use these certificates in Hyper-V replication. The steps to setting this up can be found here –

Hyper-V disaster recovery to different hardware

It is not a scenario you want to see as a system administrator, especially in a small business, where there is only one physical server. This afternoon, the one physical server in a client’s office “laid down to rest.” Lesson One
– Do not let you servers live past their warranty date. This server was two weeks away from being replaced, after running 24×7 for almost five years.

Lesson Two
– Have a recovery plan and a secondary recovery plan. I scrambled to locate a spare server on a Saturday evening. Putting together bits and pieces, I was able to build up a reasonable temporary server. I then followed the usual recovery process and stared at the screen when it told me it would take 15 hours to restore the C: volume. There was still a D: and E: volume with much more data to recover.

So, I pulled the old server apart, and pulled out the two 4-bay drive cages, along with the RAID controller, and inserted it into temporary server #2. All the drives were intact, so I was able to copy the virtual machines directly off the old server hard drives. This only took 1 hour.

A really cool feature in Windows Server 2012 Hyper-V is the ability to perform an in place import. The process is quick and simple. Click on the Import Virtual Machine link on the right column of the Hyper-V Manager. This will begin the Import Virtual Machine Wizard.

After the wizard is complete, you can make changes as needed to the VM. NOTE: If you are recovering the VM to a host with a different processor platform, you need to enable the processor compatibility option in the VM Settings.

Finally, you click Start to boot up the recovered VM and straight away, you run into a major block.

The import wizard does not set the permissions on the imported files to allow the system to access the necessary files. To set these permissions, use the icacls command in the same manner as documented here – . To save time, if you have already read that blog post, here is the command – icacls [VHD file] /grant “NT VIRTUAL MACHINE\[VM SID]”:F

There are at least 4 files that you need to reset permissions for.

  1. The hard drive(s) that are attached to this VM.
  2. The XML file with the SID that you need to use in the icacls command line. This file found in the [SERVERNAME]\Virtual Machines folder.


  3. The two BIN and VSV files that are located in the [SERVERNAME]\Virtual Machines\[SID] folder.

Once these permissions are set, you will be able to start up the recovered VM.


Windows Server 2012 R2 – What’s in it for the SMB?

Microsoft introduced the next generation of their solutions at TechEd North America 2013 today. It was no surprise that much of the offerins were targeted towards large enterprise and cloud computing, as this is where the company is firmly focussed at the present. You can read the official press release here –

So, what is in it for the traditional small and micro business? Office 365 currently offers a good alternative to running your own email server on premises after  the Small Business Server line up was discontinued. Wave 15 of Office 365 continues this with infrastructure built upon the Server 2013 family of products. However, Microsoft announced a further release of their server operating system named Windows Server 2012 R2. In this new release, there are a number of features that will be really beneficial to the small and micro business.

Windows Server. A host of new features were announced here. Among the main SMB friendly features are performance improvements, support for dynamic memory and dynamic disks in Linux virtual machines, Drag and drop live migrations, enhanced Remote Desktop experience, and better VM debugging and management. Storage Space has been given an overhaul, and this is a good to to re-evaluate this new technology and see how it can be beneficial to the SMB market. Work Folders encrypts and replicates user data between file servers and devices, and allows for remote wipe of corporate data.

Windows Server Essentials. This final legacy of the Small Business Server has now been completely integrated into the Windows Server 2012 R2 product. Whilst it can still be installed as Windows Sever 2012 R2 Essentials, it can now also be installed as a role in Windows Server 2012 R2 Standard and Datacentre.

Hyper-V new Features. A whole host of new changes have been incorporated into Windows Sevrer 2012 R2 Hyper-V. First, there is a new VM standard called generation of virtual machines which run only as VMs. They are UEFI based and can only run Windows 8, Windows 2012 or higher operating systems, and do not support legacy devices. VHDx files can now be resized online. USB passthrough is now implemented. Hyper-V Replica has now been extended to allow a target VM to be replicated on to another target  amd there are now choices for the replication intervals.

You can find out about these new developments as they are announced via the live North America TechEd 2013 streaming and videos here –




How to Turn off Printer Redirection for Remote Desktop Sessions on a Hyper-V Server Host

If you use Remote Desktop Services to connect to your Windows Server 2012 Hyper-V Host, one of the best practices tasks that you can do is to turn off printer redirection. Printer Redirection is the feature that allows a local printer to be mapped on a remote machine, and allows printing across the network or Internet. Sometimes, badly written drivers can cause issues on the remote host when redirection is permitted, causing major issues on the server, and potentially causing downtime.

Therefore, it is best to turn off this redirection as a precaution. This process can be performed on Windows Server 2008 R2 and Windows Server 2012.

  1. Open an Administrative Command Prompt, and Start the Microsoft Management Console (MMC).


  2. In the Console, navigate to Add/Remove Snap-in


  3. Select and add the Group Policy Object snap-in.


  4. Click Finish to apply the Snap-in to the Local Computer.


  5. Click OK, to close the Snap-In window.


  6. Expand the Snap-in to Console Root/Local Computer Policy/Computer Configuration/Administrative Templates/Windows Components/Remote Desktop Services/Remote Desktop Session Host/Printer Redirection


  7. Double Click on “Do not allow client printer redirection” and Enable the setting. Click Apply, then OK.


  8. Log off the session to apply the setting.

Stop Windows Server 2012 and Windows 8 from automatically rebooting the server after logging in

One of the recent issues in managing Windows Server 2012 is the way Automatic Updates works by default. If automatic updates are installed on a server, it may or may not automatically reboot the server or PC.

At the log in screen, you may see this message.

Upon logging in, you may be faced with the prospect of the server rebooting in 15 minutes. The countdown timer has started and there is no apparent way to click on a “Postpone” button.

In many cases, this will cause some distress. Particularly if this is a Hyper-V host server, and you have an entire network of 120 users accessing the virtual machines!

Fortunately, there is a fix to prevent the server from counting down and restarting.

  1. Open an administrative command prompt.
    to stop the Windows Update service.

This will stop the Windows Update service, and stop the countdown timer until the server is restarted manually. Don’t forget to restart the server at the next possible opportunity.

Using Windows 8 Client Hyper-V

A new document has been released providing a quick overview of the HyperV technology that is built into Windows 8. This is similar to the Windows 7 functionality, which was called XP Mode.

The document is a basic overview of HyperV in Windows 8, how it could be used, that requirements are needed, and how to enable the feature. It also provides a nice lot of links to more information on Tools, and some PowerShell Cmdlets, and also discusses RemoteFX functionality.

The document can be downloaded here –


Hyper-V Replica for Small Business

This post serves as a starting point for my series of posts on the new feature called Hyper-V Replica.

Windows Server 2012 HyperV Replica Scenarios for Small Business

In this post, I examine the various scenarios where a small business could use this technology.


How to set up Hyper-V Replica for Small Businesses

In this post, we look at how to configure and set up Hyper-V Replica.

The post continues on to a follow up session, “Disaster Recovery with Hyper-V Replica for Small Business on a Budget, which looks are a cheaper alternative in deploying this feature.


Monitoring and Managing Hyper-V Replica

We also look at how to monitor and manage the Hyper-V Replica and steps to take in case the replica is needed in a DR situation.


Supplementary Resources

There are a number of other posts that are referred to or provide further information related to the subject matter.