microsoft / Windows-Sandbox

Disposable, secure and lightweight Windows Desktop Environment
https://docs.microsoft.com/en-us/windows/security/threat-protection/windows-sandbox/windows-sandbox-overview
MIT License
364 stars 49 forks source link

[Bug]: Error installing Windows Sandbox on Windows 11 (0x80070005 - E_ACCESSDENIED) #48

Closed dperez83 closed 1 month ago

dperez83 commented 4 months ago

Windows Sandbox version

No response

Windows build number

Microsoft Windows [Version 10.0.26100.1297]

Other software

No response

Steps to reproduce the bug

Install Windows Sandbox

Expected result

Windows Sandbox installed

Actual result

Error installing see following image: error

C:\Windows\Logs\CBS\CBS.log


2024-07-29 13:46:42, Info                  CBS    Failed to move package manifest '\\?\C:\ProgramData\Microsoft\Windows\Containers\Layers\4183f8c0-709d-46d4-a13a-9243f84fb146\Files\Windows\CbsTemp\12380_15046\Microsoft-Windows-Gdi32Full-Package~31bf3856ad364e35~amd64~~10.0.26100.1150.mum' to store: \\?\C:\ProgramData\Microsoft\Windows\Containers\Layers\4183f8c0-709d-46d4-a13a-9243f84fb146\Files\Windows\Servicing\Packages\Microsoft-Windows-Gdi32Full-Package~31bf3856ad364e35~amd64~~10.0.26100.1150.mum [HRESULT = 0x80070005 - E_ACCESSDENIED]
2024-07-29 13:46:42, Info                  CBS    Failed to stage package manifest. [HRESULT = 0x80070005 - E_ACCESSDENIED]
2024-07-29 13:46:42, Info                  CBS    Failed to add package. [HRESULT = 0x80070005 - E_ACCESSDENIED]
2024-07-29 13:46:42, Info                  CBS    Failed to persist package: Microsoft-Windows-Gdi32Full-Package~31bf3856ad364e35~amd64~~10.0.26100.1150 [HRESULT = 0x80070005 - E_ACCESSDENIED]
2024-07-29 13:46:42, Info                  CBS    Failed to update states and store all resolved packages. [HRESULT = 0x80070005 - E_ACCESSDENIED]
2024-07-29 13:46:42, Info                  CBS    Perf: Resolve chain complete.
2024-07-29 13:46:42, Info                  CSI    0000000c Direct SIL provider: Number of files opened: 62137.
2024-07-29 13:46:42, Info                  CBS    Failed to resolve execution chain. [HRESULT = 0x80070005 - E_ACCESSDENIED]
2024-07-29 13:46:42, Info                  CSI    0000000d Perf: LRU Cache Clear @0x245469a5d20
2024-07-29 13:46:42, Info                  CSI    0000000e Perf: LRU Cache FileData Stats
2024-07-29 13:46:42, Info                  CSI    0000000f Perf: -----------------------------------------------
2024-07-29 13:46:42, Info                  CSI    00000010 Perf: | Hits | Active | Reserved | Total | Commit Size
2024-07-29 13:46:42, Info                  CSI    00000011 Perf: -----------------------------------------------
2024-07-29 13:46:42, Info                  CSI    00000012 Perf: | 0    | 0 | 17561 | 17561 | 0 KiB
2024-07-29 13:46:42, Info                  CSI    00000013 Perf: -----------------------------------------------
2024-07-29 13:46:42, Info                  CSI    00000014 Perf: | 0    | 0 | 17561 | 17561     | 0 KiB
2024-07-29 13:46:42, Info                  CSI    00000015 Perf: LRU Cache Manifest Stats
2024-07-29 13:46:42, Info                  CSI    00000016 Perf: -----------------------------------------------
2024-07-29 13:46:42, Info                  CSI    00000017 Perf: | Hits | Active | Reserved | Total | Commit Size
2024-07-29 13:46:42, Info                  CSI    00000018 Perf: -----------------------------------------------
2024-07-29 13:46:42, Info                  CSI    00000019 Perf: | 0    | 17561 | 0 | 17561 | 375366 KiB
2024-07-29 13:46:42, Info                  CSI    0000001a Perf: -----------------------------------------------
2024-07-29 13:46:42, Info                  CSI    0000001b Perf: | 0    | 17561 | 0 | 17561     | 375366 KiB
2024-07-29 13:46:42, Info                  CSI    0000001c Perf: LRU Cache FileData Finds: 0, Hits: 0, Misses: 0, Commit Size: 0 KiB
2024-07-29 13:46:42, Info                  CSI    0000001d Perf: LRU Cache Manifest Finds: 17561, Hits: 0, Misses: 17561, Commit Size: 375366 KiB
2024-07-29 13:46:42, Info                  CSI    0000001e Perf: LRU Cache Entries: 17561, Evictions: 0, Commit Size: 375366 KiB
2024-07-29 13:46:42, Error                 CBS    Failed to process single phase execution. [HRESULT = 0x80070005 - E_ACCESSDENIED]

Included System Information

