The IT Department for the library district where I work maintains the computer labs.  Because the users make up a diverse population, we include the Language Bar on every lab PC we deploy. When we were using imaging this wasn’t a problem because every user profile with the Language Bar was included in the build.

Since switching to scripted installations, the inclusion of the Language Bar became a problem.  Not wanting to manually add the Language Bar to each new PC and each user profile, we decided to try adding it to the default User profile, which would then cause all new users to inherit the Language bar settings from the default profile.

The first thing we did was capture the registry key from a machine where the Language Bar was already configured. In the registry, export the following key:

HKEY_CURRENT_USER\Keyboard Layout   --    For this project I called it LanguageBar.reg.


REM Load the default NTUSER.DAT file to a temporary hive.

reg.exe load HKEY_USERS\TEMPUSER "C:\Users\Default\NTUSER.DAT"

REM Inject the registry key to the Default User

reg.exe import ScriptedKeyboard.reg

REM  Unload and save the modified registry file

reg.exe unload HKEY_USERS\TEMPUSER

REM Stop processing this batch file



I named the batch file reghack.bat.  For speed, you can leave out the REM statements….


Place the batch file and the registry file into a zip file for uploading to the K2000.

On the K2000, create an application Post-Install Task to run under Windows. 

For the command line, use:

     start/wait reghack.bat         (where reghack.bat is the name of your batch file.)

This method can also be used for other things you may want to include.