I need to do some mui test, and i need to change the language of the windows sandbox. The problem is that it's not possible to reboot or logout, as it will close and erase the sandbox. In the official documentation there's no mention of this: I wonder if there's a workaround to allow that, for example to modify the master image
Asked
Active
Viewed 1,106 times
1 Answers
1
It is possible to change many settings of the Windows Sandbox.
As Windows Sandbox is a virtual machine that is discarded when closed,
you should modify the base image of the virtual machine itself in its
.vhdx file.
See the article How to customize the default Windows Sandbox (files, folders, registry, wallpaper) without using WSB file.
In a nutshell :
- Mount the VHDX by
stopping the Windows system service "Container Manager Service",
and double-click on
BaseLayer.vhdxinC:\ProgramData\Microsoft\Windows\Containers\BaseImages\GUID - Modify the registry using
regeditmenu File > Load hive to load\Files\Users\WDAGUtilityAccount\ntuser.datand use File > Unload hive when finished.
For all language settings in the registry, see :
- Where in the registry is the language setting for each user stored?
- Windows 10 1809 - Region/language registry keys
- How to delete a keyboard layout in Windows 10
It would perhaps be simpler to setup your Windows to the wanted language and export the registry items of interest, then import these changes to the registry of the base image.
harrymc
- 455,459
- 31
- 526
- 924
-
It works, thanks – Magnetic_dud Jan 07 '23 at 06:05