2

There are some settings in the registry that can require a reboot before they take effect. Changing these settings in a Windows Sandbox and rebooting will not work since they will be reset when the sandbox starts up again. How can I run Windows 10 Sandbox with pre-configured registry keys?

3 Answers 3

2

You can achieve this by following the tutorial here. https://www.systanddeploy.com/2021/08/how-to-customize-default-windows.html

In a nutshell:

  1. Mount the Windows Sandbox .vhdx.

  2. Open regedit

  3. Go to HKLM

  4. Click on File

  5. Click on Load hive

  6. Browse E:\Files\Users\WDAGUtilityAccount\ntuser.dat

  7. Type a name like 'test'

  8. Change what you want

  9. Click on File

  10. Click on Unload hive

When you load the Sandbox, your reboot changes will be included.

1
  • 1
    In the latest windows (version 22H2), There's no BaseLayer.vhdx in here C:\ProgramData\Microsoft\Windows\Containers\BaseImages\GUID. Need a workaround for this Nov 11, 2023 at 9:50
0

Sandbox goes away at every restart. That is the Sandbox design and I have not seen any changes to it. It is designed to be completely temporary.

If you need a degree of permanence, consider a virtual machine. Hyper-V should come with the machine you have if Sandbox is running.

0

Windows Sandbox does not persist beyond a reboot.

If you wish a persistent sandbox, use the free and open-source Sandboxie.

You should note that any changes to Windows that require a reboot are useless, since the reboot will boot the unmodified Windows. Whether the changes done in the sandbox will have any effect, this depends only on the nature of the changes, so the newly installed features may not be usable.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .