Sysprep Error with windows 8.1

I am Trying to sysprep my WIndows 8.1 enterprise (MSDN) and i get the following errors 

2013-01-18 11:12:22, Info                  SYSPRP ========================================================
2013-01-18 11:12:22, Info                  SYSPRP ===          Beginning of a new sysprep run          ===
2013-01-18 11:12:22, Info                  SYSPRP ========================================================
2013-01-18 11:12:22, Info       [0x0f004d] SYSPRP The time is now 2013-01-18 11:12:22
2013-01-18 11:12:22, Info       [0x0f004e] SYSPRP Initialized SysPrep log at C:\Windows\System32\Sysprep\Panther
2013-01-18 11:12:22, Info       [0x0f0054] SYSPRP ValidateUser:User has required privileges to sysprep machine
2013-01-18 11:12:22, Info       [0x0f007e] SYSPRP FCreateTagFile:Tag file C:\Windows\System32\Sysprep\Sysprep_succeeded.tag does not already exist, no need to delete anything
2013-01-18 11:12:22, Info       [0x0f005f] SYSPRP ParseCommands:Found supported command line option 'GENERALIZE'
2013-01-18 11:12:22, Info       [0x0f005f] SYSPRP ParseCommands:Found supported command line option 'OOBE'
2013-01-18 11:12:22, Info       [0x0f005f] SYSPRP ParseCommands:Found supported command line option 'SHUTDOWN'
2013-01-18 11:12:22, Info       [0x0f005f] SYSPRP ParseCommands:Found supported command line option 'UNATTEND'
2013-01-18 11:12:23, Info                  SYSPRP WinMain: CBS operations pending
2013-01-18 11:15:55, Info       [0x0f0052] SYSPRP Shutting down SysPrep log
2013-01-18 11:15:55, Info       [0x0f004d] SYSPRP The time is now 2013-01-18 11:15:55
2013-01-24 17:54:22, Info                  SYSPRP ========================================================
2013-01-24 17:54:22, Info                  SYSPRP ===          Beginning of a new sysprep run          ===
2013-01-24 17:54:22, Info                  SYSPRP ========================================================
2013-01-24 17:54:22, Info       [0x0f004d] SYSPRP The time is now 2013-01-24 17:54:22
2013-01-24 17:54:22, Info       [0x0f004e] SYSPRP Initialized SysPrep log at C:\Windows\system32\Sysprep\Panther
2013-01-24 17:54:22, Info       [0x0f0054] SYSPRP ValidateUser:User has required privileges to sysprep machine
2013-01-24 17:54:22, Info       [0x0f007e] SYSPRP FCreateTagFile:Tag file C:\Windows\system32\Sysprep\Sysprep_succeeded.tag does not already exist, no need to delete anything
2013-01-24 17:54:22, Info       [0x0f005f] SYSPRP ParseCommands:Found supported command line option 'RESPECIALIZE'
2013-01-24 17:54:22, Info       [0x0f005f] SYSPRP ParseCommands:Found supported command line option 'QUIET'
2013-01-24 17:54:22, Info                  SYSPRP WinMain:Processing 're-specialize' internal provider request.
2013-01-24 17:54:22, Info                  SYSPRP RunExternalDlls:Running platform actions specified in action file for phase 6
2013-01-24 17:54:22, Info       [0x0f00ba] SYSPRP SysprepSession::CreateSession: Successfully created instance with mount path C:, action file C:\Windows\System32\Sysprep\ActionFiles\ReSpecialize.xml, and mode <null>
2013-01-24 17:54:23, Info                  SYSPRP SysprepSession::Execute: Beginning action execution from C:\Windows\System32\Sysprep\ActionFiles\ReSpecialize.xml
2013-01-24 17:54:23, Info                  SYSPRP ActionPlatform::GetStringValue: Getting REG_SZ value SysprepMode under key HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Setup\Sysprep
2013-01-24 17:54:23, Info                  SYSPRP ActionPlatform::GetValue: Getting value SysprepMode under key HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Setup\Sysprep
2013-01-24 17:54:23, Warning               SYSPRP ActionPlatform::GetValue: Error from RegQueryValueEx on value SysprepMode under key HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Setup\Sysprep; dwRet = 0x2
2013-01-24 17:54:23, Info                  SYSPRP SysprepSession::CreateXPathForSelection: Sysprep mode in registry is <null>
2013-01-24 17:54:23, Info                  SYSPRP ActionPlatform::GetStringValue: Getting REG_SZ value PROCESSOR_ARCHITECTURE under key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment
2013-01-24 17:54:23, Info                  SYSPRP ActionPlatform::GetValue: Getting value PROCESSOR_ARCHITECTURE under key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment
2013-01-24 17:54:23, Info                  SYSPRP SysprepSession::CreateXPathForSelection: Processor architecture in registry is AMD64
2013-01-24 17:54:23, Info       [0x0f00bd] SYSPRP CreateSysprepActionList: Building action list for component Microsoft-Windows-PnpSysprep
2013-01-24 17:54:24, Info       [0x0f0080] SYSPRP ActionPlatform::LaunchModule: Found 'Sysprep_Respecialize_Pnp' in C:\Windows\System32\sppnp.dll; executing it
2013-01-24 17:54:24, Info                  SYSPRP SPPNP: Sysprep_Respecialize_Pnp: Enter
2013-01-24 17:54:24, Info                  SYSPRP SPPNP: Created progress thread.
2013-01-24 17:54:24, Info                  SYSPRP SPPNP: Creating device install status thread...
2013-01-24 17:54:24, Info                  SYSPRP SPPNP: Waiting for thread to exit...
2013-01-24 17:54:24, Info                  SYSPRP SPPNP: Waiting for thread to exit.
2013-01-24 17:54:43, Info                  SYSPRP SPPNP: Status: Starting...
2013-01-24 17:54:43, Info                  SYSPRP SPPNP: Status: Total = 0, Complete = 0, Progress = 0% (0%)
2013-01-24 17:54:43, Info                  SYSPRP SPPNP: Status: Active
2013-01-24 17:54:43, Info                  SYSPRP SPPNP: Status: Total = 1, Complete = 0, Progress = 0% (0%)
2013-01-24 17:54:49, Info                  SYSPRP SPPNP: Status: End
2013-01-24 17:54:49, Info                  SYSPRP SPPNP: Status: Total = -1, Complete = -1, Progress = 100% (100%)
2013-01-24 17:54:49, Info                  SYSPRP SPPNP: Finished waiting for device install status...
2013-01-24 17:54:49, Info                  SYSPRP SPPNP: Thread exited.
2013-01-24 17:54:49, Info                  SYSPRP SPPNP: Sysprep_Respecialize_Pnp: Exit
2013-01-24 17:54:49, Info       [0x0f0081] SYSPRP ActionPlatform::LaunchModule: Successfully executed 'Sysprep_Respecialize_Pnp' from C:\Windows\System32\sppnp.dll without error
2013-01-24 17:54:49, Info       [0x0f00b8] SYSPRP SysprepSession::Execute: Sysprep mode was not specified, deleting it from registry
2013-01-24 17:54:49, Info       [0x0f00c6] SYSPRP ActionPlatform::DeleteValue: Deleting registry value SysprepMode under key HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Setup\Sysprep
2013-01-24 17:54:49, Warning               SYSPRP ActionPlatform::DeleteValue: Registry value SysprepMode to be deleted does not exist under key HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Setup\Sysprep
2013-01-24 17:54:49, Info       [0x0f0052] SYSPRP Shutting down SysPrep log
2013-01-24 17:54:49, Info       [0x0f004d] SYSPRP The time is now 2013-01-24 17:54:49
2013-06-13 17:23:46, Info                  SYSPRP ========================================================
2013-06-13 17:23:46, Info                  SYSPRP ===          Beginning of a new sysprep run          ===
2013-06-13 17:23:46, Info                  SYSPRP ========================================================
2013-06-13 17:23:46, Info       [0x0f004d] SYSPRP The time is now 2013-06-13 17:23:46
2013-06-13 17:23:46, Info       [0x0f004e] SYSPRP Initialized SysPrep log at C:\Windows\System32\Sysprep\Panther
2013-06-13 17:23:46, Info       [0x0f0054] SYSPRP ValidateUser:User has required privileges to sysprep machine
2013-06-13 17:23:46, Info       [0x0f007e] SYSPRP FCreateTagFile:Tag file C:\Windows\System32\Sysprep\Sysprep_succeeded.tag does not already exist, no need to delete anything
2013-06-13 17:23:46, Info       [0x0f005f] SYSPRP ParseCommands:Found supported command line option 'GENERALIZE'
2013-06-13 17:23:46, Info       [0x0f005f] SYSPRP ParseCommands:Found supported command line option 'OOBE'
2013-06-13 17:23:46, Info       [0x0f005f] SYSPRP ParseCommands:Found supported command line option 'SHUTDOWN'
2013-06-13 17:23:46, Info       [0x0f005f] SYSPRP ParseCommands:Found supported command line option 'UNATTEND'
2013-06-13 17:23:50, Info                  SYSPRP WinMain: CBS operations pending
2013-06-13 17:23:59, Info       [0x0f0052] SYSPRP Shutting down SysPrep log
2013-06-13 17:23:59, Info       [0x0f004d] SYSPRP The time is now 2013-06-13 17:23:59
2013-10-08 18:39:40, Info                  SYSPRP ========================================================
2013-10-08 18:39:40, Info                  SYSPRP ===          Beginning of a new sysprep run          ===
2013-10-08 18:39:40, Info                  SYSPRP ========================================================
2013-10-08 18:39:40, Info       [0x0f004d] SYSPRP The time is now 2013-10-08 18:39:40
2013-10-08 18:39:40, Info       [0x0f004e] SYSPRP Initialized SysPrep log at C:\Windows\System32\Sysprep\Panther
2013-10-08 18:39:41, Info       [0x0f0054] SYSPRP ValidateUser:User has required privileges to sysprep machine
2013-10-08 18:39:41, Info       [0x0f007e] SYSPRP FCreateTagFile:Tag file C:\Windows\System32\Sysprep\Sysprep_succeeded.tag does not already exist, no need to delete anything
2013-10-08 18:39:41, Warning               SYSPRP WinMain: File operations pending
2013-10-08 18:39:41, Info       [0x0f005f] SYSPRP ParseCommands:Found supported command line option 'GENERALIZE'
2013-10-08 18:39:41, Info       [0x0f005f] SYSPRP ParseCommands:Found supported command line option 'OOBE'
2013-10-08 18:39:41, Info       [0x0f005f] SYSPRP ParseCommands:Found supported command line option 'SHUTDOWN'
2013-10-08 18:39:41, Info       [0x0f005f] SYSPRP ParseCommands:Found supported command line option 'UNATTEND'
2013-10-08 18:39:41, Info       [0x0f00d7] SYSPRP WinMain:Pre-validing 'cleanup' internal providers.
2013-10-08 18:39:41, Info                  SYSPRP RunExternalDlls:Running platform actions specified in action file for phase 3
2013-10-08 18:39:41, Info       [0x0f00ba] SYSPRP SysprepSession::CreateSession: Successfully created instance with mount path C:, action file C:\Windows\System32\Sysprep\ActionFiles\Cleanup.xml, and mode <null>
2013-10-08 18:39:41, Info                  SYSPRP SysprepSession::Validate: Beginning action execution from C:\Windows\System32\Sysprep\ActionFiles\Cleanup.xml
2013-10-08 18:39:41, Info                  SYSPRP ActionPlatform::GetStringValue: Getting REG_SZ value SysprepMode under key HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Setup\Sysprep
2013-10-08 18:39:41, Info                  SYSPRP ActionPlatform::GetValue: Getting value SysprepMode under key HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Setup\Sysprep
2013-10-08 18:39:41, Warning               SYSPRP ActionPlatform::GetValue: Error from RegQueryValueEx on value SysprepMode under key HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Setup\Sysprep; dwRet = 0x2
2013-10-08 18:39:41, Info                  SYSPRP SysprepSession::CreateXPathForSelection: Sysprep mode in registry is <null>
2013-10-08 18:39:41, Info                  SYSPRP ActionPlatform::GetStringValue: Getting REG_SZ value PROCESSOR_ARCHITECTURE under key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment
2013-10-08 18:39:41, Info                  SYSPRP ActionPlatform::GetValue: Getting value PROCESSOR_ARCHITECTURE under key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment
2013-10-08 18:39:41, Info                  SYSPRP SysprepSession::CreateXPathForSelection: Processor architecture in registry is AMD64
2013-10-08 18:39:41, Info       [0x0f0080] SYSPRP ActionPlatform::LaunchModule: Found 'Sysprep_Clean_Validate_Opk' in C:\Windows\System32\spopk.dll; executing it
2013-10-08 18:39:41, Error      [0x0f0036] SYSPRP spopk.dll:: Sysprep will not run on an upgraded OS. You can only run Sysprep on a custom (clean) install version of Windows.
2013-10-08 18:39:41, Error      [0x0f0082] SYSPRP ActionPlatform::LaunchModule: Failure occurred while executing 'Sysprep_Clean_Validate_Opk' from C:\Windows\System32\spopk.dll; dwRet = 0x139f
2013-10-08 18:39:41, Error                 SYSPRP SysprepSession::Validate: Error in validating actions from C:\Windows\System32\Sysprep\ActionFiles\Cleanup.xml; dwRet = 0x139f
2013-10-08 18:39:41, Error                 SYSPRP RunPlatformActions:Failed while validating SysprepSession actions; dwRet = 0x139f
2013-10-08 18:39:41, Error      [0x0f0070] SYSPRP RunExternalDlls:An error occurred while running registry sysprep DLLs, halting sysprep execution. dwRet = 0x139f
2013-10-08 18:39:41, Error      [0x0f00d8] SYSPRP WinMain:Hit failure while pre-validate sysprep cleanup internal providers; hr = 0x8007139f
2013-10-08 18:39:58, Info       [0x0f0052] SYSPRP Shutting down SysPrep log
2013-10-08 18:39:58, Info       [0x0f004d] SYSPRP The time is now 2013-10-08 18:39:58
2013-10-08 18:48:08, Info                  SYSPRP ========================================================
2013-10-08 18:48:08, Info                  SYSPRP ===          Beginning of a new sysprep run          ===
2013-10-08 18:48:08, Info                  SYSPRP ========================================================
2013-10-08 18:48:08, Info       [0x0f004d] SYSPRP The time is now 2013-10-08 18:48:08
2013-10-08 18:48:08, Info       [0x0f004e] SYSPRP Initialized SysPrep log at C:\Windows\System32\Sysprep\Panther
2013-10-08 18:48:08, Info       [0x0f0054] SYSPRP ValidateUser:User has required privileges to sysprep machine
2013-10-08 18:48:08, Info       [0x0f007e] SYSPRP FCreateTagFile:Tag file C:\Windows\System32\Sysprep\Sysprep_succeeded.tag does not already exist, no need to delete anything
2013-10-08 18:48:08, Info       [0x0f005f] SYSPRP ParseCommands:Found supported command line option 'GENERALIZE'
2013-10-08 18:48:08, Info       [0x0f005f] SYSPRP ParseCommands:Found supported command line option 'OOBE'
2013-10-08 18:48:08, Info       [0x0f005f] SYSPRP ParseCommands:Found supported command line option 'SHUTDOWN'
2013-10-08 18:48:08, Info       [0x0f005f] SYSPRP ParseCommands:Found supported command line option 'UNATTEND'
2013-10-08 18:48:08, Info       [0x0f00d7] SYSPRP WinMain:Pre-validing 'cleanup' internal providers.
2013-10-08 18:48:08, Info                  SYSPRP RunExternalDlls:Running platform actions specified in action file for phase 3
2013-10-08 18:48:08, Info       [0x0f00ba] SYSPRP SysprepSession::CreateSession: Successfully created instance with mount path C:, action file C:\Windows\System32\Sysprep\ActionFiles\Cleanup.xml, and mode <null>
2013-10-08 18:48:08, Info                  SYSPRP SysprepSession::Validate: Beginning action execution from C:\Windows\System32\Sysprep\ActionFiles\Cleanup.xml
2013-10-08 18:48:08, Info                  SYSPRP ActionPlatform::GetStringValue: Getting REG_SZ value SysprepMode under key HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Setup\Sysprep
2013-10-08 18:48:08, Info                  SYSPRP ActionPlatform::GetValue: Getting value SysprepMode under key HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Setup\Sysprep
2013-10-08 18:48:08, Warning               SYSPRP ActionPlatform::GetValue: Error from RegQueryValueEx on value SysprepMode under key HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Setup\Sysprep; dwRet = 0x2
2013-10-08 18:48:08, Info                  SYSPRP SysprepSession::CreateXPathForSelection: Sysprep mode in registry is <null>
2013-10-08 18:48:08, Info                  SYSPRP ActionPlatform::GetStringValue: Getting REG_SZ value PROCESSOR_ARCHITECTURE under key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment
2013-10-08 18:48:08, Info                  SYSPRP ActionPlatform::GetValue: Getting value PROCESSOR_ARCHITECTURE under key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment
2013-10-08 18:48:08, Info                  SYSPRP SysprepSession::CreateXPathForSelection: Processor architecture in registry is AMD64
2013-10-08 18:48:08, Info       [0x0f0080] SYSPRP ActionPlatform::LaunchModule: Found 'Sysprep_Clean_Validate_Opk' in C:\Windows\System32\spopk.dll; executing it
2013-10-08 18:48:08, Error      [0x0f0036] SYSPRP spopk.dll:: Sysprep will not run on an upgraded OS. You can only run Sysprep on a custom (clean) install version of Windows.
2013-10-08 18:48:08, Error      [0x0f0082] SYSPRP ActionPlatform::LaunchModule: Failure occurred while executing 'Sysprep_Clean_Validate_Opk' from C:\Windows\System32\spopk.dll; dwRet = 0x139f
2013-10-08 18:48:08, Error                 SYSPRP SysprepSession::Validate: Error in validating actions from C:\Windows\System32\Sysprep\ActionFiles\Cleanup.xml; dwRet = 0x139f
2013-10-08 18:48:08, Error                 SYSPRP RunPlatformActions:Failed while validating SysprepSession actions; dwRet = 0x139f
2013-10-08 18:48:08, Error      [0x0f0070] SYSPRP RunExternalDlls:An error occurred while running registry sysprep DLLs, halting sysprep execution. dwRet = 0x139f
2013-10-08 18:48:08, Error      [0x0f00d8] SYSPRP WinMain:Hit failure while pre-validate sysprep cleanup internal providers; hr = 0x8007139f
2013-10-08 18:53:32, Info       [0x0f0052] SYSPRP Shutting down SysPrep log
2013-10-08 18:53:32, Info       [0x0f004d] SYSPRP The time is now 2013-10-08 18:53:32

