Sysprep Error on Windows 10: How to Troubleshoot it

You can fix various sysprep error by running a couple of commands

Reading time icon 5 min. read


Readers help support Windows Report. We may get a commission if you buy through our links. Tooltip Icon

Read our disclosure page to find out how can you help Windows Report sustain the editorial team Read more

Key notes

  • You can fix sysprep errors simply by disabling services that might be interfering with it.
  • In some cases, you can encounter this issue if your system files are corrupted or if the system is out of date.

Sysprep is a System Preparation Tool designed for Windows deployment, but sometimes a Sysprep error on Windows 10 can appear.

If this happens, Sysprep won’t be able to validate installation, or you might get other issues. It’s crucial to fix them, so in today’s guide, we’re going to show you how to do that.

Why is Sysprep failing?

  • Certain packages and provisioning can cause issues with sysprep.
  • Sometimes certain services can prevent this feature from properly running on your PC.
  • In some rare instances, your antivirus might interfere with this feature.
  • Outdated Windows installation can encounter glitches with sysprep.
  • Corruption of system files will cause this and many other errors on your PC.

What do I do if Sysprep fails?

1. Use PowerShell to remove the package and remove provisioning

  1. Start PowerShell as administrator. To do that, press Windows key + S, enter PowerShell, right-click PowerShell from the list of results, and choose Run as administrator.
    powershell-run-as-admin
  2. Once PowerShell starts, enter the following lines, and after each line press Enter to run it:
    Import-Module Appx
    Import-Module Dism
    Get-AppxPackage -AllUser | Where PublisherId -eq 8wekyb3d8bbwe | Format-List -Property PackageFullName,PackageUserInformation
  3. Check the output of the last command to see for which users the package is showing as installed. Delete those users’ accounts or simply log in to the computer by using those accounts and perform the next step.
  4. Run the following command but be sure to replace packagefullname  with name of the actual package: Remove-AppxPackage -Package packagefullname
    powershell-1
  5. Now run the Remove-AppxProvisionedPackage -Online -PackageName packagefullname
    powershell-2

After performing these steps, issues with Sysprep should be resolved.

Itโ€™s worth mentioning that you might want to disable your Internet connection while performing this step in order to stop Windows Store from updating apps.

2. Stop the tiledatamodelsvc service

  1. Press Windows key + R and enter services.msc. Press Enter or click OK to run it.
    run-services
  2. Locate the tiledatamodelsvc (Tile Data model server) service, right click it and choose Stop.
    tiledatamodelsvc-services

Alternatively, you can disable this service by and fix Windows 10 sysprep errors with PowerShell.

  1. Open PowerShell as administrator.
  2. Enter Stop-Service tiledatamodelsvc .
    tiledatamodelsvc-powershell
  3. Press Enter.

If you prefer using Command Prompt, you can use it as well to stop this service by following these steps:

  1. Press Windows key + X and choose Command Prompt (Admin) from the menu.
    command-prompt-admin
  2. When Command Prompt starts, enter net stop tiledatamodelsvc and press Enter to run it.
    tiledatamodelsvc-cmd

Users reported that this service sometimes automatically restarts itself, so you might have to stop it a few times before it’s permanently stopped.

3. Use Registry Editor

  1. Press Windows key + R and enter regedit. Press Enter or click OK to start Registry Editor.
    regedit
  2. Navigate to HKEY_LOCAL_MACHINE\SYSTEM\Setup
  3. Locate Upgrade key in the right pane and delete it.
  4. Close Registry Editor and check if the issue is resolved.

If you cannot find the Upgrade key in Registry Editor, skip this solution and try a different one.

4. Run the SFC scan

  1. Right-click Start and run Command Prompt (Admin).
  2. In the command line, type (or copy-paste) sfc/scannow
  3. Press Enter to start the scanning.
  4. After the process is finished, youโ€™ll be informed of possible errors.

SFC scan can help with Windows 10 sysprep errors, so be sure to try it. In case the sfc scannow is not working, we have a specialized guide that can help you fix it.

In other cases, you could employ a tailored PC repair solution that will fully scan your Windows and detect corrupted files and issues.

5. Uninstall your antivirus software

  1. If youโ€™re getting Sysprep error on Windows 10, ensure your antivirus software is disabled.
  2. Some users even suggest uninstalling your antivirus software completely before trying to run Sysprep.
  3. To avoid any potential problems with sysprep make sure that youโ€™re running Sysprep as an administrator.

In some rare instances, your antivirus software can cause Windows 10 sysprep errors, but that can be fixed easily.

6. Install the latest updates

  1. Open the Settings app and go to Update & Security.
  2. Click on Check for updates.
  3. Wait for the process to finish.

7. Run DISM

  1. Open the Command Prompt as shown above.
  2. Enter the following command and press Enter:
    DISM.exe /Online /Cleanup-image /Restorehealth
  3. Wait for the process to finish.
  4. Restart your computer.
  5. In case the DISM canโ€™t obtain files online, try using your installation USB or DVD. Insert media and type the following command:
    DISM.exe /Online /Cleanup-Image /RestoreHealth /Source:C:\PathToYourInstallationMedia /LimitAccess
  6. Follow further on-screen instructions.

For more information, we have a great guide on how to use DISM, so be sure to check it out.

Sysprep Windows 10 errors can cause problems for advanced Windows 10 users, but we hope our solutions helped you fix the problem.

Sadly, this isn’t the only issue, and many reported Fatal error occurred while trying to sysprep the machine, but we covered that issue in a separate guide.

What solution did you use to fix this problem? Let us know in the comments below.

More about the topics: windows 10 fix