Issue capturing Windows 10 1607 with latest updates

Hi,

I’m trying to capture an updated windows 10 image (installed all current windows updates), but it’s failing during sysprep.

The setuperr.log says: 2017-04-24 13:58:57, Error [0x0606ae] IBS [SetupCl library] Required profile hive does not exist: [??\D:\WINDOWS\system32\config\systemprofile\NTUSER.DAT].

I already uninstalled the Windows Store-based applications before attempting to capture, but no change.

Anyone?

I’m running Bigfix 9.2.6.94 on OSD 7.1.120.29034

Hello,
maybe you are reporting the content of setuperr.log in C:\Windows\Panther that is related to installation of current Windows instance. Could you please report the content of the setuperr.log in C:\Windows\System32\sysprep\Panther if the failure of the capture is due to a sysprep failure?
Thanks.

If karin’s setuperr.log looks like mine, it would have the following content:

-Begin-
2017-05-17 12:37:56, Error SYSPRP Package Microsoft.3DBuilder_11.0.47.0_x64__8wekyb3d8bbwe was installed for a user, but not provisioned for all users. This package will not function properly in the sysprep image.
2017-05-17 12:37:56, Error SYSPRP Failed to remove apps for the current user: 0x80073cf2.
2017-05-17 12:37:56, Error SYSPRP Exit code of RemoveAllApps thread was 0x3cf2.
2017-05-17 12:37:56, Error [0x0f0082] SYSPRP ActionPlatform::LaunchModule: Failure occurred while executing ‘SysprepGeneralizeValidate’ from C:\Windows\System32\AppxSysprep.dll; dwRet = 0x3cf2
2017-05-17 12:37:56, Error SYSPRP SysprepSession::Validate: Error in validating actions from C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml; dwRet = 0x3cf2
2017-05-17 12:37:56, Error SYSPRP RunPlatformActions:Failed while validating SysprepSession actions; dwRet = 0x3cf2
2017-05-17 12:37:56, Error [0x0f0070] SYSPRP RunExternalDlls:An error occurred while running registry sysprep DLLs, halting sysprep execution. dwRet = 0x3cf2
2017-05-17 12:37:56, Error [0x0f00d8] SYSPRP WinMain:Hit failure while pre-validate sysprep generalize internal providers; hr = 0x80073cf2
-End-

Based on another article, elsewhere, we tried unprovisioning all the Appx’s and removing the user account other than the Administrator and we got the following setuperr.log content:

-Begin-
2017-05-17 16:23:25, Error SYSPRP Package Microsoft.StorePurchaseApp_1.0.45.0_x64__8wekyb3d8bbwe was installed for a user, but not provisioned for all users. This package will not function properly in the sysprep image.
2017-05-17 16:23:25, Error SYSPRP Failed to remove apps for the current user: 0x80073cf2.
2017-05-17 16:23:25, Error SYSPRP Exit code of RemoveAllApps thread was 0x3cf2.
2017-05-17 16:23:25, Error [0x0f0082] SYSPRP ActionPlatform::LaunchModule: Failure occurred while executing ‘SysprepGeneralizeValidate’ from C:\Windows\System32\AppxSysprep.dll; dwRet = 0x3cf2
2017-05-17 16:23:25, Error SYSPRP SysprepSession::Validate: Error in validating actions from C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml; dwRet = 0x3cf2
2017-05-17 16:23:25, Error SYSPRP RunPlatformActions:Failed while validating SysprepSession actions; dwRet = 0x3cf2
2017-05-17 16:23:25, Error [0x0f0070] SYSPRP RunExternalDlls:An error occurred while running registry sysprep DLLs, halting sysprep execution. dwRet = 0x3cf2
2017-05-17 16:23:25, Error [0x0f00d8] SYSPRP WinMain:Hit failure while pre-validate sysprep generalize internal providers; hr = 0x80073cf2
-End-

Based upon the setupact.log, I would assume that BitLocker is not the issue, either. I’ll post that info, too, so you can look at that, as well:

