I have been trying to capture an image of a Windows 10 Pro x64. I get the error message Sysprep was not able to validate Windows Installation
and a report with errors as pasted below. I have about 20 Surfaces 4 Pro to deploy the image to.
The errors:
2017-08-08 12:38:35, Error SYSPRP Package
89006A2E.AutodeskSketchBook_1.5.2.0_x64__tf1gferkr813w was installed
for a user, but not provisioned for all users. This package will not
function properly in the sysprep image.2017-08-08 12:38:35, Error SYSPRP Failed to remove
apps for the current user: 0x80073cf2.2017-08-08 12:38:35, Error SYSPRP Exit code of
RemoveAllApps thread was 0x3cf2.2017-08-08 12:38:35, Error [0x0f0082] SYSPRP
ActionPlatform::LaunchModule: Failure occurred while executing
'SysprepGeneralizeValidate' from C:\Windows\System32\AppxSysprep.dll;
dwRet = 0x3cf22017-08-08 12:38:35, Error SYSPRP
SysprepSession::Validate: Error in validating actions from
C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml; dwRet = 0x3cf22017-08-08 12:38:35, Error SYSPRP
RunPlatformActions:Failed while validating SysprepSession actions;
dwRet = 0x3cf22017-08-08 12:38:35, Error [0x0f0070] SYSPRP RunExternalDlls:An
error occurred while running registry sysprep DLLs, halting sysprep
execution. dwRet = 0x3cf22017-08-08 12:38:35, Error [0x0f00d8] SYSPRP WinMain:Hit failure
while pre-validate sysprep generalize internal providers; hr =
0x80073cf2
Best Answer
The first line of that error log is the key. Microsoft has a support article describing this problem. First, you need to uninstall the Universal Windows Platform app mentioned in the error. To do that, search for it in the Start menu (it's probably called something along the lines of "Autodesk SketchBook"), and if it's found, right-click it and choose Uninstall. Reboot, and try to run Sysprep again.
If that doesn't help, run this command in an elevated PowerShell prompt:
Look at the
PackageUserInformation
property. If any users have the packageInstalled
, destroy the user account if it is not needed, otherwise log in as the user and uninstall it. If you can't do that, use this command to remove the package for all users:Reboot and try again.
If Sysprep still refuses to continue, you need to unprovision the package (that Microsoft article says that Sysprep "will also fail if an all-user package that's provisioned into the image was updated by one of the users on this reference computer"):
You might also check the log file again if the failure remains - Sysprep might start complaining about a different package that also needs to be removed.