Its a Windows error 


October 8th, 2013 4:30pm

Have you tried to update the built-in Windows store apps before sysprep? See the KB article below, I noted some similar errors to you. I had this occur and chose not to update before sysprep and it worked.

http://support.microsoft.com/kb/2769827


  • Edited by TechNet-User Wednesday, October 09, 2013 1:43 AM format
Free Windows Admin Tool Kit Click here and download it now
October 9th, 2013 4:41am

So finally I was able to find the answer, it all lies within a single registry key:

HKEY_LOCAL_MACHINE\system\setup

There was a key called upgrade, that once deleted lets you run SysPrep like normal.

Delete that key and you are good.

Set HKEY_LOCAL_MACHINE\SYSTEM\Setup\Status\SysprepStatus to 7
Run sysprep again as Admin, It's finally work for me
October 23rd, 2013 12:21pm

Can you advise on your O/S you tested this on Jonathan and Anurag?  I still can't get it working on 8.1 Enterprise after an upgrade.  I've even compared all the settings to a Windows 8 machine that can successfully sysprep, but have no luck.
Free Windows Admin Tool Kit Click here and download it now
October 24th, 2013 4:55am

KK so i tested it continuously and it works 2 out of 10 times. So we need a proper Microsoft solution for this not just registry entry  My OS is same as yours Burner1
October 24th, 2013 6:23am

