Skip to main content

How to Fix Sysprep was not able to validate your Windows installation

How to Fix Sysprep was not able to validate your Windows installation

For example, if you have already downloaded apps on a Windows 8.1 or 10 machine where you want to run the sysprep command, the sysprepact log file (setupact.log) which is created under C:\Windows\System32\sysprep\Panther folder displays the following error(s):
"[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.
[0x0f0082] SYSPRP ActionPlatform::LaunchModule: Failure occurred while executing 'Sysprep_Clean_Validate_Opk' from C:\Windows\System32\spopk.dll; dwRet = 0x139f
SYSPRP SysprepSession::Validate: Error in validating actions from C:\Windows\System32\Sysprep\ActionFiles\Cleanup.xml; dwRet = 0x139f
SYSPRP RunPlatformActions:Failed while validating SysprepSession actions; dwRet = 0x139f
[0x0f0070] SYSPRP RunExternalDlls:An error occurred while running registry sysprep DLLs, halting sysprep execution. dwRet = 0x139f
[0x0f00d8] SYSPRP WinMain:Hit failure while pre-validate sysprep cleanup internal providers; hr = 0x8007139f] "
Sysprep was not able to validate your Windows installation

To fix the "Sysprep was not able to validate your Windows installation" error while trying to run sysprep on a upgraded Windows 8, 8.1 or Windows 10 machine, follow the steps below:

How to resolve "Sysprep was not able to validate your Windows installation" error (Windows 10, 8.1, 8)

Step 1: Remove the "UPGRADE" key from Windows Registry.

1. Open Windows Registry Editor. To do that:
  1. Press “Windows” Image-201_thumb_thumb_thumb_thumb1_t  + “R” keys to load the Run dialog box.
  2. Type “regedit” and press Enter.
registry-editor-command


2. Inside Windows Registry, navigate (from the left pane) to this key:
HKEY_LOCAL_MACHINE\SYSTEM\Setup\
image

3. At the right pane, DELETE the Upgrade key.
image

4. Press YES at the warning window.
image

5. Close Registry Editor and restart your computer.

6. Now run SYSPREP again. Sysprep should run successfully now and without problems.
  • Note: Always run "SYSPREP" command as Administrator and uninstall any security software before running the command.
That's it!

Post from HERE

Comments

Popular posts from this blog

Create a Windows 10 x64 Enterprise USB Installer

Download Window 10 Enterprise 1809 with the Media Creation Tool The October 2018 release of Windows 10 has just dropped and is now availabe to download using the  Media Creation Tool . Using the GUI you can download the consumer ISO which contains the Home, Professional and Education SKUs of Windows 10. If you want to download the Enterprise version of Windows 10, but don’t have access to Microsoft VLSC or Action Pack subscriptions, it is possible to download it using the Media Creation Tool if you know the right command line switches. To download Windows 10 Enterprise 1809 using the Media Creation Tool, log in with a local administrator account (for some reason it isn’t good enough to  run the tool using Run as administrator, you actually do have to be logged in as an administrator) and download the tool. Open a CMD prompt and change directory to the directory you saved the Media Creation Tool in, and enter the following command: MediaCreationTool1809.exe /Eul...

ApplyImage.bat

rem == ApplyImage.bat == rem == These commands deploy a specified Windows rem    image file to the Windows partition, and configure rem    the system partition. rem    Usage:   ApplyImage WimFileName rem    Example: ApplyImage E:\Images\ThinImage.wim == rem == Set high-performance power scheme to speed deployment == call powercfg /s 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c rem == Apply the image to the Windows partition == dism /Apply-Image /ImageFile:%1 /Index:1 /ApplyDir:W:\ rem == Copy boot files to the System partition == W:\Windows\System32\bcdboot W:\Windows /s S: :rem == Copy the Windows RE image to the :rem    Windows RE Tools partition == md R:\Recovery\WindowsRE xcopy /h W:\Windows\System32\Recovery\Winre.wim R:\Recovery\WindowsRE\ :rem == Register the location of the recovery tools == W:\Windows\System32\Reagentc /Setreimage /Path R:\Recovery\WindowsRE /Target W:\Windows :rem == Verify the confi...

Example MDT rules config

A Thank you to Amine Lallali for providing me with this config file below Copy the below to rules.ini [Settings] Priority=Default Properties=MyCustomProperty [Default] OSInstall=Y SkipCapture=YES SkipAdminPassword=YES SkipProductKey=YES SkipComputerBackup=YES SkipBitLocker=YES EventService=http://SRVTST19:9800 AdminPassword=Whtc12345 SkipDomainMembership=YES ;<DOMAIN JOIN INFORMATION> ;NetworkLocation=Work SkipDomainMembership=YES JoinDomain=ict.local DomainAdmin=wds DomainAdminDomain=ict.local DomainAdminPassword=Whtc12345 SkipTaskSequence=NO TaskSequenceID=1 DriverSelectionProfile=Nothing DriverInjectionMode=ALL DriverGroup001=Windows 10 x64\%Model% FinishAction=REBOOT SkipDeploymentType=YES DeploymentType=NEWCOMPUTER SkipUserData=YES SkipLocaleSelection=YES KeyboardLocale=0809:00000809 UserLocale=en-US UILanguage=en-US SkipTimeZone=YES TimeZoneName=GMT Standard Time _SMST...