Pasting text to Hyper-V guests sometimes results in garbled characters- An Work Around


To work around this issue:

  • RDP to virtual machine using the mstsc.exe
  • Increase the keyboard class buffer size in the virtual machine
  • Disable the synthetic keyboard in the virtual machine to force using the emulated keyboard

To Increase the keyboard class buffer size in the virtual machine

1. Logon to a running virtual machine as an Administrator.

2. Hover mouse on the right hand side top corner, Click Search, Type regedit, and Right Click on Registry Editor, Click Run As Administrator.

3. Locate and then click the following registry entry:

HKLMSYSTEMCurrentControlSetServiceskbdclassParameters

4. In the details page, double click: KeyboardDataQueueSize

5. Select Decimal and type a value data of: 1024

6. Click Ok. Close the Registry Editor. you can modify the same registry for a group of Hyper-v virtual machines using GPO. GPO location is Computer Configuration/Windows Settings/Security Settings/Registry. Right Click and add new registry. 

To disable the synthetic keyboard for a virtual machine

1. Logon to a running virtual machine as a member of the Administrators group.

2. Hover mouse on the right hand side top corner, Click Search, Type devmgmt.msc, and then Right Click on device manager, Click Run As Administrator. 

3. Click Keyboards, right click Microsoft Hyper-V Virtual Keyboard and click Disable.

4. Close the Device Manager snap-in. Restart Virtual Machine.

5. On Windows Server 2012 Core, download DevCon.exe from the Windows Driver Kit to disable this driver using the command-line.

About Raihan Al-Beruni

My Name is Raihan Al-Beruni. I am working as an Infrastructure Architect in Data Center Technologies in Perth, Western Australia. I have been working on Microsoft technologies for more than 15 years. Other than Microsoft technologies I also work on Citrix validated solution and VMware data center virtualization technologies. I have a Masters degree in E-Commerce. I am certified in Microsoft, VMware, ITIL and EMC. My core focus is on cloud technologies. In my blog I share my knowledge and experience to enrich information technology community as a whole. I hope my contribution through this blog will help someone who wants more information on data center technologies.
This entry was posted in Windows Server and tagged , , , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s