-Begin-
2017-05-17 16:23:25, Info SYSPRP ========================================================
2017-05-17 16:23:25, Info SYSPRP === Beginning of a new sysprep run ===
2017-05-17 16:23:25, Info SYSPRP ========================================================
2017-05-17 16:23:25, Info [0x0f004d] SYSPRP The time is now 2017-05-17 16:23:25
2017-05-17 16:23:25, Info [0x0f004e] SYSPRP Initialized SysPrep log at C:\Windows\system32\sysprep\Panther
2017-05-17 16:23:25, Info [0x0f0054] SYSPRP ValidateUser:User has required privileges to sysprep machine
2017-05-17 16:23:25, Info [0x0f007e] SYSPRP FCreateTagFile:Tag file C:\Windows\system32\sysprep\Sysprep_succeeded.tag does not already exist, no need to delete anything
2017-05-17 16:23:25, Info [0x0f005f] SYSPRP ParseCommands:Found supported command line option 'GENERALIZE’
2017-05-17 16:23:25, Info [0x0f005f] SYSPRP ParseCommands:Found supported command line option 'OOBE’
2017-05-17 16:23:25, Info [0x0f005f] SYSPRP ParseCommands:Found supported command line option 'SHUTDOWN’
2017-05-17 16:23:25, Info [0x0f005f] SYSPRP ParseCommands:Found supported command line option 'UNATTEND’
2017-05-17 16:23:25, Info [0x0f00d7] SYSPRP WinMain:Pre-validing ‘cleanup’ internal providers.
2017-05-17 16:23:25, Info SYSPRP RunExternalDlls:Running platform actions specified in action file for phase 3
2017-05-17 16:23:25, Info [0x0f00ba] SYSPRP SysprepSession::CreateSession: Successfully created instance with mount path C:, action file C:\Windows\System32\Sysprep\ActionFiles\Cleanup.xml, and mode
2017-05-17 16:23:25, Info SYSPRP SysprepSession::Validate: Beginning action execution from C:\Windows\System32\Sysprep\ActionFiles\Cleanup.xml
2017-05-17 16:23:25, Info SYSPRP ActionPlatform::GetStringValue: Getting REG_SZ value SysprepMode under key HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Setup\Sysprep
2017-05-17 16:23:25, Info SYSPRP ActionPlatform::GetValue: Getting value SysprepMode under key HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Setup\Sysprep
2017-05-17 16:23:25, Warning SYSPRP ActionPlatform::GetValue: Error from RegQueryValueEx on value SysprepMode under key HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Setup\Sysprep; dwRet = 0x2
2017-05-17 16:23:25, Info SYSPRP SysprepSession::CreateXPathForSelection: Sysprep mode in registry is
2017-05-17 16:23:25, Info SYSPRP ActionPlatform::GetStringValue: Getting REG_SZ value PROCESSOR_ARCHITECTURE under key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment
2017-05-17 16:23:25, Info SYSPRP ActionPlatform::GetValue: Getting value PROCESSOR_ARCHITECTURE under key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment
2017-05-17 16:23:25, Info SYSPRP SysprepSession::CreateXPathForSelection: Processor architecture in registry is AMD64
2017-05-17 16:23:25, Info [0x0f0080] SYSPRP ActionPlatform::LaunchModule: Found ‘Sysprep_Clean_Validate_Opk’ in C:\Windows\System32\spopk.dll; executing it
2017-05-17 16:23:25, Info [0x0f0081] SYSPRP ActionPlatform::LaunchModule: Successfully executed ‘Sysprep_Clean_Validate_Opk’ from C:\Windows\System32\spopk.dll without error
2017-05-17 16:23:25, Info [0x0f00d7] SYSPRP WinMain:Pre-validing ‘generalize’ internal providers.
2017-05-17 16:23:25, Info SYSPRP RunExternalDlls:Running platform actions specified in action file for phase 1
2017-05-17 16:23:25, Info [0x0f00ba] SYSPRP SysprepSession::CreateSession: Successfully created instance with mount path C:, action file C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml, and mode
2017-05-17 16:23:25, Info SYSPRP SysprepSession::Validate: Beginning action execution from C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml
2017-05-17 16:23:25, Info SYSPRP ActionPlatform::GetStringValue: Getting REG_SZ value SysprepMode under key HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Setup\Sysprep
2017-05-17 16:23:25, Info SYSPRP ActionPlatform::GetValue: Getting value SysprepMode under key HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Setup\Sysprep
2017-05-17 16:23:25, Warning SYSPRP ActionPlatform::GetValue: Error from RegQueryValueEx on value SysprepMode under key HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Setup\Sysprep; dwRet = 0x2
2017-05-17 16:23:25, Info SYSPRP SysprepSession::CreateXPathForSelection: Sysprep mode in registry is
2017-05-17 16:23:25, Info SYSPRP ActionPlatform::GetStringValue: Getting REG_SZ value PROCESSOR_ARCHITECTURE under key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment
2017-05-17 16:23:25, Info SYSPRP ActionPlatform::GetValue: Getting value PROCESSOR_ARCHITECTURE under key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment
2017-05-17 16:23:25, Info SYSPRP SysprepSession::CreateXPathForSelection: Processor architecture in registry is AMD64
2017-05-17 16:23:25, Info [0x0f0080] SYSPRP ActionPlatform::LaunchModule: Found ‘ValidateBitLockerState’ in C:\Windows\System32\BdeSysprep.dll; executing it
2017-05-17 16:23:25, Info [0x0f0081] SYSPRP ActionPlatform::LaunchModule: Successfully executed ‘ValidateBitLockerState’ from C:\Windows\System32\BdeSysprep.dll without error
2017-05-17 16:23:25, Info [0x0f0080] SYSPRP ActionPlatform::LaunchModule: Found ‘SysprepGeneralizeValidate’ in C:\Windows\System32\AppxSysprep.dll; executing it
2017-05-17 16:23:25, Info SYSPRP Entering SysprepGeneralizeValidate (Appx) - validating whether all apps are also provisioned.
2017-05-17 16:23:25, Error SYSPRP Package Microsoft.StorePurchaseApp_1.0.45.0_x64__8wekyb3d8bbwe was installed for a user, but not provisioned for all users. This package will not function properly in the sysprep image.
2017-05-17 16:23:25, Error SYSPRP Failed to remove apps for the current user: 0x80073cf2.
2017-05-17 16:23:25, Error SYSPRP Exit code of RemoveAllApps thread was 0x3cf2.
2017-05-17 16:23:25, Error [0x0f0082] SYSPRP ActionPlatform::LaunchModule: Failure occurred while executing ‘SysprepGeneralizeValidate’ from C:\Windows\System32\AppxSysprep.dll; dwRet = 0x3cf2
2017-05-17 16:23:25, Error SYSPRP SysprepSession::Validate: Error in validating actions from C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml; dwRet = 0x3cf2
2017-05-17 16:23:25, Error SYSPRP RunPlatformActions:Failed while validating SysprepSession actions; dwRet = 0x3cf2
2017-05-17 16:23:25, Error [0x0f0070] SYSPRP RunExternalDlls:An error occurred while running registry sysprep DLLs, halting sysprep execution. dwRet = 0x3cf2
2017-05-17 16:23:25, Error [0x0f00d8] SYSPRP WinMain:Hit failure while pre-validate sysprep generalize internal providers; hr = 0x80073cf2
2017-05-17 16:23:33, Info [0x0f0052] SYSPRP Shutting down SysPrep log
2017-05-17 16:23:33, Info [0x0f004d] SYSPRP The time is now 2017-05-17 16:23:33
-End-

I hope somebody can make heads or tales of what needs to be done to correct this issue for us… Thanks, in advance!

Hi.
Sysprep does not work on Windows 10 if some application is installed not for all user.
This related to a microsoft behavior. To identify all applications before running Sysprep, you can proceed as follows:

  1. To list the problematic applications, from a powershell prompt
    Get-AppxPackage -AllUsers | Where Name -Like “”
  2. After looking at the applications, you can manually remove them or, if you prefer to remove them all at once, the following command can be used at a powershell prompt
    Get-AppxPackage -AllUsers | Where Name -Like “” | Remove-AppxPackage
    Thanks