Is there a way to set the keyboard languages via the registry?

I need to set some computers to have English (UK) as the primary keyboard language but also have Polish as a secondary. This is only needed for some users though so the plan is to have it run a batch file on login to set it. I currently have batch files running for the users to map the network drives they need and delete the ones they don't.

All I really need to know is where in the registry the keyboard language settings are located, if they are. All I can find is regional options such as system language, currency symbol, date format etc.

You have to jumble with the registry to do so.
Its located in here

HKEY_USERS\.DEFAULT\Keyboard Layout\Preload
Name 1 has the default keyboard value per language.

You can add 2, 3 as well. Then specify the value.

Values can be found here.
HKEY_LOCAL_MACHINE\CurrentControlSet\Keyboard Layout\DosKeybCodes and Keyboard Layouts\
The second one has the associated values with the keys.
For En_UK its 00000809
UK extended 00000452

Polish 00010415
Polish (Programmers) 00000415

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.