The saga of the Bad Keyboard Layout (XenDesktop 5+ + DesktopAppliance) (CTX coming for that bug)
May 17, 2013, 10:41 pm technologyHi everyone
Today I will post about a big bug. Seem a easy's one, but it took 2 Tier 3 support technician from Citrix and 1 dev from Citrix to get a workaround :-) (Not to forget the support case with Wyse !)
I got a workaround, no fix !
WHAT WAS WORKING:
In XenDesktop 4 with a Desktop Appliance the Keyboard Layout in the Virtual Desktop is handled as (Server Default)'s always.
The setup;
- The user profile, with Citrix UPM (like a roaming profile) is configured with a French Canada's profile.
- The default's one in the Preload's section is configured with French Canada too.
- The Wyse/Desktop Appliance/Endpoint Device with a Citrix Receiver got configured with any Keyboard Layout.
So the client connect from anywhere in the world, and the keyboard layout in it's Virtual Desktop is the one from it's profile.
BUG:
If you update the Virtual Desktop to install the Citrix VDA's Agent and Core Service to version 5 and more, it now do a keyboard importation from the device.
Seem a easy's one you will told me, but what if Wyse didn't coded the right Keyboard Layout for like French Canada ?
Bug like that appear;
So you clearly see the bug, the French (Canada) got bypassed by that "Canadian Multilingual Standard". So you will tell me, wait, you did put that setting in the Wyse, but no !
WORKAROUND...
The one I did myselft before contacting the support...;
A script in the start-up menu in the All Users: (I call the .bat that way to hide the windows)
Set oWshShell = CreateObject("WScript.Shell")
oWshShell.Run "c:Import.bat", 0, True
Import.bat:
reg import c:kb.reg
rundll32.exe shell32,Control_RunDLL intl.cpl,,/f:"c:kb.txt"
-There the first line do import the correct Preload key
-Now the second line simulate a click in the control panel to change the setting
kb.reg:
Windows Registry Editor Version 5.00
[-HKEY_CURRENT_USERKeyboard LayoutIMEtoggle] [-HKEY_CURRENT_USERKeyboard LayoutPreload] [-HKEY_CURRENT_USERKeyboard LayoutSubstitutes] [-HKEY_CURRENT_USERKeyboard LayoutToggle]
[HKEY_CURRENT_USERKeyboard Layout]
[HKEY_CURRENT_USERKeyboard LayoutIMEtoggle]
[HKEY_CURRENT_USERKeyboard LayoutIMEtogglescancode]
[HKEY_CURRENT_USERKeyboard LayoutPreload] "1"="00001009"
[HKEY_CURRENT_USERKeyboard LayoutSubstitutes]
[HKEY_CURRENT_USERKeyboard LayoutToggle] "Hotkey"="3" "Language Hotkey"="3" "Layout Hotkey"="3"
[HKEY_CURRENT_USERControl PanelDesktop] "MultiUILangageId"="00001009"
kb.txt:
[RegionalSettings]
LanguageGroup=1
InputLocale = 0c0c:00001009
OK, BUG#2 after that. Because, if my workaround would had work at 100% I would had not call the support...
In the initial login the script work and that all ok, the users see nothing wrong. The bug come after a period, the VDA's agent seem to refresh it's settings.
So in the day, usually 3-4 hours after the bad keyboard come out again. The bug appear less, because some users works in TS session like from XenApp, so their keyboard is ok. Some users see the bug when they try to edit some local text or in some local app.
WORKAROUND #2
You erase the wrong keyboard layout folder from there;
HKEY_LOCAL_MACHINESYSTEMCURRENTCONTROLSETCONTROLKEYBOARD LAYOUTS
Seem to work, but WAIT, in the refresh period the bad keyboard layout come back agains ! ark.
So, in the final the correct workaround is to set the correct ACL for the folder, only domain admin read, every other including SYSTEM with DENY's flag. (so you does not erase it)
Thanks everyone, I hope it will help other.
As clearly we CAN'T stop that importation with the new VDA,s agent 5 and more and that leave the Virtual Desktop easy to break by Receiver or Appliance that does not follow the correct key to use.
Popular Tags
Archives
-
2026 (23)
- November 2026 (3)
-
October 2026
(15)
- Blog content imported
- Added language; Hindi
- Added more contents for Polish
- App Review: Go Talk Now
- New language added; portuguese
- Website hardened for external link
- New spam for App Developper
- Website maintenance
- Tech Tip: Meraki firewall possible parental control
- New apps release for Android
- Router review - Sophos UTM
- Tech Tip: ASUS parental's control for home router
- Tech Tip: Amazon Fire Tablet Parental's control
- Youtube Restriced Mode
- 100K visit Milestone achieved !
- September 2026 (3)
- August 2026 (2)
- 2024 (4)
-
2023 (19)
- December 2023 (2)
- October 2023 (6)
- September 2023 (2)
- July 2023 (1)
- June 2023 (1)
- May 2023 (2)
- April 2023 (1)
- February 2023 (2)
- January 2023 (2)
-
2022 (26)
- December 2022 (3)
- November 2022 (5)
- October 2022 (4)
- September 2022 (2)
- July 2022 (2)
- May 2022 (1)
- March 2022 (1)
- February 2022 (4)
- January 2022 (4)
-
2021 (15)
- December 2021 (4)
- November 2021 (1)
- October 2021 (2)
- September 2021 (1)
- August 2021 (1)
- May 2021 (1)
- April 2021 (1)
- February 2021 (1)
- January 2021 (3)
-
2020 (18)
- December 2020 (2)
- November 2020 (1)
- October 2020 (2)
- September 2020 (2)
- August 2020 (1)
- July 2020 (1)
- March 2020 (1)
- February 2020 (2)
-
January 2020
(6)
- Windows 10 IoT Terminal Deployment – Part 4 – Apps Publishing (HPDM - HP Device Manager)
- Windows 10 IoT Terminal Deployment - Part 2 - Protect the Hard Disk ? - Deploy Write Filter !
- Office 2019 / 365 Deployment
- Windows 10 IoT Terminal Deployment - Part 1 - Introduction
- Microsoft Team support for CentOS 7 / RedHat
- Prevent Office from saving to OneDrive by default
-
2019 (29)
- December 2019 (3)
- November 2019 (3)
-
October 2019
(8)
- Microsoft Q&A Launch !
- Windows Server 2019 OEM Activation problem (VM)
- StackOverflow moderation
- Microsoft Exchange Information Store Error - EventID 5003 | EventID 3154 - Time error
- Windows 10 - Update Stay at Download Waiting
- Windows Server 2019 Domain Controller - Ready for production ! (KB4516077)
- 0365 - Exchange Online X-Sender Spam Problem
- Active-Directory - Invoke-InternalEnsureADDSComponentInstallState not recognized - DCPromo
- September 2019 (1)
- August 2019 (1)
- July 2019 (2)
- April 2019 (1)
- March 2019 (1)
-
February 2019
(7)
- RDS: HP Thin OS resolution problem in Full Screen mode !
- Unable to rename domain controller: Account already exists
- Windows Update Error 80243004
- Windows 10 and the faulty network adapter
- Windows Server 2019 RDS: Install Error: dismapi_error__failed_to_enable_updates rds-web-access
- Windows Machine Unknown state on ESX
- RDS: Published App + Dell / Wyse ThinOS + Juniper DHCP relay option
- January 2019 (2)
-
2018 (28)
- December 2018 (1)
- November 2018 (6)
- October 2018 (1)
- September 2018 (2)
- August 2018 (4)
- July 2018 (2)
- May 2018 (1)
-
March 2018
(7)
- Windows 7/10 + Terminal + SmartCard Redirection with XenDesktop
- Windows 7/10, vSphere 5.5+, Citrix Desktop Studio Power State Unknown
- Logon Failure: The target account name is incorrect
- DNS Server Service - Error 1717: The interface is unknown
- Migrating files from an Active Directory Domain to another, unblocking the files ?
- Active Directory: Reset the clock on an expired password for an account
- OneDrive on Local Account ?
- February 2018 (2)
- January 2018 (2)
-
2017 (18)
- December 2017 (1)
- October 2017 (1)
- September 2017 (3)
- August 2017 (3)
- July 2017 (3)
- June 2017 (6)
- April 2017 (1)
-
2016 (26)
-
October 2016
(24)
- Windows Server - Prevent users from changing printer preferences for color
- Windows Server 2012 R2 - Firewall Logging for RDP (or any other service!)
- Windows VDA - Script to re-install the Microsoft Update add-on
- Windows VDA / Terminal Server session - Kill for good that Java update Warning !
- The Citrix purge ! part 1
- Windows - Outgoing Fax in the Console
- SQL Server 2014 on a Domain Controller ?
- Windows VDA + Pre Deploy Juniper client / Pulse Secure
- How to add non latin entry in the Windows Host file ? (%SystemRoot%\System32\drivers\etc\hosts)
- Windows Remote Desktop Service - Manually creating a .RDP file
- Microsoft Office 2013 32-bit over 64-bit error
- Windows - How to easily deploy XenApp multiple farm config for a user
- Windows Server 2012 R2 KB3185279 & KB3185331 seem to break Google tip to block Youtube with DNS
- Microsoft Offer some Virtual Machine for testing purpose
- In Windows Server 2012 R2, and error copying file name too long ?
- Windows Server - Stress that spooler ! - The terminal Server session will love you after
- Windows/Linux/BSD - How to check if the memory is functioning in ECC mode
- PowerShell - RDS - XenApp - Force password change for account near passoword expiration date
- Temporary file from UsrClass.dat (sometime associated with NTUSER.dat)
- How to export Event Viewer data to Excel with PowerShell
- Visual Studio 2015 on Windows Server 2012 R2
- Remove any trace of an Antivirus was installed (WMI)
- Windows VDA + Roaming Profile + OTP program
- Windows VDA – KMS problem - Resetting rearm count
- September 2016 (1)
- June 2016 (1)
-
October 2016
(24)
- 2015 (2)
-
2014 (5)
- November 2014 (3)
- March 2014 (1)
- January 2014 (1)
-
2013 (10)
- November 2013 (2)
- October 2013 (1)
- August 2013 (3)
- May 2013 (2)
- February 2013 (2)
- 2012 (2)
-
2011 (7)
-
June 2011
(7)
- The hypervisor was not contactable at the supplied address
- Wyse Xenith FTP bug from old firmware.. (post 1.5.xx)
- Messaging between Desktop in XenDesktop
- Unknown publisher.. small annoyance
- Best Practices for Configuring Provisioning Server on a Network
- Citrix XenDesktop and McAfee EPO script
- How to cold reset an APC ups
-
June 2011
(7)
- 2010 (2)

