Sysprep Win10 Failing

hyperbyte
hyperbyte used Ask the Experts™
on
I'm trying to Sysprep a new Windows 10 image that has been built using MDT.  I keep receiving this message:

2017-12-01 09:02:29, Error                 SYSPRP Package 9E2F88E3.Twitter_5.7.1.0_x86__wgeqdkkx372wm was installed for a user, but not provisioned for all users. This package will not function properly in the sysprep image.

2017-12-01 09:02:29, Error                 SYSPRP Failed to remove apps for the current user: 0x80073cf2.

2017-12-01 09:02:29, Error                 SYSPRP Exit code of RemoveAllApps thread was 0x3cf2.

2017-12-01 09:02:29, Error                 SYSPRP ActionPlatform::LaunchModule: Failure occurred while executing 'SysprepGeneralizeValidate' from C:\Windows\System32\AppxSysprep.dll; dwRet = 0x3cf2
2017-12-01 09:02:29, Error                 SYSPRP SysprepSession::Validate: Error in validating actions from C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml; dwRet = 0x3cf2
2017-12-01 09:02:29, Error                 SYSPRP RunPlatformActions:Failed while validating Sysprep session actions; dwRet = 0x3cf2
2017-12-01 09:02:29, Error      [0x0f0070] SYSPRP RunExternalDlls:An error occurred while running registry sysprep DLLs, halting sysprep execution. dwRet = 0x3cf2
2017-12-01 09:02:29, Error      [0x0f00d8] SYSPRP WinMain:Hit failure while pre-validate sysprep generalize internal providers; hr = 0x80073cf2
2017-12-01 09:11:44, Error                 SYSPRP Package 9E2F88E3.Twitter_5.7.1.0_x86__wgeqdkkx372wm was installed for a user, but not provisioned for all users. This package will not function properly in the sysprep image.

2017-12-01 09:11:44, Error                 SYSPRP Failed to remove apps for the current user: 0x80073cf2.

2017-12-01 09:11:44, Error                 SYSPRP Exit code of RemoveAllApps thread was 0x3cf2.

2017-12-01 09:11:44, Error                 SYSPRP ActionPlatform::LaunchModule: Failure occurred while executing 'SysprepGeneralizeValidate' from C:\Windows\System32\AppxSysprep.dll; dwRet = 0x3cf2
2017-12-01 09:11:44, Error                 SYSPRP SysprepSession::Validate: Error in validating actions from C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml; dwRet = 0x3cf2
2017-12-01 09:11:44, Error                 SYSPRP RunPlatformActions:Failed while validating Sysprep session actions; dwRet = 0x3cf2
2017-12-01 09:11:44, Error      [0x0f0070] SYSPRP RunExternalDlls:An error occurred while running registry sysprep DLLs, halting sysprep execution. dwRet = 0x3cf2
2017-12-01 09:11:44, Error      [0x0f00d8] SYSPRP WinMain:Hit failure while pre-validate sysprep generalize internal providers; hr = 0x80073cf2
2017-12-01 09:21:38, Error      [0x0f0073] SYSPRP RunExternalDlls:Not running DLLs; either the machine is in an invalid state or we couldn't update the recorded state, dwRet = 0x1f
2017-12-01 09:21:38, Error      [0x0f00ae] SYSPRP WinMain:Hit failure while processing sysprep cleanup external providers; hr = 0x8007001f
2017-12-01 10:12:13, Error      [0x0f0073] SYSPRP RunExternalDlls:Not running DLLs; either the machine is in an invalid state or we couldn't update the recorded state, dwRet = 0x1f
2017-12-01 10:12:13, Error      [0x0f00ae] SYSPRP WinMain:Hit failure while processing sysprep cleanup external providers; hr = 0x8007001f
2017-12-01 12:32:27, Error      [0x0f0073] SYSPRP RunExternalDlls:Not running DLLs; either the machine is in an invalid state or we couldn't update the recorded state, dwRet = 0x1f
2017-12-01 12:32:27, Error      [0x0f00ae] SYSPRP WinMain:Hit failure while processing sysprep cleanup external providers; hr = 0x8007001f
2017-12-01 12:56:10, Error      [0x0f0073] SYSPRP RunExternalDlls:Not running DLLs; either the machine is in an invalid state or we couldn't update the recorded state, dwRet = 0x1f
2017-12-01 12:56:10, Error      [0x0f00ae] SYSPRP WinMain:Hit failure while processing sysprep cleanup external providers; hr = 0x8007001f
2017-12-01 13:01:43, Error      [0x0f0073] SYSPRP RunExternalDlls:Not running DLLs; either the machine is in an invalid state or we couldn't update the recorded state, dwRet = 0x1f
2017-12-01 13:01:43, Error      [0x0f00ae] SYSPRP WinMain:Hit failure while processing sysprep cleanup external providers; hr = 0x8007001f


Ive tried this: https://support.microsoft.com/en-gb/help/2769827/sysprep-fails-after-you-remove-or-update-windows-store-apps-that-inclu

But Twitter is not listed at all, so I cant remove it.

Please help.  Ive also tried deleting all the accounts except the Local Admin account but I still get the same result.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Last Knight
Distinguished Expert 2018
Commented:
Hi hyperbyte,

In Windows 10, Microsoft Consumer Experience (which is used to push these apps along with others in the future) seems to be the culprit by adding a number of extra apps including Candy Crush Soda Saga, Flipboard, and Twitter to name a few, which appear in the Start menu. I've included two solutions below:

SOLUTION A

Disable Microsoft Consumer Experience via Group Policy Editor
1. Windows key, type gpedit.msc and press Enter.
2. Navigate to Computer Configuration > Administrative Templates > Windows Components > Cloud Content.
3. Double click the entry labelled Turn off Microsoft consumer experience, select Enabled and click OK.

 If it still persists follow below.

SOLUTION B

Open the PowerShell Command w/Admin Rights and execute the follow command:
Get-AppxPackage|Remove-AppxPackage

Open in new window

This should allow the system to remove the Apps that are causing the problem. You will receive also many IssueReports, but this isn't a problem. After that you can capture your image without issue.

Let me know how it goes!

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial