When you run sysprep under Windows 10 (Windows 8/8.1) you receive an error message saying that Sysprep was not able to validate your Windows installation. Review the log file at %Windir%/System32\Sysprep\Panther\setupact.log for details. When you look at the log file, the message tells you that you can not run the sysprep because there is an application that was installed for a user, but was not provisioned for all users. The application name varies. This error occurs because the Windows 10 installs a lot of bloatwares that you must uninstall before you can run the sysprep.
The following scripts will help you uninstall the programs from your image, so you can run the sysprep.
First you can run the following script to see what provisioned apps are running.
Get-AppXProvisionedPackage -Online | Select PackageName
Use this command to remove the provisioned package.
Remove-AppXProvisionedPackage -Online | Select PackageName
Or use this command to remove all of them all at once.
Get-AppXProvisionedPackage -Online | Remove-AppxProvisionedPackage -Online
You may also have to run the following command to uninstall more packages.
Get-AppxPackage | Select Name, PackageFullName
You can then use the following command to remove the packages.
Get-AppxPackage PackageFullName | Remove-AppxPackage (You can use wildcards such as * for full name)
Use the following command to uninstall packages all at once.
Get-AppxPackage -allusers PackageFullName | Remove-AppxPackage (Removes allusers program) Get-AppxPackage -user username PackageFullName | Remove-AppxPackage (Removes particular users program) Get-AppxPackage | Remove-AppxPackage (Removes all packages)