AnswerBun.com

Autounattend.xml - Don't add the default keyboard for UserLocale

Server Fault Asked by Bangaio on December 23, 2020

Version: Windows 10 1909 (Spanish)

I wish to add two keyboard layouts (Spanish, US English) to the es-AR language profile in an unattended installation.

I have the following in the OOBE pass:

    <settings pass="oobeSystem">
        <component name="Microsoft-Windows-International-Core" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <InputLocale>2C0A:0000040A;2C0A:00000409</InputLocale>
            <SystemLocale>es-AR</SystemLocale>
            <UILanguage>es-ES</UILanguage>
            <UILanguageFallback>en-US</UILanguageFallback>
            <UserLocale>es-AR</UserLocale>
        </component>
   [...]

Keyboard Identifiers:

0000040A -> Spanish
00000409 -> United States - English

Source: https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/windows-language-pack-default-values

Default Input Profiles:

Spanish - Argentina     es-AR: Latin American (2c0a:0000080a)

Source: https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/default-input-locales-for-windows-language-packs

According to that article, the default keyboard will get added for the UserLocale (even if not specified in InputLocale in the unattend file, apparently). So I get 3 keyboards (Spanish, US English, Latin American) instead of 2 like I want (Spanish, US English).

Is there any way to prevent this behavior?


EDIT:

I ended up writing a script to re-set the keyboards. It’s too ugly to post since it’s a mix of batch and powershell (which I need to learn properly some day), but the gist of it is:

  1. Set the keyboards for the current user using Set-WinUserLanguageList
  2. Under HKCUControl PanelInternational in the registry, replace the contents of User Profile System Backup with those of User Profile. I found out if you don’t do this, the changes can get reverted under unknown circumstances.
  3. Under HKCU, copy the following keys: Keyboard Layout, Control PanelInternational, Control PanelInput Method and SoftwareMicrosoftCTF to the accounts (under HKEY_USERS): DEFAULT (hive needs to be loaded from %SYSTEMDRIVE%UsersDefaultntuser.dat), .DEFAULT, S-1-5-19 and S-1-5-20
    This is what Control Panel > Region > Administrative > Copy Settings > Welcome screen and system accounts | New User Accounts does, or at least it has the same effect.

Add your own answers!

Related Questions

Linux systemd: remove slice

1  Asked on September 20, 2020 by mike-s

   

Local subnet behind Tinc VPN not reachable

0  Asked on September 20, 2020 by user3786071

       

Running FlexLM License Server in a Docker Container

1  Asked on September 19, 2020 by gogators

   

Hyper V VM restarting in a loop – How to see VM output?

0  Asked on September 16, 2020 by maralc

   

AWS service like ansible

1  Asked on September 16, 2020 by exeral

   

Compress several files with different names

2  Asked on September 14, 2020 by snowdembr

 

systemd networkd is restarted after systemctl stop

1  Asked on September 14, 2020 by barisdad

   

Issue with HAProxy 2.0.7 setup with tproxy on Centos-7

0  Asked on September 13, 2020 by shailendra-pratap-singh

         

Local install of powershell instead of https://shell.azure.com?

1  Asked on September 13, 2020 by bruce-adams

   

puppet master is not executing autosign script

0  Asked on September 12, 2020 by nick-g

     

Varnish 404 error every few hours

1  Asked on September 11, 2020 by wpdeve

   

Thunderbird can’t connect to my mail server

3  Asked on September 3, 2020 by mustafa-chelik

       

Ask a Question

Get help from others!

© 2023 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP