Sysprep was not able to validate your windows installation

Утилита Sysprep используется для подготовки эталонного образа Windows и его обезличивания, удаляя из системы все уникальные идентификаторы (SID-ы, GUID-ы), что необходимо для его корректного разворачивания в корпоративной сети. В некоторых случаях, когда вы выполняете команду sysprep /generalize /oobe /shutdown при создании образа Windows 10, программа Sysprep.exe может вернуть следующую ошибку:

Утилита Sysprep используется для подготовки эталонного образа Windows и его обезличивания, удаляя из системы все уникальные идентификаторы (SID-ы, GUID-ы), что необходимо для его корректного разворачивания в корпоративной сети. В некоторых случаях, когда вы выполняете команду sysprep /generalize /oobe /shutdown при создании образа Windows 10, программа Sysprep.exe может вернуть следующую ошибку:

Sysprep не удалось проверить установку Windows. Дополнительные сведения см. в файле журнала %Windows%System32SysprepPanthersetupact.log. После устранения проблемы снова проверьте установку с помощью Sysprep.

Sysprep was not able to validate your Windows installation. Review the log file at %windir%system32Syspreppanthersetupact.log for details. After resolving the issue use Sysprep to validate your installation again.

Sysprep не удалось проверить установку Windows

Чтобы исправить ошибку «Sysprep не удалось проверить установку Windows», перейдите в каталог C:WindowsSystem32SysprepPanther и откройте с помощью любого текстового редактора (например, блокнота) файл с журналом утилиты sysprep — setupact.log.

Начните просматривать содержимое файл setupact.log снизу вверх и ищите строку с ошибками. В зависимости от найденной ошибки, вам нужно будет выполнить определенные действия для ее исправления. Рассмотрим возможнее ошибки Sysprep:

    Содержание:

  • Отключите BitLocker для запуска Sysprep
  • Не удается удалить современные приложения у текущего пользователя
  • Sysprep не работает на обновленной ОС

Отключите BitLocker для запуска Sysprep

Error SYSPRP BitLocker-Sysprep: BitLocker is on for the OS volume. Turn BitLocker off to run Sysprep. (0x80310039)
Error [0x0f0082] SYSPRP ActionPlatform::LaunchModule: Failure occurred while executing 'ValidateBitLockerState' from C:WindowsSystem32BdeSysprep.dll
If you run manage-bde -status command it will show the following:

Disk volumes that can be protected with
BitLocker Drive Encryption:
Volume C: [OSDisk]

Эта ошибка в основном возникает на планшетах и ноутбуках с Windows 10, поддерживающих шифрование InstantGo (на основе BitLocker.) Чтобы исправить эту ошибку нужно отключить шифрование для системного тома с помощью следующей команды PowerShell:

Disable-Bitlocker –MountPoint “C:”

Disable-Bitlocker

Не удается удалить современные приложения у текущего пользователя

Если в журнале setupact.log встречаются ошибки:

Error SYSPRP Package AppName_1.2.3.500_x64__xxxxxxxxx was installed for a user, but not provisioned for all users. This package will not function properly in the sysprep image.
Error SYSPRP Failed to remove apps for the current user: 0x80073cf2.

Это означает, что вы вручную устанавливали приложения (Modern / Universal Apps) из Windows Store, или некорректно удалили предустановленные приложения.

Попробуйте удалить данный пакет с помощью команд PowerShell:

Get-AppxPackage –Name *AppName* | Remove-AppxPackage
Remove-AppxProvisionedPackage -Online -PackageName AppName_1.2.3.500_x64__xxxxxxxxx

Кроме того, чтобы Microsoft Store не обновлял приложения, необходимо отключить ваш эталонный компьютер с образом Windows 10 от Интернета и отключить автоматическое обновление в режиме аудита перед тем как вы создаете образ.

Также удалите все локальные профили пользователей.

Sysprep не работает на обновленной ОС

В том случае, если вы обновили операционную систему в вашем образе до Windows 10 с предыдущей версии (Windows 8.1 или Windows 7 SP1), то при попытке выполнить Sysprep в журнале setupact.log должна содержаться следующая ошибка:

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.

Microsoft не рекомендует выполнять Sysprep образа, который был проапгрейжен с предыдущей версии Windows, рекомендуется использовать чистую установку Windows 10. Однако есть способ обойти это требования.

  1. Откройте редактор реестра и перейдите в раздел HKEY_LOCAL_MACHINESYSTEMSetup.
  2. Найдите параметр с именем Upgrade и удалите его.
  3. Затем перейдите в ветку HKEY_LOCAL_MACHINESYSTEMSetupStatusSysprepStatus и измените значение ключа CleanupState на 7. SysprepStatus CleanupState
  4. Тем самым, вы заставите Sysprep считать, что данная копия Windows установлена в режиме чистой установки.

Перезагрузите компьютер и запустите Sysprep еще раз.

On a Windows 8.1 based machine the following error appears when running sysprep: «sysprep was not able to validate your Windows installation«. The above error happens because sysprep cannot run on an upgraded 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:WindowsSystem32sysprepPanther 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:WindowsSystem32spopk.dll; dwRet = 0x139f
SYSPRP SysprepSession::Validate: Error in validating actions from C:WindowsSystem32SysprepActionFilesCleanup.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 “WindowsImage-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_MACHINESYSTEMSetup

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!

If this article was useful for you, please consider supporting us by making a donation. Even $1 can a make a huge difference for us in our effort to continue to help others while keeping this site free:

If you want to stay constantly protected from malware threats, existing and future ones, we recommend that you install Malwarebytes Anti-Malware PRO by clicking below (we
do earn a commision from sales generated from this link, but at no additional cost to you. We have experience with this software and we recommend it because it is helpful and useful):

Full household PC Protection — Protect up to 3 PCs with NEW Malwarebytes Anti-Malware Premium!

The Sysprep tool is used to prepare a reference Windows image and its depersonalization, remove all unique identifiers (SID, GUID) from the system, which is necessary for its correct deployment on the corporate network (see our Sysprep Windows Guide). In some cases, when you run the sysprep /generalize /oobe /shutdown command while creating a reference Windows 10 image, Sysprep.exe can return the following Sysprep Was Not Able to Validate Your Windows Installation error:

System Preparation Tool 3.14

Sysprep was not able to validate your Windows installation. Review the log file at %windir%system32Syspreppanthersetupact.log for details.  After resolving the issue use Sysprep to validate your installation again.

sysprep was not able to validate your windows installation

To fix the error go to the C:WindowsSystem32SysprepPanther directory and open the sysprep log file (setupact.log) using any text editor (for example, Notepad).

Start viewing the contents of the setupact.log file from the bottom to the top and look for the errors. Depending on the error found, you will need to perform certain actions to fix it. Below we will consider the possible Sysprep errors.

Turn BitLocker Off to Run Sysprep

Error      SYSPRP BitLocker-Sysprep: BitLocker is on for the OS volume. Turn BitLocker off to run Sysprep. (0x80310039)
Error      [0x0f0082] SYSPRP ActionPlatform::LaunchModule: Failure occurred while executing ‘ValidateBitLockerState’ from C:WindowsSystem32BdeSysprep.dll

Open the command prompt as administrator and run the command:

manage-bde -status

It should return the following info:

Disk volumes that can be protected with
BitLocker Drive Encryption:
Volume C: [OSDisk]

Conversion Status:    Encryption in Progress

This error mostly occurs on tablets and laptops with Windows 10 that support InstantGo encryption (based on BitLocker). To fix this error, you must disable encryption for the Windows system volume using the following PowerShell command:

Disable-Bitlocker –MountPoint ‘C:’

sysprep was not able to validate

SYSPREP Failed to Remove Apps for the Current User

Check if there are such errors in the setupact.log:

Error                 SYSPRP Package SomeAppName_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.
Error                 SYSPRP Failed to remove apps for the current user: 0x80073cf2.

Exit code of RemoveAllApps thread was 0x3cf2

This means that you manually installed modern UWP (APPS) Apps from the Windows Store, or incorrectly uninstalled a certain app.

Try to remove this app package using the PowerShell commands (run the command in the PowerShell console as Administrator):

Get-AppxPackage –Name *SomeAppName* | Remove-AppxPackage

Remove-AppxProvisionedPackage -Online -PackageName SomeAppName_1.2.3.500_x64__8we4y23f8b4ws

If the UWP app is installed for a different user account, you need to remove it from the other users’ profiles. Run the PowerShell command:

Get-AppxPackage -AllUsers | ? {$_.PackageFullName -eq 'SomeAppName_1.2.3.500_x64__8we4y23f8b4ws'}

Check the PackageUserInformation value. If any of local user have this package Installed, remove that user if not needed. Or remove the APPX for all users:

Remove-AppxPackage -Package 'SomeAppName_1.2.3.500_x64__8we4y23f8b4ws' -AllUsers

Reboot the computer and try to run Sysprep again.

If Sysprep still refuses to proceed, you need to remove this provision package from your Windows image:

Remove-AppxProvisionedPackage -Online -PackageName 'SomeAppName_1.2.3.500_x64__8we4y23f8b4ws'

The next time Sysprep might fail in another UWP package. Delete it as described above. You should remove all non-standard UWP Microsoft Store applications.

In addition, unplug the Internet connection or disable Automatic Updates in Audit mode before you create the image. This prevent Microsoft Store from automatic updating apps. Also delete all local user profiles, only the local administrator profile should remain.

Sysprep Will not Run on an Upgraded OS

If your Windows 10 image is upgraded from a previous version (Windows 8.1 or Windows 7 SP1), you should receive an error in the setupact.log file when trying to run Sysprep:

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.

[0x0f0082] SYSPRP ActionPlatform::LaunchModule: Failure occurred while executing ‘Sysprep_Clean_Validate_Opk’ from C:WindowsSystem32spopk.dll; dwRet = 0x139f

Microsoft doesn’t recommend to run a Sysprep on Windows image that has been upgraded from a previous version of Windows. It is recommended to use an image with clean installation of Windows 10. However, there is a way to bypass this requirement:

  1. Open the Registry Editor (regedit.exe) and go to the following registry key HKEY_LOCAL_MACHINESYSTEMSetup;
  2. Find the registry parameter named Upgrade and delete it;
  3. Then go to the key HKEY_LOCAL_MACHINESYSTEMSetupStatusSysprepStatus and change the parameter of the CleanupState key to 7.
    sysprep was unable to validate your windows installation

This will cause Sysprep to assume that this copy of Windows is installed in a clean install mode. Restart the computer and run Sysprep again.

Sysprep Audit Mode Can’t be Turned on if There is an Active Scenario

Another Sysprep error occurs in new Windows 10 builds (1909, 20H2, 21H1). Sysprep fails with the following error in the setupact.log:

Error                 SYSPRP Sysprep_Clean_Validate_Opk: Audit mode can’t be turned on if there is an active scenario.; hr = 0x800F0975
Error                 SYSPRP ActionPlatform::LaunchModule: Failure occurred while executing ‘Sysprep_Clean_Validate_Opk’ from C:WindowsSystem32spopk.dll; dwRet = 0x975
Error                 SYSPRP SysprepSession::Validate: Error in validating actions from C:WindowsSystem32SysprepActionFilesCleanup.xml; dwRet = 0x975
Error                 SYSPRP RunPlatformActions:Failed while validating Sysprep session actions; Error      [0x0f0070] SYSPRP RunDlls:An error occurred while running registry sysprep DLLs, halting sysprep execution. dwRet = 0x975

To resolve this Sysprep error, you need to pause Windows update via modern Settings control panel (Settings > Update & Security > Windows Update > Pause updates for 7 days).

sysprep was not able to validate your windows installation windows 10

Reboot your device and try to run Sysprep.

  • About
  • Latest Posts

I enjoy technology and developing websites. Since 2012 I’m running a few of my own websites, and share useful content on gadgets, PC administration and website promotion.

Sysprep or System Preparation Tool is an essential tool for your Windows OS, it helps to automate the deployment of your Windows OS. However, at times, you may experience an error saying “Sysprep was not able to validate your Windows installation” especially when you run the following command:

sysprep /generalize /oobe /shutdown

In this article, we are going to suggest remediation methods that may help you.

Sysprep was not able to validate your Windows installation

There can be multiple reasons causing this error such as installation of the Windows Store App, loss of a default Windows Program, upgrading from the previous version of Windows, etc.

These are the things you can do to fix Sysprep was not able to validate your Windows installation.

  1. Check the log file
  2. Turn BitLocker off and try
  3. Remove UWP apps you may have installed
  4. Reinstall default Windows UWP apps
  5. Modify Registry
  6. Sysprep will not run on an upgraded OS

Sysprep warning corruption detected, Marking Sysprep corrupt, All sysprep commands will be ignored

1] Check the log file

Check the log file at %windir%system32Syspreppanthersetupact.log.

You can open the “setupact.log” file using Notepad and look for the error – maybe it will guide you in the direction to troubleshoot.

2] Turn BitLocker off and try

If after checking the log file, you find that your file has are any of the two errors, try disabling BitLocker.

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

Error [0x0f0082] SYSPRP ActionPlatform::LaunchModule: Failure occurred while executing ‘ValidateBitLockerState’ from C:WindowsSystem32BdeSysprep.dll

To turn BitLocker off, launch Command Prompt as an administrator from the Start Menu, type the following commands, and hit Enter.

manage-bde -status
Disable-Bitlocker –MountPoint ‘C:’

This will turn Bitlocker off.

Now, try running Sysprep again and see if it fixes the issue.

3] Remove UWP apps you may have installed

If you are seeing the following errors then this means that you have either downloaded a Universal Windows Platform apps or incorrectly removed an application. Therefore, you should follow the steps in solutions 3 and 4 to fix the issue.

Error SYSPRP Package SomeAppName_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.

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

You should delete all the UWP apps to fix the issue. There are multiple ways to bulk uninstall apps.

You can even type the name of the application in the search box, click Uninstall, and follow the on-screen instructions to delete the application.

Read: Sysprep fails on removing or updating Provisioned Windows Store apps.

4] Reinstall default Windows UWP apps

If a default Windows app is missing from your computer, you could face this error. Therefore, we need to restore all the default Windows programs to fix this issue.

To do that, launch Windows PowerShell as an administrator from the Start Menu, type the following command, and hit Enter.

Get-AppxPackage -AllUsers| Foreach {Add-AppxPackage -DisableDevelopmentMode -Register “$($_.InstallLocation)AppXManifest.xml”}

It will take some time, so,  wait for it to complete.

Finally, restart your computer and check if the issue persists.

5] Modify Registry

Sysprep was not able to validate your Windows installation

If you are experiencing the Sysprep error after upgrading to Windows 10 then modifying Registry a bit can solve the issue for you.

To do that, launch Registry Editor from the Start Menu, go to the following location, right-click on the Upgrade key, and click Delete.

ComputerHKEY_LOCAL_MACHINESYSTEMSetup

Now, restart your computer and check if the issue is solved.

6] Sysprep will not run on an upgraded OS

If you have upgraded your OS from Windows 7, 8, 8.1 to Windows 10, you will face the following error.

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.

You can only run Sysprep on a custom (clean) install version of Windows.

To bypass this, change the value of the CleanupState key to 7. To do that, launch Registry Editor from the Start Menu and go to the following location-

HKEY_LOCAL_MACHINESYSTEMSetupStatusSysprepStatus

Double-click on CleanupState and change its value to 7.

Finally, restart your computer and see if your issue is fixed.

Related: A fatal error occurred while trying to sysprep the machine.

by Matthew Adams

Matthew is a freelancer who has produced a variety of articles on various topics related to technology. His main focus is the Windows OS and all the things… read more


Updated on April 21, 2022

  • The Sysprep was not able to validate your Windows installation Windows 11/10 error frequently occurs because of user-installed UWP apps and BitLocker.
  • Uninstalling some UWP apps you’ve installed could fix the Sysprep Windows 11 error.
  • Some users might need to disable BitLocker to fix the Sysprep was not able to validate your windows installation 0x80073cf2 error.

XINSTALL BY CLICKING THE DOWNLOAD FILE

Fix Windows 11 OS errors with Restoro PC Repair Tool:This software repairs common computer errors by replacing the problematic system files with the initial working versions. It also keeps you away from critical file loss, hardware failure, and repairs damages made by malware and viruses. Fix PC issues and remove viruses now in 3 easy steps:

  1. Download Restoro PC Repair Tool that comes with Patented Technologies (patent available here).
  2. Click Start Scan to find Windows 11 issues that could be causing PC problems.
  3. Click Repair All to fix issues affecting your computer’s security and performance
  • Restoro has been downloaded by 0 readers this month.

Sysprep, otherwise System Preparation, is a command-line tool some users utilize to prepare Windows images for deployment. However, an error can arise for some users after entering a Sysprep command for system preparation. One user said this in an MS forum post:

I have a clean installed Windows 10 pro which was activated by MAK license. When I tried to prepare this system with Sysprep, I got the error message Sysprep was not able to validate Your Windows installation.

That Sysprep issue can arise on Windows 11, 10, and 8 platforms. When that issue arises, the Sysprep command doesn’t run and validate the installation as expected. If you need to fix that Sysprep issue, check out the Windows 11/10 resolutions for it below.

How come the Sysprep error arises in Windows?

The Sysprep was not able to validate Your Windows installation error has existed since Windows 8. That issue often arises because of user-installed UWP apps. Many users have confirmed they fixed this issue by uninstalling certain UWP apps they installed from MS Store.

This issue can also occur if a default app, which is supposed to come pre-installed with Windows, is missing. In such a scenario, you would need to reinstall the missing Windows app. A general reinstall app command will do the job.

If you’re utilizing Windows Pro and Enterprise editions, the Sysprep error might be due to the BitLocker encryption feature. BitLocker doesn’t mix well with the Sysprep utility. So, disabling that feature on Windows Pro and Enterprise editions can sometimes resolve this error as well.

How can I fix the Sysprep error in Windows?

1. Reinstall default Windows UWP apps

  1. To bring up the search box, press the Windows + S keyboard shortcut.
  2. Type Windows PowerShell in the search box.
  3. Click PowerShell’s Run as administrator option.
    Powershell's run as administrator option
  4. Input this PowerShell command: Get-AppxPackage -AllUsers| Foreach {Add-AppxPackage -DisableDevelopmentMode -Register “$($_.InstallLocation)AppXManifest.xml”}
  5. Press the Enter keyboard key to execute.
    The remove apps command sysprep was not able to validate your windows installation windows 11
  6. When the command has finished, click Power and Restart on your Start menu.
    The Restart option sysprep was not able to validate your windows installation windows 11

2. Disable BitLocker

  1. Launch the Windows 11/10 search tool with its hotkey (specified in resolution one).
  2. Input Command Prompt into the search tool’s text box to find that app.
  3. Click the Run as administrator option for the Command Prompt shown directly below.
    The Run as administrator option sysprep was not able to validate your windows installation windows 11
  4. Enter this command and press Return: manage-bde -status
    The manage bds command sysprep was not able to validate your windows installation windows 11
  5. To disable BitLocker, type in this command and press Return: Disable-Bitlocker –MountPoint ‘C:’

3. Edit the registry

  1. Press the Windows + R keys together at the same time to launch Run.
  2. Type this Run command in the Open box: regedit
  3. Click OK to open Registry Editor.
    The regedit  Run command sysprep was not able to validate your windows installation windows 11
  4. Then navigate to this registry key: ComputerHKEY_LOCAL_MACHINESYSTEMSetup
  5. Select the Setup key on the left side of the registry.
    Setup registry key sysprep was not able to validate your windows installation windows 11
  6. Right-click the Upgrade DWORD and select Delete.
    The Delete option sysprep was not able to validate your windows installation windows 11
  7. Go to this registry key: HKEY_LOCAL_MACHINESYSTEMSetupStatusSysprepStatus
    The sysprep registry key sysprep was not able to validate your windows installation windows 11
  8. Double-click the CleanUpState DWORD.
  9. Erase the current number and enter 7 in the Value data box, and click the OK option.
    Edit DWORD window
  10. Thereafter, press the Start button. Select the Power and Restart options there.

Note icon
NOTE

This potential resolution is recommended for users who need to fix the Sysprep error after recently upgrading to a new Windows platform.

4. Uninstall any UWP apps you’ve installed yourself

  1. Click Start and select the pinned Settings app on that menu.
    The Pinned Settings app sysprep was not able to validate your windows installation windows 11
  2. Select the Apps tab.
    Apps tab sysprep was not able to validate your windows installation windows 11
  3. Click Apps & features to open uninstall options.
    Apps & features navigation option sysprep was not able to validate your windows installation windows 11
  4. Click the three-dot button for a UWP app you’ve downloaded from the MS Store.
    Three-dot button sysprep was not able to validate your windows installation windows 11
  5. Select the Uninstall option.
    Uninstall option sysprep was not able to validate your windows installation windows 11

Note that you can bulk uninstall UWP apps with some third-party uninstaller such as CCleaner. This software enables you to select and uninstall multiple apps and also includes options for erasing leftover residual files.

You’ll probably notice that the Sysprep error message includes a setupact.log file path. Checking that file will help you identify UWP apps causing the error, and other potential factors behind it.

Some PC issues are hard to tackle, especially when it comes to corrupted repositories or missing Windows files. If you are having troubles fixing an error, your system may be partially broken.
We recommend installing Restoro, a tool that will scan your machine and identify what the fault is.
Click here to download and start repairing.

This is how you can check the setuppact.log file in Windows 11/10.

  1. Right-click Start and select the Run accessory on the alternative Win + X menu.
    Run option sysprep was not able to validate your windows installation windows 11
  2. Enter the folder path specified within the Sysprep error message in the Open box: %windir%system32Syspreppanther
  3. Click OK to open the folder.
    Run's OK button sysprep was not able to validate your windows installation windows 11
  4. Right-click the setupact.log file in the folder and select Open with.
    The Open with option sysprep was not able to validate your windows installation windows 11
  5. Then choose to open the log file with Notepad.

Thereafter, scroll down to the bottom of that log file to view Sysprep error details. If there’s an app causing the issue, the log file will include details for it as follows.

SYSPRP Package [app ID] was installed for a user, but not provisioned for all users. This package will not function properly in the Sysprep image. Error SYSPRP Failed to remove apps for the current user: 0x80073cf2.

If you see log details like that, you’ve probably hit the bullseye! Simply uninstall the app (or apps) specified there as outlined within resolution four.

Those are some of the best ways you can fix the Sysprep Windows 11/10 error. As they’re confirmed resolutions, they’ll probably fix that error in most cases.

However, that doesn’t mean they’re 100 percent guaranteed resolutions. If you need more suggestions, some of the resolutions in our How to fix Windows 10 Sysprep errors guide might help.

You can also send a support ticket to Microsoft at the Contact Microsoft Support page.

Feel free to chat about the Sysprep was not able to validate error in this page’s comments section below. You can share other potential resolutions for this issue (if you’ve found any) and add questions for it there.

Still having issues? Fix them with this tool:

SPONSORED

If the advices above haven’t solved your issue, your PC may experience deeper Windows problems. We recommend downloading this PC Repair tool (rated Great on TrustPilot.com) to easily address them. After installation, simply click the Start Scan button and then press on Repair All.

newsletter icon

Newsletter

Hey Folks, I am have an absolutely infuriating issue here. I am currently attempting to deploy a Windows 10 v1803 image that was built straight from an 1803 Pro ISO from the Microsoft website. Before sysprepping and deploying our image, I took a snapshot
in VMware — this is all fine and good, and it keeps my images from running out of Sysprep validations (as technically as long as we roll back to the last snapshot after deploying an image, we keep our «remaining sysprep» counter untouched indefinitely). 

After I deployed the image from Sysprep, we realized that we had left a local account on the VM, which means every time our imaging server deploys the image to a computer in our org, 2 local accounts are present — the built-in Administrator account (we want
this active and present) and a second account called «tech admin» that we had put in during the setup process of Windows 10 initially when installing the VM.

So, I re-wound back to the previous point before sysprep and removed the tech admin account and got everything ready for sysprep, took a snapshot again and went to sysprep and when I went to execute sysprep, I was notified that «Sysprep was not able
to validate your Windows Installation. Review the log file at [DIRECTORY OF PANTHER] for details. After resolving the issue, use Sysprep to validate your installation again.»

According to the log files, Sysprep failed to validate because of a windows app store issue that may have been caused due to removing the other account, which is a serious pain. Our last image was based on Windows 10 v1509 Fall creators edition, and we updated
it all the way up to v1803 but ran into this same issue at the time — however the image had numerous issues and was also updated and maintained since mid-way through the lifecycle of Windows 7, so we were fine with re-building the image from the ground up.

Does anybody know how to get past this sysprep issue? I am completely dumbfounded and have tried many times in the past with our previous image to get past this error and had no luck at all, so I am turning to the Windows TechNet forums as my last hope.
This problem is infuriating and I refuse to re-install and re-build our Windows 10 custom deployment image all over again because of a stubborn windows app tangling with Sysprep. This never caused issues in previous builds of Windows 10, and I really feel
that Microsoft needs to fix this.

Thanks guys — excerpt from the sysprep log file below:

2018-07-19 13:18:20, Error                 SYSPRP Package 89006A2E.AutodeskSketchBook_1.8.1.0_x64__tf1gferkr813w was installed for a user, but not provisioned for all users. This package will not function properly
in the sysprep image.

2018-07-19 13:18:20, Error                 SYSPRP Failed to remove apps for the current user: 0x80073cf2.

2018-07-19 13:18:20, Error                 SYSPRP Exit code of RemoveAllApps thread was 0x3cf2.

2018-07-19 13:18:20, Error                 SYSPRP ActionPlatform::LaunchModule: Failure occurred while executing ‘SysprepGeneralizeValidate’ from C:WindowsSystem32AppxSysprep.dll; dwRet = 0x3cf2
2018-07-19 13:18:20, Error                 SYSPRP SysprepSession::Validate: Error in validating actions from C:WindowsSystem32SysprepActionFilesGeneralize.xml; dwRet = 0x3cf2
2018-07-19 13:18:20, Error                 SYSPRP RunPlatformActions:Failed while validating Sysprep session actions; dwRet = 0x3cf2
2018-07-19 13:18:20, Error      [0x0f0070] SYSPRP RunExternalDlls:An error occurred while running registry sysprep DLLs, halting sysprep execution. dwRet = 0x3cf2
2018-07-19 13:18:20, Error      [0x0f00d8] SYSPRP WinMain:Hit failure while pre-validate sysprep generalize internal providers; hr = 0x80073cf2

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.

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%system32Syspreppanthersetupact.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 ComputerHKEY_LOCAL_MACHINESYSTEMSetup
  4. Delete both the Upgrade key and the Upgrade DWORD Value.
    sysprep-upgrade-registry
  5. Now, go to ComputerHKEY_LOCAL_MACHINESYSTEMSetupStatusSysprepStatus.
  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:WindowsSystem32spopk.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%System32spopk.dll
    • icacls %WinDir%System32spopk.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.

The error ‘Sysprep was not able to validate your Windows installation’ is often caused by the apps that you might have downloaded from the Windows Store or if you have removed the default apps from the system. Users have reported that whenever they try to run the Sysprep tool, they are presented with the said error message followed by the path of the file the contains more details.

Sysprep Was Not Able to Validate Your Windows Installation

Sysprep can be really useful if you want to save up some time and automatically deploy an operating system on a group of computers. However, when you are faced with one of its issues, it can be, at times, an obstacle to pass. Nonetheless, you can learn how to deal with the issue by going through this article.

What causes the ‘Sysprep Was Not Able to Validate Your Windows Installation’ Error on Windows 10?

Well, if you navigate to the file specified in the error message and go through it, you will find the possible cause of the error. In different scenarios, it can vary, therefore, for a basic insight, it is often due to the following factors —

  • Windows Store apps: In some cases, the error occurs if you have downloaded an app from the Windows Store which is preventing the tool. Mostly, Candy Crush and Twitter were found to be the culprits.
  • Default Windows apps: Another reason due to which the error occurs can be the removal of default Windows applications. If you have, prior to running Sysprep, removed any Windows default app, that might be the cause of the error.

Getting onto the solutions, you can fix your issue by following the workarounds given down below.

Uninstalling Candy Crush and Twitter

For some odd reason, most of the users were encountering this issue because of the apps that they had downloaded some apps from the Windows store. If you have installed Candy Crush or Twitter on your system, they can be the responsible party. If this case is applicable to you, you will have to uninstall both Candy Crush and Twitter from your system and then try running Sysprep again. Here’s how to uninstall them:

  1. Go to the Start Menu and search for either Candy Crush or Twitter.
  2. Right-click on the application and click Uninstall.
    Uninstalling Candy Crush
  3. On the pop-up, click Uninstall.

Do the same for Twitter.

Installing Default Windows Apps

In some cases, refreshing the default Windows applications might be the cause of the error. In such an event, you will simply have to install the default applications again. Here’s how to do it:

  1. Go to the Start Menu, type in Windows Powershell, right-click on it and select ‘Run as an administrator’.
  2. Once the Window Powershell loads up, paste in the following command and press Enter:
    Get-AppxPackage -AllUsers| Foreach {Add-AppxPackage -DisableDevelopmentMode -Register “$($_.InstallLocation)AppXManifest.xml”}

    Installing Windows 10 Default Apps
  3. Wait for it to complete and then run Sysprep again.

Modifying Windows Registry

If you are receiving the error message after upgrading to Windows 10, this will most likely be due to the Upgrade DWORD key in the Windows Registry. In such a case, you will just have to delete key and then run Sysprep again. Here’s how to do it:

  1. Press Windows Key + R to open Run.
  2. In the Run dialog box, type in ‘regedit’ and then press Enter.
  3. Navigate to the following path:
    HKEY_LOCAL_MACHINESYSTEMSetup
  4. Locate the Upgrade key in the right-hand pane and right-click it.
  5. Select Delete to delete the key.
    Deleting the Upgrade Key
  6. Restart your system and then try running Sysprep.

Creating a New Administrator Account

If you are unable to find the Upgrade key in the Windows Registry and the above solutions do not work out for you, creating a new administrator account will certainly fix the issue. Some users have reported that upon creating a new administrator account and then deleting all the old ones, their issue was resolved. Here’s how to do it:

  1. First of all, you will have to create a new administrator account. For this, make sure you are logged in as an administrator.
  2. Press Windows Key + I to open Settings.
  3. Go to Accounts and then navigate to Family & other users.
  4. Click ‘Add someone else to this PC’.
  5. Afterward, click ‘I don’t have this person’s sign-in information’.
    Creating New Local User Account
  6. Then, click on ‘Add user without a Microsoft account’ and enter a username of your choice and password.
  7. Once done, click on the newly created account and select ‘Change account type’.
  8. On the pop-up, from the list under Account type, choose Administrator and then click OK.
    Changing User Account Type
  9. Now, restart your system and log in using the newly created account.
  10. Press Windows Key + I again and go to Accounts.
  11. Switch to the Family & other users tab and select your old account.
  12. Click ‘Remove’ to remove the user account.
    Removing Local User Account
  13. Once done, restart your system again and then run Sysprep.

Please make sure that you delete all the previous accounts if you have more than one.

Photo of Kevin Arrows

Kevin Arrows

Kevin is a dynamic and self-motivated information technology professional, with a Thorough knowledge of all facets pertaining to network infrastructure design, implementation and administration. Superior record of delivering simultaneous large-scale mission critical projects on time and under budget.

Понравилась статья? Поделить с друзьями:
  • System preparation tool запускается после перезагрузки windows
  • Sysnative что это за папка windows 10
  • Sysmetrix скачать бесплатно на русском для windows 10
  • Sysmenu dll не найден указанный модуль windows 7
  • Sysmain что это за служба windows 10 грузит диск как отключить