Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WinSxS folder cleanup fails on Windows-2022 #27

Open
itsyaboyrooba opened this issue Jan 11, 2023 · 2 comments
Open

WinSxS folder cleanup fails on Windows-2022 #27

itsyaboyrooba opened this issue Jan 11, 2023 · 2 comments

Comments

@itsyaboyrooba
Copy link

Hello!

The Winsxs cleanup in optimize.ps1 fails on win2022 with:

Console:

    qemu.windows-2022-amd64: Error: 0x800f0806
    qemu.windows-2022-amd64:
    qemu.windows-2022-amd64: The operation could not be completed due to pending operations.

Dism.log:
dism.log

I ensured the TrustedInstaller, wuauserv and BITS services are all stopped.

I tried debugging myself but couldn't solve it, any help would be appreciated!

@rgl
Copy link
Owner

rgl commented Jan 11, 2023

Never seen that before. It seems to be a temporary state; can you modify the code to retry the operation? e.g.:

while ($true) {
  Write-Host 'Cleaning up the WinSxS folder...'
  dism.exe /Online /Quiet /Cleanup-Image /StartComponentCleanup /ResetBase
  if ($LASTEXITCODE) {
    Start-Sleep -Seconds 15
  } else {
    break
  }
}

@LordAro
Copy link

LordAro commented Mar 1, 2024

I've just come across this as well, though with Win11 23H2 (full ISO downloaded from Volume Licensing - didn't see any issues with the eval ISO)

No information in any logs about what was going on, but I seem to have found a workaround by splitting optimize.ps1 and inserting a reboot inbetween the initial commands and the subsequent dism commands

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants