Sysprep quick fix

2016/08/09 19:43


Sometime, sysprep operation may fail with the following error message:
System Preparation Tool 3.14
A fatal error occurred while trying to sysprep the machine

Details can be found on Microsoft web site https://support.microsoft.com/en-us/kb/2769827 

The quick fix is available here

In run as administrator PowerShell

Import-Module Appx
Import-Module Dism

Get-AppxPackage -AllUser | Format-List PackageFullName

Copy the result in new text file.

in the result, replace "PackageFullName:" with "Remove-AppxPackage -Package"

Copy the edited rows and paste in power shell window

check is there any apps left
 
Get-AppxPackage -AllUser | Where PublisherId -eq 8wekyb3d8bbwe |  Format-List -Property PackageFullName,PackageUserInformation

then run sysprep