Windows-Sandbox icon indicating copy to clipboard operation
Windows-Sandbox copied to clipboard

[Bug]: Starting Windows Sandbox a second time yields "The connection to the Windows Sandbox environment was lost. Do you want to reconnect? "

Open JensNordenbro opened this issue 11 months ago • 10 comments

Windows Sandbox version

No response

Windows build number

Win32NT 10.0.26200.0 Microsoft Windows NT 10.0.26200.0

Other software

No response

Steps to reproduce the bug

  1. Start Windows Sandbox after reboot.
  2. Close Windows Sandbox session after bussiness done
  3. Start Windows Sandbox

Expected result

  1. Windows Sandbox session is started.

Actual result

On 3 => > error in title.

vCPU set to disabled does not help, this used to help back in the days.

Included System Information

No response

JensNordenbro avatar Dec 22 '25 12:12 JensNordenbro

I get this too on windows education, and it's happened on both 24H2 and 25H2, I haven't been able to find a fix for this yet.

I figured out a weird fix for it, since I have 2 GPUs, a 3060 and a intel 770 (integrated), I just disabled the integrated and I don't get this error anymore

Callan-Mitchell avatar Jan 25 '26 20:01 Callan-Mitchell

I figured out a weird fix for it, since I have 2 GPUs, a 3060 and a intel 770 (integrated), I just disabled the integrated and I don't get this error anymore

@Callan-Mitchell Your trick solved it also for me - thanks for sharing!

wbaeck avatar Feb 06 '26 16:02 wbaeck

I got the same issue. W11 Pro, 25H2, 26200.7840. My rig has 2 x 4090 + integrated AMD Radeon (7950X). Thanks to @Callan-Mitchell I inspected It down and found a different workaround similar in context:

I went to System > Display > Graphics. Then "Add desktop app" -> "C:\WINDOWS\system32\WindowsSandbox.exe"

Once It is added at the Custom settings for applications, select it up and set in the next way:

  1. GPU preference: Power Saving (AMD Radeon(TM) Graphics)
  2. Auto HDR: Off
  3. Optimizations for windowed games: Off

And it just worked. I cant test some smelly executables at my windows sandbox, thank god.

By the way, the above was the very first set of config I tried. Didn't inspect it any further.

Hope It helps, mates.

Best,

backmind avatar Feb 20 '26 22:02 backmind

25H2 26200.8117 just updated today. Reboot to install updates and now my Sandbox, that was working fine before, is exhibiting JensNordenbro's symptoms. Tried the GPU preference setting; no luck. Sandbox loops through; connection lost, reconnect and never opens again.

CorinthCom avatar Apr 01 '26 17:04 CorinthCom

Since the latest Windows updates I'm having the same problem, same symptoms. I also tried the GPU preference, but it didn't work. Sandbox worked perfectly before.

Nico00007566 avatar Apr 06 '26 02:04 Nico00007566

me to, was working no more. F*ck

tomlm avatar Apr 07 '26 16:04 tomlm

I have done lots Of things to fix different issues.

All in all

  1. Repair Windows solved some problems
  2. The following wsb-file content solved some:

<Configuration> <VGpu>disabled</VGpu> <LogonCommand> <Command>powershell -Command "Start-Process PowerShell -ArgumentList '-NoProfile -ExecutionPolicy Bypass -Command Set-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\Control\CI\Policy -Name VerifiedAndReputablePolicyState -Value 0; CiTool.exe -r' -Verb RunAs"</Command> </LogonCommand> </Configuration>

Try at your own risk, I am just saying what worked for me in the total absence of any Microsoft staff...

JensNordenbro avatar Apr 09 '26 19:04 JensNordenbro

I'm so over things in Windows not working and Windows in general being in a perpetual state of brokenness. Unsurprising, no acknowledgement from MSFT on this issue.

knightmeister avatar Apr 30 '26 02:04 knightmeister

The Windows update before the last made my Sandbox work again. The last Windows update then broke it again. Maybe the change with RDP security in the last Windows update was significant?

CorinthCom avatar Apr 30 '26 03:04 CorinthCom

I went to System > Display > Graphics. Then "Add desktop app" -> "C:\WINDOWS\system32\WindowsSandbox.exe"

Once It is added at the Custom settings for applications, select it up and set in the next way:

1. GPU preference: Power Saving (AMD Radeon(TM) Graphics)

2. Auto HDR: Off

3. Optimizations for windowed games: Off

This fixed it, but I set mine to my discrete card. Baffled that this broke the environment, frankly.

Edit: It's random. Sometimes works, sometimes doesn't. Tried with vGPU off, same result. This is beyond broken.

GSTDiandre avatar Jun 03 '26 09:06 GSTDiandre