international settings, keyboard layout, default user, install.wim

This will integrate international settings and default keyboard layout into default user profile.
I guess this is useful if use multiple keyboard layouts or completely out-of-default keyboard layout after sysprep.

Backup your must-have regional settings
reg export "HKCU\Control Panel\International" "%userprofile%\Desktop\HKCU_International.reg"
These are all settings settings under "Formats" tab:
Backup your favorite keyboard configuration under
reg export "HKCU\Keyboard Layout" "%userprofile%\Desktop\HKCU_Keyboard_Layout.reg"
These are all settings under "Keyboards and languages" tab:
Use some text editor and replace all [HKEY_CURRENT_USER\ with [HKEY_USERS\integrate\
Do this for booth files - HKCU_International.reg and HKCU_Keyboard_Layout.reg
Remember to press save button when you done editing!

Copy install.wim to c:\

Create c:\mount directory

Open "Deployment Tools Command Prompt" in "Run as administrator" mode:
Mount install.wim to c:\mount directory:
dism /mount-wim /wimfile:c:\install.wim /index:1 /mountdir:c:\mount
The index in your situation may be different ;)

In the same windows type regedit

Select HKEY_USERS
Go for File -> Load Hive
Open just exactly this file:
c:\mount\Users\Default\NTUSER.DAT
Set the hive name exactly to integrate
Now the hive is loaded. Note the default LocaleName:
Now go for File -> Import and select HKCU_International.reg and HKCU_Keyboard_Layout.reg

Refresh the view and check if the registry values has really changed!

Select the loaded hive name integrate and go for File -> Unload Hive
Confirm you want to unload current key and subkeys:
Close registry editor

Unmount image with:
dism /commit-wim /mountdir:c:\mount

No comments: