How to Solve Sysprep Error on Windows 11

Sysprep is a tool used to prepare your Windows installation for use on other computers with different configurations. Sysprep can remove system-specific information, such as computer name, product ID, and SID (Security Identifier) so that Windows installations can be copied and distributed to other computers without causing conflicts.

Sysprep can also be used to generalize Windows installations, i.e. remove all installed user and application information, so that Windows installations can be used as base images to create custom images.

However, Sysprep does not always run smoothly. Many Windows 11 users have reported that they encounter errors when running Sysprep, especially when using the generalize option. Common errors are “Sysprep was not able to validate your Windows installation” or “A fatal error occurred while trying to sysprep the machine”.

sysprep

This error can hinder the Sysprep process and make the Windows installation unusable on other computers. What causes this error and how can I resolve it? This article will answer the question by providing some solutions that you can try.

Causes of Sysprep Error on Windows 11

Several factors can cause sysprep errors in Windows 11, including:

  • There is an application that is not supported by Sysprep. Some apps installed on Windows 11 may not be compatible with Sysprep, especially apps that use Microsoft accounts or cloud services, such as OneDrive, Skype, and the Microsoft Store. This application can interfere with the Sysprep process and cause errors.
  • There are changes to the Windows registry. The Windows registry is a database that stores important information about the operating system, settings, and applications. If the Windows registry is damaged or changes are inappropriate, Sysprep can fail to run and display an error.
  • There is a limit to the number of Sysprep that can be done. Windows 11 has a limitation that Sysprep can only be done three times on one Windows installation. If you try to run Sysprep more than three times, you’ll get an error.

A solution to Sysprep Error on Windows 11

Here are some solutions you can try to solve sysprep error on Windows 11:

Solution 1: Remove Applications Not Supported by Sysprep

The first step you can take is to remove applications that are not supported by Sysprep, especially applications that use Microsoft accounts or cloud services. You can remove these apps by using Settings or PowerShell. Here’s how:

  • Open Settings by pressing Windows + I on the keyboard.
  • Select Apps and then select Installed apps.
  • Find apps that aren’t supported by Sysprep, such as OneDrive, Skype, and the Microsoft Store, and click Uninstall to remove them. Repeat this step for each app you want to remove.
  • If you can’t remove an app by using Settings, you can use PowerShell. Open PowerShell by pressing Windows + X on the keyboard and select Windows PowerShell (Admin).
  • Type the following commands to remove applications that are not supported by Sysprep, and press Enter after each command. Replace AppName with the name of the app you want to remove.
Get-AppxPackage *AppName* | Remove-AppxPackage
Get-AppxProvisionedPackage -Online | Where-Object {$_.PackageName -like “*AppName*”} | Remove-AppxProvisionedPackage -Online
  • After you remove all applications that are not supported by sysprep, try running sysprep again and see if the error still appears.

Latest Articles