Wissensdatenbank
Buehl, Kevin
27 Juli 2016
3.494

Wissensdatenbank

Microsoft Windows 10 Sysprep funktioniert nicht

Inhaltsverzeichnis

Situation

           SYSPRP ========================================================
SYSPRP --- Beginning of a new sysprep run ---
SYSPRP ========================================================
[0x0f004d] SYSPRP The time is now 5
[0x0f004e] SYSPRP Initialized SysPrep log at C:\Windows\System32\Sysprep\Panther
[0x0f0054] SYSPRP ValidateUser:User has required privileges to sysprep machine
[0x0f007e] SYSPRP FCreateTagFile:Tag file C:\Windows\System32\Sysprep\Sysprep_succeeded.tag does not already exist, no need to delete anything
[0x0f003d] SYSPRP WinMain:Displaying dialog box for user to choose sysprep mode...
[0x0f00d7] SYSPRP WinMain:Pre-validing 'cleanup' internal providers.
SYSPRP RunExternalDlls:Running platform actions specified in action file for phase 3
[0x0f00ba] SYSPRP SysprepSession::CreateSession: Successfully created instance with mount path C:, action file C:\Windows\System32\Sysprep\ActionFiles\Cleanup.xml, and mode <null>
SYSPRP SysprepSession::Validate: Beginning action execution from C:\Windows\System32\Sysprep\ActionFiles\Cleanup.xml
SYSPRP ActionPlatform::GetStringValue: Getting REG_SZ value SysprepMode under key HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Setup\Sysprep
SYSPRP ActionPlatform::GetValue: Getting value SysprepMode under key HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Setup\Sysprep
SYSPRP ActionPlatform::GetValue: Error from RegQueryValueEx on value SysprepMode under key HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Setup\Sysprep; dwRet = 0x2
SYSPRP SysprepSession::CreateXPathForSelection: Sysprep mode in registry is <null>
SYSPRP ActionPlatform::GetStringValue: Getting REG_SZ value PROCESSOR_ARCHITECTURE under key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment
SYSPRP ActionPlatform::GetValue: Getting value PROCESSOR_ARCHITECTURE under key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment
SYSPRP SysprepSession::CreateXPathForSelection: Processor architecture in registry is AMD64
[0x0f0080] SYSPRP ActionPlatform::LaunchModule: Found 'Sysprep_Clean_Validate_Opk' in C:\Windows\System32\spopk.dll; executing it
[0x0f0081] SYSPRP ActionPlatform::LaunchModule: Successfully executed 'Sysprep_Clean_Validate_Opk' from C:\Windows\System32\spopk.dll without error
[0x0f00d7] SYSPRP WinMain:Pre-validing 'generalize' internal providers.
SYSPRP RunExternalDlls:Running platform actions specified in action file for phase 1
[0x0f00ba] SYSPRP SysprepSession::CreateSession: Successfully created instance with mount path C:, action file C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml, and mode <null>
SYSPRP SysprepSession::Validate: Beginning action execution from C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml
SYSPRP ActionPlatform::GetStringValue: Getting REG_SZ value SysprepMode under key HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Setup\Sysprep
SYSPRP ActionPlatform::GetValue: Getting value SysprepMode under key HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Setup\Sysprep
SYSPRP ActionPlatform::GetValue: Error from RegQueryValueEx on value SysprepMode under key HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Setup\Sysprep; dwRet = 0x2
SYSPRP SysprepSession::CreateXPathForSelection: Sysprep mode in registry is <null>
SYSPRP ActionPlatform::GetStringValue: Getting REG_SZ value PROCESSOR_ARCHITECTURE under key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment
SYSPRP ActionPlatform::GetValue: Getting value PROCESSOR_ARCHITECTURE under key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment
SYSPRP SysprepSession::CreateXPathForSelection: Processor architecture in registry is AMD64
[0x0f0080] SYSPRP ActionPlatform::LaunchModule: Found 'SysprepGeneralizeValidate' in C:\Windows\System32\AppxSysprep.dll; executing it
SYSPRP Entering SysprepGeneralizeValidate (Appx) - validating whether all apps are also provisioned.

SYSPRP Package microsoft.windowscommunicationsapps_17.6308.42271.0_x64__8wekyb3d8bbwe was installed for a user, but not provisioned for all users. This package will not function properly in the sysprep image.
SYSPRP Failed to remove apps for the current user: 0x80073cf2.
SYSPRP Exit code of RemoveAllApps thread was 0x3cf2.
[0x0f0082] SYSPRP ActionPlatform::LaunchModule: Failure occurred while executing 'SysprepGeneralizeValidate' from C:\Windows\System32\AppxSysprep.dll; dwRet = 0x3cf2
SYSPRP SysprepSession::Validate: Error in validating actions from C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml; dwRet = 0x3cf2
SYSPRP RunPlatformActions:Failed while validating SysprepSession actions; dwRet = 0x3cf2
[0x0f0070] SYSPRP RunExternalDlls:An error occurred while running registry sysprep DLLs, halting sysprep execution. dwRet = 0x3cf2
[0x0f00d8] SYSPRP WinMain:Hit failure while pre-validate sysprep generalize internal providers; hr = 0x80073cf2
[0x0f0052] SYSPRP Shutting down SysPrep log
[0x0f004d] SYSPRP The time is now 2016-07-27 18:35:27


Lösung

Verwenden Sie folgendes PowerShell Skript um die Windows 10 Apps zu deinstallieren und führen Sie anschliessend die Sysprep-Anwendung erneut aus.
$Packages = (
'Microsoft.3DBuilder', # '3DBuilder' app
'Microsoft.BingFinance', # 'Money' app - Financial news
'Microsoft.BingSports', # 'Sports' app - Sports news
'Microsoft.BingWeather', # 'Weather' app
'Microsoft.CommsPhone', # 'Phone' app
'Microsoft.ConnectivityStore',
'Microsoft.Getstarted', # 'Get Started' link
'Microsoft.Messaging', # 'Messaging' app
'Microsoft.MicrosoftOfficeHub',
'Microsoft.MicrosoftSolitaireCollection', # Solitaire collection
'Microsoft.Office.OneNote', # Onenote app
'Microsoft.Office.Sway', # 'Sway' app
'Microsoft.People', # 'People' app
'Microsoft.SkypeApp', # 'Get Skype' link
'Microsoft.WindowsAlarms', # 'Alarms and Clock' app
'microsoft.windowscommunicationsapps', # 'Calendar and Mail' app
'Microsoft.WindowsPhone', # 'Phone Companion' app
'Microsoft.WindowsStore', # Windows Store
'Microsoft.XboxApp', # Xbox junk, unfortunately 'Microsoft.XboxGameCallableUI' and 'Microsoft.XboxIdentityProvider' cannot be removed.
'Microsoft.ZuneMusic', # 'Groove Music' app
'Microsoft.ZuneVideo', # Groove Music
'king.com.CandyCrushSodaSaga', # Candy Crush app
'9E2F88E3.Twitter' # Twitter app
)
Get-AppxProvisionedPackage -Online | Where-Object Name -In $Packages | Remove-ProvisionedAppxPackage -Online
Get-AppxPackage –AllUsers | Where-Object Name -In $Packages | Remove-AppxPackage