Tag Archives: sysprep

Windows: sysprep fails with “Failure occurred while executing ‘Sysprep_Clean_Opk’ “

Hi,

after an Upgrade from Windows 10 to Windows 11 on a customer PC sysprep is no longer working. Unfortunataly the error messages in C:\Windows\System32\sysprep\Panther\setuperr.log does not really help to find the root cause:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
Error                        pGetUninstallInterfaceCommon: Failed loading the setupplatform, hr = 0x80070666
Error                 SYSPRP RemoveUninstall:Failed to instantiate uninstall interface; hr = 0x80070666
Error                 SYSPRP Sysprep_Clean_Opk:Failed to remove Uninstall; dwRet = 0x666
Error                 SYSPRP ActionPlatform::LaunchModule: Failure occurred while executing 'Sysprep_Clean_Opk' from C:\Windows\System32\spopk.dll; dwRet = 0x666
Error                 SYSPRP SysprepSession::ExecuteAction: Failed during sysprepModule operation; dwRet = 0x666
Error                 SYSPRP SysprepSession::ExecuteInternal: Error in executing action for Microsoft-Windows-Sysprep-SpOpk; dwRet = 0x666
Error                 SYSPRP SysprepSession::Execute: Error in executing actions from C:\Windows\System32\Sysprep\ActionFiles\Cleanup.xml; dwRet = 0x666
Error                 SYSPRP RunPlatformActions:Failed while executing Sysprep session actions; dwRet = 0x666
Error      [0x0f0070] SYSPRP RunDlls:An error occurred while running registry sysprep DLLs, halting sysprep execution. dwRet = 0x666
Error      [0x0f00a8] SYSPRP WinMain:Hit failure while processing sysprep cleanup providers; hr = 0x80070666
Error      [0x0f0060] SYSPRP ParseCommands:Found unsupported command line option '/?'
Error      [0x0f00a4] SYSPRP WinMain: Unable to parse command-line arguments to sysprep; GLE = 0x0
Error      [0x0f0060] SYSPRP ParseCommands:Found unsupported command line option '/?'
Error      [0x0f00a4] SYSPRP WinMain: Unable to parse command-line arguments to sysprep; GLE = 0x0

Continue reading Windows: sysprep fails with “Failure occurred while executing ‘Sysprep_Clean_Opk’ “

Windows: Removing Appx failed with 0x80070032: This app is part of Windows and cannot be uninstalled on a per-user basis.

Hi,

since the latest Edge updates an Appx Package Microsoft.MicrosoftEdge is installed on a “per user basis”.
Continue reading Windows: Removing Appx failed with 0x80070032: This app is part of Windows and cannot be uninstalled on a per-user basis.

Windows: Sysprep error “Machine is in an invalid state or we couldn’t update the recorded state.”

Hi,

when during the execution of sysprep the error message “A fatal error occured while trying to sysprep machine” is shown check the setupact.log and setuperr.log in “C:\windows\system32\sysprep\panther”.
Continue reading Windows: Sysprep error “Machine is in an invalid state or we couldn’t update the recorded state.”

Windows: Sysprep fails with “Package xy installed for a user, but not provisioned for all users”

Hi,

when you call sysprep and it fails (logfile C:\windows\System32\sysprep\panther\setuperr.log) with an error “Package xy installed for a user, but not provisioned for all users” you have to remove those packages from the user profile.

Continue reading Windows: Sysprep fails with “Package xy installed for a user, but not provisioned for all users”

Windows 10: Powershell Script to protect your privacy

Hi,

this Powershell script is a try to protect your privacy in Windows 10.
Update 17.08.2016: Lot of adjustment to Windows 10 1607. Added more documentation
Continue reading Windows 10: Powershell Script to protect your privacy