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?

Manga Lee
  • 1,343
  • 3
  • 16
  • 21

3 Answers3

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.

YorSubs
  • 669
  • 7
  • 23
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.

John
  • 46,167
  • 4
  • 33
  • 54
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.

harrymc
  • 455,459
  • 31
  • 526
  • 924