1

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

Magnetic_dud
  • 3,580
  • 6
  • 37
  • 54

1 Answers1

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.vhdx in C:\ProgramData\Microsoft\Windows\Containers\BaseImages\GUID
  • Modify the registry using regedit menu File > Load hive to load \Files\Users\WDAGUtilityAccount\ntuser.dat and use File > Unload hive when finished.

For all language settings in the registry, see :

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