Windows sandbox terminates with the error message 0x8007005, "Access denied"

ma.pa 1 Reputation point
2022-12-08T18:28:31.103+00:00

Hi,
i use Windows Education, 22H2, 19045.2311.

Problem: The Windows sandbox terminates with the error message 0x8007005, "Access denied".

The Windows Event Viewer shows the following errors:

  • Error "0x80070005" with "CreateAppContainerProfile" because registration with the firewall was not possible,
  • Error at "CreateAppContainerProfile" for the AppContainer "onecore\security\gina\profile\profext\appcontainer.cpp Line:1905 cmproxyd-87d138ad-954d-4b98-880a-3ada9dabb585 CmProxyD-87d138ad-954d-4b98-880a-3ada9dabb585": 0x80070005,
  • Error while exiting "Virtual Machine": General error (0x80041001). (Virtual machine ID: "87D138AD-954D-4B98-880A-3ADA9DABB585").

What I have already tried (without any success):

  • took ownership of WindowsSandbox.exe and granted all rights to everyone,
  • dism /online /cleanup-image /scanhealth - dism /online /cleanup-image /checkhealth - dism /online /cleanup-image /restorehealth,
  • sfc /scannow,
  • Hyper-V and windows sandbox uninstalled and reinstalled,
  • the settings of the Network Virtualisation Service. (Startup type: Manual); Virtual hard disk. (Startup type: Manual); Hyper-V Virtual Machine. (Startup type: Manual); Hyper-V Host Computer Service. (Startup type: Manual); Container Manager Services. (Startup type: Automatic) checked and the services started.

Apart from that, I have noticed that the Windows Event Viewer has been displaying AppModel-Runtime errors and DistributedCOM errors frequently lately, but so far they are not noticeable in everyday use.

Can anyone help me?

Hyper-V
Hyper-V
A Windows technology providing a hypervisor-based virtualization solution enabling customers to consolidate workloads onto a single server.
2,550 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. jrburkh 6 Reputation points
    2023-01-08T22:43:45.58+00:00

    I'm not sure if you sorted this out, but I had the same problem and what fixed it for me was to open "Turn Windows features on or off", uncheck Windows Sandbox, then restart. Go back in and re-check Windows Sandbox, then restart.

    Full disclosure, I also installed most, if not all, of the virtualization features at the same time. I did see the above fix from somebody on another forum, so I'm assuming that's what solved it.

    1 person found this answer helpful.

  2. adam khan 0 Reputation points
    2024-02-27T23:14:00.7266667+00:00

    It didnt work, and I have the same issue and error code.

    0 comments No comments