Então, estou quase desistindo. Tentei todas as soluções que o Google e o Microsoft Learn tinham a oferecer, mas nada funcionou.
Estou tentando executar o Sysprep para uma instalação limpa do Windows 11 Education 24H2 (todas as atualizações do Windows estão instaladas), mas sempre falha devido a este erro:
Error SYSPRP Package Microsoft.DesktopAppInstaller_1.25.340.0_x64__8wekyb3d8bbwe was installed for a user, but not provisioned for all users. This package will not function properly in the sysprep image.
Error SYSPRP Failed to remove apps for the current user: 0x80073cf2.
Error SYSPRP Exit code of RemoveAllApps thread was 0x3cf2.
Error SYSPRP ActionPlatform::LaunchModule: Failure occurred while executing 'SysprepGeneralizeValidate' from C:\Windows\System32\AppxSysprep.dll; dwRet = 0x3cf2
Error SYSPRP SysprepSession::Validate: Error in validating actions from C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml; dwRet = 0x3cf2
Error SYSPRP RunPlatformActions:Failed while validating Sysprep session actions; dwRet = 0x3cf2
Error [0x0f0070] SYSPRP RunDlls:An error occurred while running registry sysprep DLLs, halting sysprep execution. dwRet = 0x3cf2
Error [0x0f00d8] SYSPRP WinMain:Hit failure while pre-validate sysprep generalize internal providers; hr = 0x80073cf2
O que eu já tentei:
- Cabo de rede desconectado antes do Sysprepping
- Nenhum outro usuário jamais foi logado
- Executei este script de desprovisionamento: (já havia um erro: ele não pode excluir este DesktopInstaller)
$aProvPackages=@(Get-AppxProvisionedPackage -Online).NomeDoPacote
Obter-AppxPackage -TodosUsuários | ?{ -não ($aProvPackages -contém $ .PackageFullName ) } | %{escrever-host $ ;Remover-AppxPackage -TodosUsuários -Pacote $_}
Eu também tentei todos esses PS-Prompts: (todos me deram erros, nenhum conseguiu excluir o DesktopAppInstaller
Obter-AppxPackage -AllUsers Microsoft.DesktopAppInstaller | Remover-AppxPackage -AllUsers
Obter-AppxPackage -AllUsers Microsoft.DesktopAppInstaller | Remover-AppxPackage
Obter-AppxPackage -Nome Microsoft.DesktopAppInstaller | Remover-AppxPackage
Obter-AppxProvisionedPackage -Online | Onde-Objeto {$_.DisplayName -eq "Microsoft.DesktopAppInstaller"} | Remover-AppxProvisionedPackage -Online
Obter-AppxProvisionedPackage -Online | Onde-Objeto NomeDeExibição -eq "Microsoft.DesktopAppInstaller" | Remover-AppxProvisionedPackage -Online
Obter-AppxPackage microsoft.widgets | remover-appxpackage
Obter-AppxPackage -AllUsers | Remover-AppxPackage
Obter-AppxProvisionedPackage -Online | Remover-AppxProvisionedPackage -Online Remover-AppxPackage -PackageFullName Microsoft.DesktopAppInstaller_1.25.340.0_x64__8wekyb3d8bbwe -AllUsers
Remover-AppxProvisionedPackage -Online -NomeDoPacote Microsoft.DesktopAppInstaller_1.25.340.0_x64__8wekyb3d8bbwe
"Desativar experiências do consumidor da Microsoft" definido como habilitado
"Não sugerir conteúdo de terceiros no Windows Spotlight" definido como habilitado
Meu arquivo autônomo deve estar bem, verifiquei com o ChatGPT
Esse é o comando que executo para o sysprep com privilégios de administrador
c:\windows\system32\sysprep\sysprep.exe /oobe /generalize /unattend:c:\windows\system32\sysprep\unattend.xml /shutdown
Também adicionei isso ao arquivo unattend.xml: SkipAppxRemoval true /SkipAppxRemoval
Faço isso há mais de 20 anos e, com cada novo sistema operacional Windows, surgem novas dificuldades. (Sim, estou começando agora com o Windows 11)
Eu ficaria grato se alguém que já passou por esse problema pudesse responder, porque pesquisar na Internet não vai ajudar.