Tech News Today
  • Hardware
    • Motherboards
    • CPUs
    • Graphic Cards
    • RAM
    • SSDs
    • Computer Cases
    • Monitors
    • Peripherals
    • Power Supply Unit
    • PC Builds
    • Computer Tips
  • Software
  • Operating System
    • Windows
    • Mac
    • Linux
  • Gaming
  • Mobile
  • Console
  • More
    • Internet
    • Networking
    • Security
    • Buyer’s Guide
    • Gadgets
    • Laptops
    • Reviews
    • How To
    • News
Facebook Twitter Instagram
Tech News Today
  • Hardware
    • Motherboards
    • CPUs
    • Graphic Cards
    • RAM
    • SSDs
    • Computer Cases
    • Monitors
    • Peripherals
    • Power Supply Unit
    • PC Builds
    • Computer Tips
  • Software
  • Operating System
    • Windows
    • Mac
    • Linux
  • Gaming
  • Mobile
  • Console
  • More
    • Internet
    • Networking
    • Security
    • Buyer’s Guide
    • Gadgets
    • Laptops
    • Reviews
    • How To
    • News
Tech News Today
Home»Windows»Fix: Sysprep Was Not Able to Validate Your Windows Installation

Fix: Sysprep Was Not Able to Validate Your Windows Installation

Abhishek SilwalBy Abhishek SilwalAugust 9, 2022
sysprep was not able to validate your windows installation

Sysprep (System Preparation Tool) is a Microsoft Command line utility which users use to prepare a generalized Windows system image for deploying, duplicating and testing the Operating System.

In this process, you need to generalize the Windows installing by using the command sysprep /generalize /shutdown /oobe and remove any data specific to your PC for privacy purposes. However, Sysprep can’t execute this process if it fails to validate the system and returns the “Sysprep was not able to validate your Windows installation” error message.

This issue can happen because of various reasons, which we have mentioned in this article along with their solutions.

Table of Contents

  • Causes for Sysprep Was Not Able to Validate Your Windows Installation
  • Fixes for Sysprep Was Not Able to Validate Your Windows Installation
    • Check Log File
    • Disable Upgrade Registry Key and Entry
    • Disable BitLocker
    • Disable TPM and PTT
    • Reinstall or Remove UWP App Packages
    • Complete Pending Updates and Then Pause Updates
    • Replace Spopk.dll File

Causes for Sysprep Was Not Able to Validate Your Windows Installation

Here are the potential causes for “Sysprep was not able to validate your Windows installation” error:

  • Running Sysprep on an upgraded Windows OS.
  • Device Encryption or BitLocker enabled.
  • Unprovisioning UWP apps for a user.
  • Presence of an active scenario such as pending system updates.
  • Corrupt Spopk.dll file.

Fixes for Sysprep Was Not Able to Validate Your Windows Installation

First, make sure to disconnect the internet to avoid any automatic processes, such as updates while generalizing your Windows installation.

Then, apply the possible solutions we have provided below to troubleshoot your issue.

Check Log File

The Sysprep error message also shows where you can review the error log message. So, the first thing you should do is check the log file to narrow down the exact reason for the issue.

  • You can open Run (Win + R) and enter notepad %windir%\system32\Sysprep\panther\setupact.log to open this file using the notepad.

After looking through the log, move on to the corresponding solutions depending on the nature of your error.

Disable Upgrade Registry Key and Entry

Sysprep won’t be able to validate your Windows installation if you try running the processs after upgrading your system. The log should show the following or a similar error message in such a scenario:

SYSPRP spopk.dll:: Sysprep will not run on an upgraded OS. You can only run Sysprep on a custom (clean) install version of Windows.

As the message says, Microsoft doesn’t support running Sysprep on an upgraded Windows system and instead recommends users to clean install Windows first. However, you can avoid this issue by changing some registry values. Here’s how you can do so:

  1. Press Win + R to open Run.
  2. Enter regedit to open the Registry Editor.
  3. Navigate to Computer\HKEY_LOCAL_MACHINE\SYSTEM\Setup\
  4. Delete both the Upgrade key and the Upgrade DWORD Value.
    sysprep-upgrade-registry
  5. Now, go to Computer\HKEY_LOCAL_MACHINE\SYSTEM\Setup\Status\SysprepStatus.
  6. Double-click on CleanupState and set its Value data to 7.

This process fools the Windows OS into believing that you have a custom install version of Windows instead of an upgraded one.

Disable BitLocker

You can’t run Sysprep when your system is encrypted. If you try to do so, the error log usually shows the error message below:

SYSPRP BitLocker-Sysprep: BitLocker is on for the OS volume. Turn BitLocker off to run Sysprep. (0x80310039)

You may also get other messages, but they will contain the word BitLocker.

To resolve the issue, you need to disable the process. Here’s how you can do so:

  1. Open Run
  2. Type cmd and press Ctrl + Shift + Enter to open the Elevated Command Prompt.
  3. Enter the following commands:
    • manage-bde -status (It shows whether BitLocker is encrypting your device or not)
      Manage Bitlocker status
    • Disable-Bitlocker –MountPoint ‘C:’

Disable TPM and PTT

enable-tpm

Sometimes your system thinks BitLocker is enabled even when it’s actually off. So, you’ll still get the above error. It happens because sometimes the BDE goes into a waiting state when TPM is detected.

There are two ways to resolve the issue. You can either enable BitLocker and then turn it off again.

Or you can go to your BIOS and disable TPM (Trusted Platform Module), which is the device your system uses for encryption. You can usually find the option under Advanced, Security, or Trusted Computing in the BIOS or UEFI. You may also need to disable PTT (Intel Platform Trust Technology) in some devices.

Reinstall or Remove UWP App Packages

If you unprovisioned any Universal Windows Platform (UWP) app that is installed on one of your user accounts, the source files for the app won’t be present on your user profile. In such cases, Sysprep can’t validate the installation and you’ll usually find the following error message in the log file:

SYSPRP Package <App Name>_1.2.3.500_x64__8we4y23f8b4ws was installed for a user, but not provisioned for all users. This package will not function properly in the sysprep image.

You need to remove the apps from the user or remove all users with unprovisioned apps to resolve such issues.

First, try re-registering the default Windows apps in case there’s some other issue with the app. To do so:

  1. Open Run.
  2. Type powershell and press Ctrl + Shift + Enter to open the Elevated Windows PowerShell.
  3. Enter the command: Get-AppxPackage -AllUsers| Foreach {Add-AppxPackage -DisableDevelopmentMode -Register “$($_.InstallLocation)\AppXManifest.xml”}
    Re-install apps using powershell

Run Sysprep again and check if you still encounter the issue. If you do, you need to remove the UWP apps and their provisioning. You also need to manually remove the apps if the error log shows something like:

SYSPRP Failed to remove apps for the current user: 0x80073cf2.

Here are the necessary steps:

  1. Open the Elevated Windows PowerShell.
  2. Enter the following commands:
    • Import-Module Appx
    • Import-Module Dism
    • Get-AppxPackage -AllUsers | Where PublisherId -eq 8wekyb3d8bbwe | Format-List -Property PackageFullName,PackageUserInformation
      powershell-get-appx-package
  3. If you manually provisioned some non-UWP apps, you need to run
    Get-AppxPackage -AllUsers | Format-List -Property PackageFullName,PackageUserInformation
  4. Check all users that show Installed. If they are local accounts, remove these accounts. You can do so by using these steps:
    • Open Run and enter netplwiz.
    • Click on the accounts and select Remove > Yes.
  5. Then, run the commands below to remove an app and its provisioning while replacing the <package name> with the app’s package name:
    • Remove-AppxPackage -Package \<package name>
    • Remove-AppxProvisionedPackage -Online -PackageName <package name>
      Remove apps using powershell
  6. Do so for all the apps the Sysprep’s log shows.

Complete Pending Updates and Then Pause Updates

Your can’t enable the Sysprep audit mode if there’s an active scenario such as updates. Such processes use your reserved storage, which locks your Windows OS. In this case, the log file shows an error message similar to:

SYSPRP Sysprep_Clean_Validate_Opk: Audit mode cannot be turned on if reserved storage is in use. An update or servicing operation may be using reserved storage.; hr = 0x800F0975

