How to resolve Windows Sandbox initialization error (0x80070002) on Win 11 24H2

Trifnix08 5 Reputation points
2025-01-26T21:50:55.33+00:00

After launching Windows Sandbox, an error comes up saying it failed to initialize and could not find a specified file (0x80070002). I have already tried the following methods I found on the Internet:

  1. DISM /Online /Cleanup-Image /RestoreHealth
  2. sfc /scannow
  3. bcdedit.exe /set hypervisorlaunchtype auto
  4. Disabling and reactivating Windows Sandbox and Hyper-V multiple times
  5. Setting the time and date; reverted RealTimeIsUniversal back to 0 and deleted the key

Additionally, searching the PC for *.wsb files or sandbox.vhdx brings up no results, and changing the language pack to English did not help.

Build: 26100.2894User's image

Hyper-V
Hyper-V
A Windows technology providing a hypervisor-based virtualization solution enabling customers to consolidate workloads onto a single server.
2,812 questions
{count} vote

1 answer

Sort by: Most helpful
  1. Ian Xue 39,286 Reputation points Microsoft Vendor
    2025-01-28T06:06:35.08+00:00

    Hi Trifnix08,

    Thanks for your post. There is a possibility that the feature is corrupted or not set up properly. I would advise you to disable Windows Sandbox first and then enable it. Please follow the steps mentioned below:

    1. Open Control Panel.
    2. Then click on all Control Panel Items.
    3. Then click on Programs and features.
    4. Then on the left hand side, click on Turn Windows features on or off.
    5. Then uncheck the option: Windows Sandbox.
    6. Then restart your computer.
    7. After restart, please enable it and check if the sandbox is working.

    Also make sure that you meet all the requirements for Windows Sandbox | Microsoft Learn

    Best Regards,

    Ian Xue


    If the Answer is helpful, please click "Accept Answer" and upvote it.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.