System has proper permissions on the C:\ProgramData\Microsoft\Windows\Containers\Layers folder image

kavyamsft commented 4 months ago

Thanks for reaching out! What processor are you using?

dperez83 commented 4 months ago

Thanks for reaching out! What processor are you using?

Intel i7-1165G7

kavyamsft commented 2 months ago

Are you still seeing this issue? Are you on a device that is controlled by group policy or managed by your organization?

dperez83 commented 2 months ago

Yes still, personal device.

After the Windows 11 24H2 update 26100.1742 the error changed to :

Startup: Failed to process advanced operation queue, startupPhase: 0. A rollback transaction will be created. [HRESULT = 0x800f0922 - CBS_E_INSTALLERS_FAILED]

2024-09-18 21:38:41, Info                  CSI    0000008f The queue has completed running, and AI failures have occured.
2024-09-18 21:38:41, Info                  CSI    00000090 ==Error Summary Start==
2024-09-18 21:38:41, Error                 CSI    00000091 (F) Installer: Container Installer   Binary Name: containerai.dll    ErrorCode: 80070005 Phase: 39   Mode: Delta Component: NONE[gle=0x80004005]
2024-09-18 21:38:41, Info                  CSI    00000092 ==Error Summary End==
2024-09-18 21:38:41, Error                 CBS    Startup: Failed to process advanced operation queue, startupPhase: 0.  A rollback transaction will be created. [HRESULT = 0x800f0922 - CBS_E_INSTALLERS_FAILED]
2024-09-18 21:38:41, Info                  CBS    Setting ExecuteState key to: CbsExecuteStateInitiateRollback | CbsExecuteStateFlagAdvancedInstallersFailed
2024-09-18 21:38:41, Info                  CBS    SetProgressMessage: progressMessageStage: -1, ExecuteState: CbsExecuteStateInitiateRollback | CbsExecuteStateFlagAdvancedInstallersFailed, SubStage: 0
2024-09-18 21:38:41, Info                  CBS    Progress: UI message updated. Operation type: Foundation. Stage: 1 out of 1. Rollback.
2024-09-18 21:38:41, Info                  CBS    Setting original failure status: 0x800f0922, last forward execute state: CbsExecuteStateResolvePending
2024-09-18 21:38:41, Info                  CBS    Attempting to remove poqexec from SetupExecute
2024-09-18 21:38:41, Info                  CBS    Removed poqexec from SetupExecute.
2024-09-18 21:38:41, Info                  CBS    Configured poqexec to not pend to SetupExecute.
2024-09-18 21:38:41, Error                 CSI    00000093 (F) Installer: Container Installer   Binary Name: containerai.dll    ErrorCode: 80070005 Phase: 39   Mode: Delta Component: NONE[gle=0x80004005]
2024-09-18 21:38:41, Info                  CSI    00000094 Rolling back transactions...
dperez83 commented 2 months ago

No luck with the 26100.1876 released today.

2024-09-23 23:49:19, Info                  CBS    Failed to move package manifest '\\?\C:\ProgramData\Microsoft\Windows\Containers\Layers\4de2d44e-26f3-470d-8d3f-3fc400b79805\Files\Windows\CbsTemp\12256_16546\Microsoft-Windows-Security-SPP-Component-SKU-IoTEnterprise-License-Package~31bf3856ad364e35~amd64~~10.0.26100.1876.mum' to store: \\?\C:\ProgramData\Microsoft\Windows\Containers\Layers\4de2d44e-26f3-470d-8d3f-3fc400b79805\Files\Windows\Servicing\Packages\Microsoft-Windows-Security-SPP-Component-SKU-IoTEnterprise-License-Package~31bf3856ad364e35~amd64~~10.0.26100.1876.mum [HRESULT = 0x80070005 - E_ACCESSDENIED]
2024-09-23 23:49:19, Info                  CBS    Failed to stage package manifest. [HRESULT = 0x80070005 - E_ACCESSDENIED]
2024-09-23 23:49:19, Info                  CBS    Failed to add package. [HRESULT = 0x80070005 - E_ACCESSDENIED]
2024-09-23 23:49:19, Info                  CBS    Failed to persist package: Microsoft-Windows-Security-SPP-Component-SKU-IoTEnterprise-License-Package~31bf3856ad364e35~amd64~~10.0.26100.1876 [HRESULT = 0x80070005 - E_ACCESSDENIED]
2024-09-23 23:49:19, Info                  CBS    Failed to update states and store all resolved packages. [HRESULT = 0x80070005 - E_ACCESSDENIED]
2024-09-23 23:49:19, Info                  CBS    Perf: Resolve chain complete.
2024-09-23 23:49:19, Info                  CSI    0000000c Direct SIL provider: Number of files opened: 62266.
2024-09-23 23:49:19, Info                  CBS    Failed to resolve execution chain. [HRESULT = 0x80070005 - E_ACCESSDENIED]
2024-09-23 23:49:19, Info                  CSI    0000000d Perf: LRU Cache Clear @0x299fd0f65b0
dperez83 commented 2 months ago

Again no luck with the 26100.1882 released today