To resolve the issue, you need to install all pending cumulative updates and then pause your updates. You don’t need to install the optional updates.

Make sure to install the necessary updates and restart your PC to complete all pending operations. Then, pause your updates using the instructions below:

  1. Open Run and enter ms-settings:windowsupdate.
  2. Click on Pause or Pause for x week/s button.
    pause-updates

Disconnect your internet and try running Sysprep again.

Replace Spopk.dll File

Spopk.dll is a type of OPK Sysprep Plugin file that helps in Sysprep’s Windows installation validation. Sometimes this DLL file can become corrupt causing issues while running Sysprep.

In such cases, the log shows an error message similar to,

SYSPRP ActionPlatform::LaunchModule: Failure occurred while executing ‘Sysprep_Clean_Validate_Opk’ from C:\Windows\System32\spopk.dll; dwRet = 0x975

First, remove provisioning for the store apps, then install cumulative updates or pause updates and retry running Sysprep. If you still encounter the issue, you need to replace the Spopk.dll file. Here’s how you can do so:

  1. Open the Elevated Command Prompt.
  2. Enter the following command to take ownership and change permissions for spopk.dll:
    • takeown /f %WinDir%\System32\spopk.dll
    • icacls %WinDir%\System32\spopk.dll /Grant Administrators:f
  3. Open Run and enter %windir%\System32 to open the directory in the File Explorer.
  4. Download the spopk.dll file or transfer it to the System32 folder from the same location in another computer.
  5. Confirm if you get the prompt to replace the file.
fix
Abhishek Silwal
  • LinkedIn

Abhishek Silwal is an Electronics Engineer and a technical writer at TechNewsToday. He specializes in troubleshooting a wide range of computer-related issues. His educational background in Electronics Engineering has given him a solid foundation in understanding of computers. He is also proficient in several programming languages and has worked on various robotics projects. Even in his early days, he used to tinker with various computer components, both hardware, and software, to satiate his curiosity. This experience has given him a breadth of experience that goes beyond his educational qualification. Abhishek has been writing articles on dealing with varieties of technical issues and performing specific tasks, especially on a Windows machine. He strives to create comprehensive guides on fixing many system and hardware issues and help others solve their problems. You can contact him at abhisheksilwal@technewtoday.com

Related Posts

boot loop

14 Ways to Fix Windows Boot Loop

March 19, 2023
how to change windows startup sound

How to Change Windows Startup Sound

March 17, 2023
scan disk windows 10

How to Scan Disk Windows

March 16, 2023
Shared GPU Memory

What is Shared GPU Memory? How is It Different From Dedicated VRAM?

March 12, 2023
firmware vs software

Firmware Vs Software – What’s the Difference?

March 8, 2023
update sound drivers

How to Update Sound Drivers on Windows

March 7, 2023
Add A Comment

Leave A Reply Cancel Reply

Latest Posts
what-does-spooling-mean-on-printer

What Does Spooling Mean on Printer?

March 23, 2023
sata ports on motherboard

All the Types of SATA Ports on Motherboard

March 21, 2023
anti-aliasing-on-or-off

What is Anti Aliasing? Should You Turn It on or off

March 21, 2023
You may also like
caps key not working

6 Ways to Fix Caps Key Not Working

March 23, 2023
how to increase ram on laptop

How to Increase RAM on Laptop? (Step-by-Step Guide)

March 23, 2023
how to overclock ram

How to Overclock RAM? (Step-by-Step Guide)

March 22, 2023
Recommended
Cookie Clicker Garden Guide

Cookie Clicker Garden Guide to Unlocking Every Seed

September 26, 2021
monitor no signal

Computer Turns On But Monitor Says No Signal (9 Ways To Fix)

November 10, 2022
Facebook Twitter Pinterest
  • Home
  • About Us
  • Our Team
  • Editorial Guidelines
  • Privacy Policy
  • Affiliate Disclosure
© 2023 TechNewsToday, editor@technewstoday.com | Tech Central Pvt. Ltd.

Type above and press Enter to search. Press Esc to cancel.