Sysprep Exit code of RemoveAllApps thread was 0x3cf2.

hello,

i'm going insane about creating a new machine template for deployment


When running sysprep i it breaks with the following error:

2019-03-06 11:38:14, Error                 SYSPRP Package Microsoft.RemoteDesktop_10.1.1088.0_x86__8wekyb3d8bbwe was installed for a user, but not provisioned for all users. This package will not function properly in the sysprep image.

2019-03-06 11:38:14, Error                 SYSPRP Failed to remove apps for the current user: 0x80073cf2.

2019-03-06 11:38:14, Error                 SYSPRP Exit code of RemoveAllApps thread was 0x3cf2.

2019-03-06 11:38:14, Error                 SYSPRP ActionPlatform::LaunchModule: Failure occurred while executing 'SysprepGeneralizeValidate' from C:\Windows\System32\AppxSysprep.dll; dwRet = 0x3cf2

2019-03-06 11:38:14, Error                 SYSPRP SysprepSession::Validate: Error in validating actions from C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml; dwRet = 0x3cf2

2019-03-06 11:38:14, Error                 SYSPRP RunPlatformActions:Failed while validating Sysprep session actions; dwRet = 0x3cf2

2019-03-06 11:38:14, Error      [0x0f0070] SYSPRP RunExternalDlls:An error occurred while running registry sysprep DLLs, halting sysprep execution. dwRet = 0x3cf2

2019-03-06 11:38:14, Error      [0x0f00d8] SYSPRP WinMain:Hit failure while pre-validate sysprep generalize internal providers; hr = 0x80073cf2

I have tried :

Removed all users under advanced system settings

then in random order.:

Remove-AppxPackage -Package Microsoft.RemoteDesktop_10.1.1088.0_x86__8wekyb3d8bbwe

Remove-AppxProvisionedPackage -Online -PackageName Microsoft.RemoteDesktop_10.1.1088.0_x86__8wekyb3d8bbwe

get-appxprovisionedpackage -online | remove-appxprovisionedpackage -online

Remove-AppxProvisionedPackage -Online -PackageName Microsoft.RemoteDesktop_10.1.1088.0_x86__8wekyb3d8bbwe

Rebooted between. NOTHING works where i'm i going wrong it almost seems like the AppxPackage cant be removed.?

try to remove  packages  by dism tool mounting  install.wim   image/

once completed  you can unmount and optimize.

before  generalisation image , boot in audit mode  and then do YOUR  settings.

One  way is there to remove  apps , add removal packages  unattended.xml sheets .

More information visit this page

https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/modify-an-image

use  ccleaner  software ,  remove  packages 

https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/modify-an-image

I am working as a mathematics lecturer at PU College.
Windows11_Pro_24H2_buildno_26100.3194_MS. 2021_C2R_2501_v18429.20158_Intel_i5_13500_Nvidia3060_12GB_GDDR6_RAM_64GB_5600_Storage _9.5TB.

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

 
 

Question Info


Last updated March 18, 2025 Views 14,008 Applies to: