Scroll Top

Sysprep.exe und NotepadPlusPlus

Martin Handel
Problem:

Sysprep bei Windows 10 und/oder Windows 11 schlägt fehl wegen der App „NotepadPlusPlus“.

Lösung:

Entfernen der App NotepadPlusPlus vor dem Sysprep per Windows PowerShell

Powershell
NetepadPlusPlus

Nachtrag vom 10.10.2024

Vielleicht liegt es ja am Orkan Kirk, aber jetzt mag auch der aktuelle Server 2025 nicht mehr „syspreppen“ ohne Handanlegen und bei Windows 11 kamen im aktuellen Built zwei Pakete hinzu, welche vor dem Sysprep entfernt werden müssen.

2024-10-10 06:25:53, Info SYSPRP ========================================================
2024-10-10 06:25:53, Info SYSPRP === Beginning of a new sysprep run ===
2024-10-10 06:25:53, Info SYSPRP ========================================================
2024-10-10 06:25:53, Info [0x0f004d] SYSPRP The time is now 2024-10-10 06:25:53
2024-10-10 06:25:53, Info [0x0f004e] SYSPRP Initialized SysPrep log at c:\Windows\System32\Sysprep\Panther
2024-10-10 06:25:53, Info [0x0f0054] SYSPRP ValidatePrivileges:User has required privileges to sysprep machine
2024-10-10 06:25:53, Info [0x0f007e] SYSPRP FCreateTagFile:Tag file c:\Windows\System32\Sysprep\Sysprep_succeeded.tag does not already exist, no need to delete anything
2024-10-10 06:25:53, Info [0x0f005f] SYSPRP ParseCommands:Found supported command line option 'OOBE'
2024-10-10 06:25:53, Info [0x0f005f] SYSPRP ParseCommands:Found supported command line option 'GENERALIZE'
2024-10-10 06:25:53, Info [0x0f005f] SYSPRP ParseCommands:Found supported command line option 'UNATTEND'
2024-10-10 06:25:53, Info [0x0f005f] SYSPRP ParseCommands:Found supported command line option 'SHUTDOWN'
2024-10-10 06:25:53, Info [0x0f00d7] SYSPRP WinMain:Pre-validing 'cleanup' internal providers.
2024-10-10 06:25:53, Info SYSPRP RunDlls:Running platform actions specified in action file for phase 3
2024-10-10 06:25:53, Info SYSPRP SysprepSession::CreateSession: Successfully created instance with action file C:\Windows\System32\Sysprep\ActionFiles\Cleanup.xml, and mode <null>
2024-10-10 06:25:54, Info SYSPRP SysprepSession::Validate: Beginning action execution from C:\Windows\System32\Sysprep\ActionFiles\Cleanup.xml
2024-10-10 06:25:54, Info SYSPRP SysprepSession::CreateXPathForSelection: Sysprep mode in registry is <null>
2024-10-10 06:25:54, Info SYSPRP SysprepSession::CreateXPathForSelection: Processor architecture in registry is AMD64
2024-10-10 06:25:54, Info SYSPRP ActionPlatform::LaunchModule: Executing method 'Sysprep_Clean_Validate_Opk' from C:\Windows\System32\spopk.dll
2024-10-10 06:25:54, Info SYSPRP Sysprep_Clean_Validate_Opk:Sysprep will run on an upgraded OS.
2024-10-10 06:25:54, Info CSI 00000001 Shim considered [l:123]'\??\C:\WINDOWS\WinSxS\amd64_microsoft-windows-servicingstack_31bf3856ad364e35_10.0.26296.5001_none_432ad277187b7056\wcp.dll' : got STATUS_SUCCESS
2024-10-10 06:25:55, Info SYSPRP Sysprep_Clean_Validate_Opk: Successfully validated reserves state on the machine for entering audit mode.
2024-10-10 06:25:55, Info SYSPRP ActionPlatform::LaunchModule: Successfully executed 'Sysprep_Clean_Validate_Opk' from C:\Windows\System32\spopk.dll
2024-10-10 06:25:55, Info [0x0f00d7] SYSPRP WinMain:Pre-validing 'generalize' internal providers.
2024-10-10 06:25:55, Info SYSPRP RunDlls:Running platform actions specified in action file for phase 1
2024-10-10 06:25:55, Info SYSPRP SysprepSession::CreateSession: Successfully created instance with action file C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml, and mode <null>
2024-10-10 06:25:55, Info SYSPRP SysprepSession::Validate: Beginning action execution from C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml
2024-10-10 06:25:55, Info SYSPRP SysprepSession::CreateXPathForSelection: Sysprep mode in registry is <null>
2024-10-10 06:25:55, Info SYSPRP SysprepSession::CreateXPathForSelection: Processor architecture in registry is AMD64
2024-10-10 06:25:55, Info SYSPRP ActionPlatform::LaunchModule: Executing method 'SysprepGeneralizeValidate' from C:\Windows\System32\AppxSysprep.dll
2024-10-10 06:25:55, Info SYSPRP Entering SysprepGeneralizeValidate (Appx) - validating whether all apps are also provisioned.
2024-10-10 06:25:55, Error SYSPRP Package Microsoft.MicrosoftEdge.Stable_122.0.2365.59_neutral__8wekyb3d8bbwe was installed for a user, but not provisioned for all users. This package will not function properly in the sysprep image.
2024-10-10 06:25:55, Error SYSPRP Failed to remove apps for the current user: 0x80073cf2.
2024-10-10 06:25:55, Error SYSPRP Exit code of RemoveAllApps thread was 0x3cf2.
2024-10-10 06:25:55, Error SYSPRP ActionPlatform::LaunchModule: Failure occurred while executing 'SysprepGeneralizeValidate' from C:\Windows\System32\AppxSysprep.dll; dwRet = 0x3cf2
2024-10-10 06:25:55, Error SYSPRP SysprepSession::Validate: Error in validating actions from C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml; dwRet = 0x3cf2
2024-10-10 06:25:55, Error SYSPRP RunPlatformActions:Failed while validating Sysprep session actions; dwRet = 0x3cf2
2024-10-10 06:25:55, Error [0x0f0070] SYSPRP RunDlls:An error occurred while running registry sysprep DLLs, halting sysprep execution. dwRet = 0x3cf2
2024-10-10 06:25:55, Error [0x0f00d8] SYSPRP WinMain:Hit failure while pre-validate sysprep generalize internal providers; hr = 0x80073cf2
2024-10-10 06:26:05, Info [0x0f0052] SYSPRP Shutting down SysPrep log
2024-10-10 06:26:05, Info [0x0f004d] SYSPRP The time is now 2024-10-10 06:26:05


2024-10-10 06:25:55, Error SYSPRP Package Microsoft.MicrosoftEdge.Stable_122.0.2365.59_neutral__8wekyb3d8bbwe was installed for a user, but not provisioned for all users. This package will not function properly in the sysprep image.
2024-10-10 06:25:55, Error SYSPRP Failed to remove apps for the current user: 0x80073cf2.
2024-10-10 06:25:55, Error SYSPRP Exit code of RemoveAllApps thread was 0x3cf2.
2024-10-10 06:25:55, Error SYSPRP ActionPlatform::LaunchModule: Failure occurred while executing 'SysprepGeneralizeValidate' from C:\Windows\System32\AppxSysprep.dll; dwRet = 0x3cf2
2024-10-10 06:25:55, Error SYSPRP SysprepSession::Validate: Error in validating actions from C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml; dwRet = 0x3cf2
2024-10-10 06:25:55, Error SYSPRP RunPlatformActions:Failed while validating Sysprep session actions; dwRet = 0x3cf2
2024-10-10 06:25:55, Error [0x0f0070] SYSPRP RunDlls:An error occurred while running registry sysprep DLLs, halting sysprep execution. dwRet = 0x3cf2
2024-10-10 06:25:55, Error [0x0f00d8] SYSPRP WinMain:Hit failure while pre-validate sysprep generalize internal providers; hr = 0x80073cf2
Die Lösung:

Beim Server 2025:

Remove-AppxPackage -Package "Microsoft.MicrosoftEdge.Stable_122.0.2365.59_neutral__8wekyb3d8bbwe"

Bei Windows 11:

Remove-AppxPackage -Package "Microsoft.WidgetsPlatformRuntime_1.4.0.0_x64__8wekyb3d8bbwe"
Remove-AppxPackage -Package "Microsoft.Ink.Handwriting.Main.en-US.1.0.1_0.645.1237.0_x64__8wekyb3d8bbwe"

Related Posts