2024-09-30 23:31:17, Info                  CBS    Failed to move package manifest '\\?\C:\ProgramData\Microsoft\Windows\Containers\Layers\aef1a4a6-522c-4da9-983a-166efe759564\Files\Windows\CbsTemp\11796_16203\Microsoft-Windows-WOWSupport-merged-Package~31bf3856ad364e35~amd64~~10.0.26100.1882.mum' to store: \\?\C:\ProgramData\Microsoft\Windows\Containers\Layers\aef1a4a6-522c-4da9-983a-166efe759564\Files\Windows\Servicing\Packages\Microsoft-Windows-WOWSupport-merged-Package~31bf3856ad364e35~amd64~~10.0.26100.1882.mum [HRESULT = 0x80070005 - E_ACCESSDENIED]
2024-09-30 23:31:17, Info                  CBS    Failed to stage package manifest. [HRESULT = 0x80070005 - E_ACCESSDENIED]
2024-09-30 23:31:17, Info                  CBS    Failed to add package. [HRESULT = 0x80070005 - E_ACCESSDENIED]
2024-09-30 23:31:17, Info                  CBS    Failed to persist package: Microsoft-Windows-WOWSupport-merged-Package~31bf3856ad364e35~amd64~~10.0.26100.1882 [HRESULT = 0x80070005 - E_ACCESSDENIED]
2024-09-30 23:31:17, Info                  CBS    Failed to update states and store all resolved packages. [HRESULT = 0x80070005 - E_ACCESSDENIED]
2024-09-30 23:31:17, Info                  CBS    Perf: Resolve chain complete.
2024-09-30 23:31:17, Info                  CSI    0000000c Direct SIL provider: Number of files opened: 62274.
2024-09-30 23:31:17, Info                  CBS    Failed to resolve execution chain. [HRESULT = 0x80070005 - E_ACCESSDENIED]
kavyamsft commented 2 months ago

We are working with the Windows installation team to understand what's causing your error. Thanks for your patience!

dperez83 commented 1 month ago

I did a fresh Windows 11 24H2 (destroyed all partitions) install and I could install and use the Sandbox.

I am using Windows 11 24H2 Build 26100.2033 and today I have the same problem today installing the 2024-10 Cumulative Update Preview for Windows 11 Version 24H2 for x64-based Systems (KB5044384)

Failed to move package manifest '\\?\C:\ProgramData\Microsoft\Windows\Containers\Layers\8a5c363c-86e4-4cb3-9fda-779e096ac6c6\Files\Windows\CbsTemp\20544_54824515\Microsoft-OneCore-International-WOW64-Package~31bf3856ad364e35~amd64~~10.0.26100.1.mum' to store: \\?\C:\ProgramData\Microsoft\Windows\Containers\Layers\8a5c363c-86e4-4cb3-9fda-779e096ac6c6\Files\Windows\Servicing\Packages\Microsoft-OneCore-International-WOW64-Package~31bf3856ad364e35~amd64~~10.0.26100.1.mum [HRESULT = 0x80070005 - E_ACCESSDENIED]
2024-10-25 00:38:49, Info                  CBS    Failed to move package manifest '\\?\C:\ProgramData\Microsoft\Windows\Containers\Layers\8a5c363c-86e4-4cb3-9fda-779e096ac6c6\Files\Windows\CbsTemp\20544_54824515\Microsoft-OneCore-International-WOW64-Package~31bf3856ad364e35~amd64~~10.0.26100.1.mum' to store: \\?\C:\ProgramData\Microsoft\Windows\Containers\Layers\8a5c363c-86e4-4cb3-9fda-779e096ac6c6\Files\Windows\Servicing\Packages\Microsoft-OneCore-International-WOW64-Package~31bf3856ad364e35~amd64~~10.0.26100.1.mum [HRESULT = 0x80070005 - E_ACCESSDENIED]
2024-10-25 00:38:49, Info                  CBS    Failed to stage package manifest. [HRESULT = 0x80070005 - E_ACCESSDENIED]
2024-10-25 00:38:49, Info                  CBS    Failed to add package. [HRESULT = 0x80070005 - E_ACCESSDENIED]
2024-10-25 00:38:49, Info                  CBS    Failed to persist package: Microsoft-OneCore-International-WOW64-Package~31bf3856ad364e35~amd64~~10.0.26100.1 [HRESULT = 0x80070005 - E_ACCESSDENIED]
2024-10-25 00:38:49, Info                  CBS    Failed to update states and store all resolved packages. [HRESULT = 0x80070005 - E_ACCESSDENIED]
2024-10-25 00:38:49, Info                  CBS    Perf: Resolve chain complete.
2024-10-25 00:38:49, Info                  CSI    0000000c Direct SIL provider: Number of files opened: 62263.
2024-10-25 00:38:49, Info                  CBS    Failed to resolve execution chain. [HRESULT = 0x80070005 - E_ACCESSDENIED]
dperez83 commented 1 month ago

Hello, I just figured out the reason, it's Bitdefender Advanced Threat Protection that blocks the file. I disable it and the installation works.