Quantcast
Channel: Setup Deployment forum
Viewing all articles
Browse latest Browse all 2818

Server 2012R2 Sysprep Fails

$
0
0

I have been attempting to deploy an azure remote app which requires a sysprep'd template image. If I deploy a fresh copy of 2012R2 from a template I have I am able to sysprep the machine just fine.  If I now deploy the same template (Same patches, users, registry settings etc.) then install my application and immediately attempt to sysprep it fails almost instantly. I have been researching for days trying to determine what the cause could be with no success. I know it must be something the application install is mucking with but I cannot determine what.  I have checked/completed the following:

  • HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsNT\CurrentVersion\SoftwareProtectionPlatform\SkipRearm set to 1 to enable multiple syspreps
  • HKEY_LOCAL_MACHINE\SYSTEM\Setup\Status\SysprepStatus\GeneralizationState set to 7
  • HKEY_LOCAL_MACHINE\SYSTEM\Setup\Status\SysprepStatus\CleanupState set to 2
  • Rename C:\windows\System32\sysprep\panther folder
  • Ensure that no upgrade registry key exists (This is not an upgrade)

Below is my setupact log after recreating the panther folder and ensure the setting above are correct.  Any assistance would be greatly appreciated!!

2015-04-23 15:30:17, Info                  SYSPRP ========================================================
2015-04-23 15:30:17, Info                  SYSPRP ===          Beginning of a new sysprep run          ===
2015-04-23 15:30:17, Info                  SYSPRP ========================================================
2015-04-23 15:30:17, Info       [0x0f004d] SYSPRP The time is now 2015-04-23 15:30:17
2015-04-23 15:30:17, Info       [0x0f004e] SYSPRP Initialized SysPrep log at C:\Windows\System32\Sysprep\Panther
2015-04-23 15:30:17, Info       [0x0f0054] SYSPRP ValidateUser:User has required privileges to sysprep machine
2015-04-23 15:30:17, Info       [0x0f007e] SYSPRP FCreateTagFile:Tag file C:\Windows\System32\Sysprep\Sysprep_succeeded.tag does not already exist, no need to delete anything
2015-04-23 15:30:17, Info       [0x0f003d] SYSPRP WinMain:Displaying dialog box for user to choose sysprep mode...
2015-04-23 15:30:22, Info       [0x0f00d7] SYSPRP WinMain:Pre-validing 'cleanup' internal providers.
2015-04-23 15:30:22, Info                  SYSPRP RunExternalDlls:Running platform actions specified in action file for phase 3
2015-04-23 15:30:22, Info       [0x0f00ba] SYSPRP SysprepSession::CreateSession: Successfully created instance with mount path C:, action file C:\Windows\System32\Sysprep\ActionFiles\Cleanup.xml, and mode <null>
2015-04-23 15:30:22, Info                  SYSPRP SysprepSession::Validate: Beginning action execution from C:\Windows\System32\Sysprep\ActionFiles\Cleanup.xml
2015-04-23 15:30:22, Info                  SYSPRP ActionPlatform::GetStringValue: Getting REG_SZ value SysprepMode under key HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Setup\Sysprep
2015-04-23 15:30:22, Info                  SYSPRP ActionPlatform::GetValue: Getting value SysprepMode under key HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Setup\Sysprep
2015-04-23 15:30:22, Warning               SYSPRP ActionPlatform::GetValue: Error from RegQueryValueEx on value SysprepMode under key HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Setup\Sysprep; dwRet = 0x2
2015-04-23 15:30:22, Info                  SYSPRP SysprepSession::CreateXPathForSelection: Sysprep mode in registry is <null>
2015-04-23 15:30:22, Info                  SYSPRP ActionPlatform::GetStringValue: Getting REG_SZ value PROCESSOR_ARCHITECTURE under key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment
2015-04-23 15:30:22, Info                  SYSPRP ActionPlatform::GetValue: Getting value PROCESSOR_ARCHITECTURE under key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment
2015-04-23 15:30:22, Info                  SYSPRP SysprepSession::CreateXPathForSelection: Processor architecture in registry is AMD64
2015-04-23 15:30:22, Info       [0x0f0080] SYSPRP ActionPlatform::LaunchModule: Found 'Sysprep_Clean_Validate_Opk' in C:\Windows\System32\spopk.dll; executing it
2015-04-23 15:30:23, Error      [0x0f00b0] SYSPRP spopk.dll:: Failed to query pending CBS operations; hr = 0x80070543[gle=0x000003f0]
2015-04-23 15:30:23, Error      [0x0f0082] SYSPRP ActionPlatform::LaunchModule: Failure occurred while executing 'Sysprep_Clean_Validate_Opk' from C:\Windows\System32\spopk.dll; dwRet = 0x543[gle=0x000003f0]
2015-04-23 15:30:23, Error                 SYSPRP SysprepSession::Validate: Error in validating actions from C:\Windows\System32\Sysprep\ActionFiles\Cleanup.xml; dwRet = 0x543
2015-04-23 15:30:23, Error                 SYSPRP RunPlatformActions:Failed while validating SysprepSession actions; dwRet = 0x543
2015-04-23 15:30:23, Error      [0x0f0070] SYSPRP RunExternalDlls:An error occurred while running registry sysprep DLLs, halting sysprep execution. dwRet = 0x543
2015-04-23 15:30:23, Error      [0x0f00d8] SYSPRP WinMain:Hit failure while pre-validate sysprep cleanup internal providers; hr = 0x80070543
2015-04-23 15:32:48, Info       [0x0f0052] SYSPRP Shutting down SysPrep log
2015-04-23 15:32:48, Info       [0x0f004d] SYSPRP The time is now 2015-04-23 15:32:48


Viewing all articles
Browse latest Browse all 2818

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>