Can you advise on your O/S you tested this on Jonathan and Anurag?  I still can't get it working on 8.1 Enterprise after an upgrade.  I've even compared all the settings to a Windows 8 machine that can successfully sysprep, but have no luck.

Same here.  I have a base image of 8 Pro that I upgraded using the ISO (which requires a new 8.1 key..unlike trying to upgrade through the windows store which apparently doesn't require a new key (which makes no sense to me).  But anyway, I upgraded using the .ISO manually to 8.1 Pro, and still have the sysprep issue, even after deleting the upgrade key in the registry.   No luck here, haven't even gotten it to work once.
  • Edited by NebGlobTech Thursday, October 24, 2013 2:54 PM
Free Windows Admin Tool Kit Click here and download it now
October 24th, 2013 5:36pm

This OS becomes more and more a nightmare!!!!!!!!

After installing the OS and all applications it was not possible to open "Change PC Settings". I have done a refresh on the OS as recomended, installed exactly EVERYTHING again and now the Option "Change PC Settings" is working. YEAAHHHH!!!

But now I want to do a SYSPREP and what happens? Exactly this error Message:

2013-11-05 14:44:06, Info SYSPRP ActionPlatform::GetValue: Getting value SysprepMode under key HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Setup\Sysprep 2013-11-05 14:44:06, Warning SYSPRP ActionPlatform::GetValue: Error from RegQueryValueEx on value SysprepMode under key HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Setup\Sysprep; dwRet = 0x2 2013-11-05 14:44:06, Info SYSPRP SysprepSession::CreateXPathForSelection: Sysprep mode in registry is <null> 2013-11-05 14:44:06, Info SYSPRP ActionPlatform::GetStringValue: Getting REG_SZ value PROCESSOR_ARCHITECTURE under key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment 2013-11-05 14:44:06, Info SYSPRP ActionPlatform::GetValue: Getting value PROCESSOR_ARCHITECTURE under key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment 2013-11-05 14:44:06, Info SYSPRP SysprepSession::CreateXPathForSelection: Processor architecture in registry is AMD64 2013-11-05 14:44:06, Info [0x0f0080] SYSPRP ActionPlatform::LaunchModule: Found 'Sysprep_Clean_Validate_Opk' in C:\Windows\System32\spopk.dll; executing it 2013-11-05 14:44:06, Error [0x0f0036] SYSPRP spopk.dll:: Sysprep will not run on an upgraded OS. You can only run Sysprep on a custom (clean) install version of Windows. 2013-11-05 14:44:06, Error [0x0f0082] SYSPRP ActionPlatform::LaunchModule: Failure occurred while executing 'Sysprep_Clean_Validate_Opk' from C:\Windows\System32\spopk.dll; dwRet = 0x139f 2013-11-05 14:44:06, Error SYSPRP SysprepSession::Validate: Error in validating actions from C:\Windows\System32\Sysprep\ActionFiles\Cleanup.xml; dwRet = 0x139f 2013-11-05 14:44:06, Error SYSPRP RunPlatformActions:Failed while validating SysprepSession actions; dwRet = 0x139f 2013-11-05 14:44:06, Error [0x0f0070] SYSPRP RunExternalDlls:An error occurred while running registry sysprep DLLs, halting sysprep execution. dwRet = 0x139f 2013-11-05 14:44:06, Error [0x0f00d8] SYSPRP WinMain:Hit failure while pre-validate sysprep cleanup internal providers; hr = 0x8007139f 2013-11-05 14:44:14, Info [0x0f0052] SYSPRP Shutting down SysPrep log 2013-11-05 14:44:14, Info [0x0f004d] SYSPRP The time is now 2013-11-05 14:44:14

I never have had so much trouble bevore to create an Company Image as with this f****ing OS!!!!

So, let's start from scratch. AGAIN! :-(

November 5th, 2013 4:56pm

I finally got the sysprep to work 

You need to take care of the following things

A> It doesn't work with upgraded PC

B> For fresh installation and creating sysprep you need to activate the administrator account delete any other user account

C> Don't update any of the metro apps. Normal windows update is fine .

D> If you need to add any other settings please use the answer file settings.

Tested with Windows 8.1 Enterprise 

 

Free Windows Admin Tool Kit Click here and download it now
November 7th, 2013 9:56am

Are you trying to install windows 8 or windows 8.1?

If its 8.1 then u need to download and install windows ADK 8.1 and then convert the windows 8 unattend.xml to windows 8.1 

<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
    <settings pass="specialize">
        <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <AutoLogon>
                <Password>
                    <Value>QQBjAHQAeQAxADIAMwA0AFAAYQBzAHMAdwBvAHIAZAA=</Value>
                    <PlainText>false</PlainText>
                </Password>
                <Enabled>true</Enabled>
                <LogonCount>1</LogonCount>
                <Username>administrator</Username>
            </AutoLogon>
            <ComputerName>*</ComputerName>
            <CopyProfile>true</CopyProfile>
            <TimeZone>India Standard Time</TimeZone>
        </component>
        <component name="Microsoft-Windows-TerminalServices-LocalSessionManager" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <fDenyTSConnections>false</fDenyTSConnections>
        </component>
        <component name="Networking-MPSSVC-Svc" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <FirewallGroups>
                <FirewallGroup wcm:action="add" wcm:keyValue="Remote Desktop">
                    <Active>true</Active>
                    <Group>Remote Desktop</Group>
                </FirewallGroup>
            </FirewallGroups>
        </component>
    </settings>
    <settings pass="oobeSystem">
        <component name="Microsoft-Windows-International-Core" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <InputLocale>en-IN</InputLocale>
            <SystemLocale>en-IN</SystemLocale>
            <UILanguage>en-IN</UILanguage>
            <UILanguageFallback>en-IN</UILanguageFallback>
            <UserLocale>en-IN</UserLocale>
        </component>
        <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <FirstLogonCommands>
                <SynchronousCommand wcm:action="add">
                    <CommandLine>powershell.exe c:\Windows\Telas\firstlogoncommands.ps1</CommandLine>
                    <Order>1</Order>
                    <RequiresUserInput>false</RequiresUserInput>
                </SynchronousCommand>
            </FirstLogonCommands>
            <OOBE>
                <HideEULAPage>true</HideEULAPage>
                <HideLocalAccountScreen>true</HideLocalAccountScreen>
                <HideOEMRegistrationScreen>true</HideOEMRegistrationScreen>
                <HideOnlineAccountScreens>true</HideOnlineAccountScreens>
                <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
                <NetworkLocation>Work</NetworkLocation>
                <ProtectYourPC>3</ProtectYourPC>
            </OOBE>
            <TaskbarLinks>
                <Link0>C:\Program Files (x86)\Mozilla Thunderbird\thunderbird.exe</Link0>
                <Link1>C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\devenv.exe</Link1>
                <Link2>C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\ManagementStudio\Ssms.exe</Link2>
                <Link3>C:\Program Files (x86)\Google\Chrome\Application\chrome.exe</Link3>
                <Link4>C:\Program Files (x86)\Mozilla Firefox\firefox.exe</Link4>
            </TaskbarLinks>
            <UserAccounts>
                <AdministratorPassword>
                    <Value>QQBjAHQAeQAxADIAMwA0AEEAZABtAGkAbgBpAHMAdAByAGEAdABvAHIAUABhAHMAcwB3AG8AcgBkAA==</Value>
                    <PlainText>false</PlainText>
                </AdministratorPassword>
                <LocalAccounts>
                    <LocalAccount wcm:action="add">
                        <Password>
                            <Value>QQBjAHQAeQAxADIAMwA0AFAAYQBzAHMAdwBvAHIAZAA=</Value>
                            <PlainText>false</PlainText>
                        </Password>
                        <DisplayName>abc</DisplayName>
                        <Group>Administrators</Group>
                        <Name>acty</Name>
                    </LocalAccount>
                </LocalAccounts>
            </UserAccounts>
        </component>
    </settings>
    <cpi:offlineImage cpi:source="wim:d:/install.wim#Windows 8.1 Enterprise" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>


November 8th, 2013 6:33am

If there's something terribly obviously wrong in that file -- let me know.
  • Edited by steve maser Tuesday, November 12, 2013 5:38 PM
Free Windows Admin Tool Kit Click here and download it now
November 12th, 2013 8:38pm

So, I'm not opposed to redoing this and enabling "administrator" from the start if that's the *only* way to do this moving forward.

However, Darrell's post above implies that I shouldn't have to use that specific account (and, as I've mentioned, I don't use that account on my Windows 8.0 64 Enterprise system.)


  • Edited by steve maser Wednesday, November 13, 2013 4:50 AM
November 13th, 2013 7:50am

I've been asked to post here.

I do the following.

Install Win8.1 Pro, created local 'admin' account for administrator, joined domain, logged in as domain\administrator, installed drivers and programs. Deleted admin account, dropped off domain to workgroup, logged in to admin, deleted domain\administrator account, ran sysprep. 

After sysprep when a new user logs on (and admin), the only icons they get on the start screen are IE, Store, File Explorer, Skydrive and Desktop. I can search for Calculator  / Camera etc and find them but some are missing such as Mail, Weather, People etc.

I've done exactly the same in Windows 8 Pro in the past and not had this problem at all. I've even setup 2 images from scratch and had the same issue.

Regards,

Mark


  • Edited by Tech_Mark1 Friday, November 15, 2013 6:30 AM
Free Windows Admin Tool Kit Click here and download it now
November 15th, 2013 9:30am

IMPORTANT!

SW_DVD5_SA_Win_Ent_8.1_64BIT_English_MLF_X18-96759 is the culprit. I used the following without issues:

MICROSOFT.WINDOWS.8.1.RTM.X64.ENGLISH.DVD-WZT
RELEASE DATE: 08/21/2013 BUILD: 6.3.9600.16384.WINBLUE_RTM.130821-1623
FILE: Windows_8.1_EN-US_x64.ISO SIZE: 3,899,295,744 byte
SHA-1: BC2F7FF5C91C9F0F8676E39E703085C65072139B
MD5: F104B78019E86E74B149AE5E510F7BE9
magnet:?xt=urn:btih:958ED16A00869C0BA4C04815AB500FFA1F2EE92E

  • Edited by cbei1261 Tuesday, November 19, 2013 6:31 PM
November 19th, 2013 5:13am

So, where did you get that specific .ISO file (which sounds like a pirated version?)   

I have been using the same one you think is the culprit:

SW_DVD5_SA_Win_Ent_8.1_64BIT_English_MLF_X18-96759

Which looks like it installed 6.3.9600.16422.131006-1505  (or at least that's the build I'm running now after having installed the Windows Updates since installing the GM...which would seem like a later build, no?)

Scratch that -- 16384 is what gets installed with that same DVD.   The kernel just updates to 16422 after you run Windows Update.

Which makes me wonder if you are not supposed to run Windows Update until after you have sysprepped once?

Can you resysprep your computer *after* running Windows Update?

  • Edited by steve maser Tuesday, November 19, 2013 8:36 PM
Free Windows Admin Tool Kit Click here and download it now
November 19th, 2013 11:16pm

Excuse me Jonathan, you said " Set HKEY_LOCAL_MACHINE\SYSTEM\Setup\Status\SysprepStatus to7" but, my question is, What is exactly the key that must be changed on 7 valueI have the keys "(Default)", "CleanupState" and "GeneralizationState" on "SysprepStatus" menu.

Anyway, I try changing every key on 7 but I doesn't work for me.

Any suggestion?

Thanx

Fernando

February 18th, 2015 12:30pm

Hello, here is my scenario

I was upgrade a Windows Server 2003 to 2008 and then to 2012 R2 and I get the same issue

I try all suggestions mentioned in this post, but it doen's work for me.

So It's confirmed that Sysprep doesn't work on an upgraded OS? There is no way?

Free Windows Admin Tool Kit Click here and download it now
February 18th, 2015 1:25pm

Sysprep is never supposed to work on an "upgraded" system -- so you shouldn't even try hacking around with this (honestly -- you can mess up your system otherwise...)

(I'm assuming this is what you are asking about all these months later?)

February 18th, 2015 1:31pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics