Sysprep was not able to validate your Windows installation: how to fix it

Office with several Windows PCs, the kind of rollout where Sysprep says it was not able to validate your Windows installation

Quick answer: “Sysprep was not able to validate your Windows installation” means one of Sysprep’s checks failed before it could generalize the PC. Open C:\Windows\System32\Sysprep\Panther\setupact.log and search for Error. Most often a Microsoft Store app was installed or updated for one user but isn’t provisioned for all users; remove it with Remove-AppxPackage and run Sysprep again. The other common causes are BitLocker or device encryption being on, and Windows having been upgraded from an earlier version rather than clean-installed.

Applies to: Windows 11 and Windows 10 when you run sysprep.exe (for example with Generalize and OOBE) to prepare a reference image, a virtual machine template or a PC for a new owner.

Office with several Windows PCs, the kind of rollout where Sysprep says it was not able to validate your Windows installation

What the error means

Before Sysprep removes PC-specific data, it checks that the installation can be safely generalized. If any check fails, it stops with this message and changes nothing:

Sysprep was not able to validate your Windows installation.
Review the log file at
%WINDIR%\System32\Sysprep\Panther\setupact.log for details.
After resolving the issue, use Sysprep to validate your installation again.

The message itself never says which check failed. The log does, so start there.

Step 1: Find the cause in setupact.log

  1. Close the Sysprep window.
  2. Open Command Prompt as administrator.
  3. Show only the error lines from the log:
findstr /i /c:"Error" C:\Windows\System32\Sysprep\Panther\setupact.log

Look for the first error near the end of the file and match it to this table:

Line in the logCauseFix
SYSPRP Package <name> was installed for a user, but not provisioned for all usersA Store app was added or updated for one accountFix 1
BitLocker-Sysprep: BitLocker is on for the OS volumeBitLocker or automatic device encryption is onFix 2
Mentions an upgrade, or Sysprep can’t run on an upgraded OSWindows was upgraded in place from an earlier versionFix 3
Anything elsePending updates, a removed user profile, or a third-party toolOther causes

You can also open the log in Notepad (notepad C:\Windows\System32\Sysprep\Panther\setupact.log) and press Ctrl + End to jump to the latest entries.

Fix 1: Remove the app that isn’t provisioned for all users

Administrator typing PowerShell commands to remove a Store app package that isn't provisioned for all users before running Sysprep

This is the most common cause. Sysprep fails when an app package exists for a user account but isn’t part of the image for all users. It usually happens after the Microsoft Store updates a built-in app, after you install a Store app, or after removing a built-in app for one user only. Note the package name in the log line, for example Microsoft.LanguageExperiencePackfr-FR_... or Microsoft.BingWeather_....

  1. Disconnect the PC from the internet so the Store can’t update apps again while you work.
  2. Open Windows PowerShell or Terminal as administrator.
  3. Find the full package name, replacing BingWeather with part of the name from your log:
Get-AppxPackage -AllUsers *BingWeather* | Select Name, PackageFullName

Then remove it for all users, pasting the PackageFullName value:

Remove-AppxPackage -Package <PackageFullName> -AllUsers

If you also want it gone from the image for new users, remove the provisioned copy too:

Get-AppxProvisionedPackage -Online | Where DisplayName -like "*BingWeather*" | Remove-AppxProvisionedPackage -Online

Run Sysprep again. If the log now names a different package, repeat the steps for that one; several apps can be affected at once. If the app belongs to a user account you’ve already deleted, sign in as that user (or delete the leftover profile in System Properties > Advanced > User Profiles) and remove it there.

Fix 2: Turn off BitLocker or device encryption

Sysprep won’t generalize a system drive that is encrypted. Many Windows 11 laptops turn on Device encryption automatically when you sign in with a Microsoft account, so this can happen even if you never set up BitLocker.

Check the status in an administrator Command Prompt:

manage-bde -status C:

If Conversion Status shows anything other than Fully Decrypted, turn it off:

manage-bde -off C:

Decryption runs in the background and can take a while. Run manage-bde -status C: until it shows Fully Decrypted, then run Sysprep. You can also turn it off in Settings > Privacy & security > Device encryption or in Manage BitLocker in Control Panel. If you only paused it, see BitLocker suspended: what it means; suspending isn’t enough for Sysprep.

Fix 3: Upgraded installations

IT staff at computer monitors building a clean-install Windows reference image for Sysprep

Sysprep is designed for clean installations. On a PC upgraded in place from an earlier version (for example Windows 10 upgraded to Windows 11), it can refuse to validate. If your log points to an upgrade, the reliable fix is to build the reference image from a clean install. Use the Windows installation media and set the PC up again before running Sysprep.

You’ll find registry workarounds online that hide the upgrade flag. They aren’t a supported fix, and an image made that way can fail later, so avoid them for anything you’ll deploy to other PCs.

Other causes and tips

  • Pending updates: if Windows Update is installing or waiting for a restart, finish the updates and restart before running Sysprep. See how to run Windows Update from the command line.
  • Run Sysprep from its own folder: start it as administrator from C:\Windows\System32\Sysprep\sysprep.exe, not from a copy.
  • Build images in Audit mode: customizing in Audit mode with the built-in Administrator account, offline, avoids most Store app problems in the first place.
  • Third-party security or cleanup tools: some block Sysprep. If the log names one, uninstall it, run Sysprep, and reinstall it on the deployed PCs.

If you only want to give a PC to someone else rather than build an image, Reset this PC with Remove everything is simpler than Sysprep. See how to reinstall Windows.

Official sources: for more detail, see Microsoft’s own pages:

Frequently asked questions

Where is the Sysprep log file?

The main log is C:\Windows\System32\Sysprep\Panther\setupact.log. Errors are also written to setuperr.log in the same folder.

Does removing the app break anything?

No. You can reinstall Store apps from the Microsoft Store after deployment, and new users get the provisioned apps that remain in the image.

Can I run Sysprep on a PC that’s joined to a domain?

Yes, but generalizing removes it from the domain, so you’ll need to join it again afterwards. Many admins build the image on a PC that isn’t domain-joined.

Why does the error come back after I fix it?

Usually because the Store updated another app in the meantime. Keep the PC offline, or pause Store app updates, until Sysprep finishes.

How we write our guides: read our editorial policy.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *