After deploying a virtual machine (VM) from a template using a Guest OS Customization Specification, one or more of the following issues occur:
This issue is caused by a change in Microsoft Sysprep behavior where operations are executed under the SYSTEM account. This prevents certain AppX package dependencies from initializing correctly.
Additionally, if the AppX Deployment Service (AppXSvc) is disabled in the gold image/template, Sysprep generalization halts, preventing customization tasks (rename, IP, domain join) from triggering.
Broadcom engineering is aware of the issue and is currently investigating.
As a workaround, Microsoft has provided the following PowerShell commands to re-register the affected system apps after Windows black screen.
Add-AppxPackage -Register -Path 'C:\Windows\SystemApps\MicrosoftWindows.Client.CBS_cw5n1h2txyewy\appxmanifest.xml' -DisableDevelopmentModeAdd-AppxPackage -Register -Path 'C:\Windows\SystemApps\Microsoft.UI.Xaml.CBS_8wekyb3d8bbwe\appxmanifest.xml' -DisableDevelopmentModeAdd-AppxPackage -Register -Path 'C:\Windows\SystemApps\MicrosoftWindows.Client.Core_cw5n1h2txyewy\appxmanifest.xml' -DisableDevelopmentModepowershell.exe -ExecutionPolicy Bypass -Command "& { Add-AppxPackage -Register -Path 'C:\Windows\SystemApps\MicrosoftWindows.Client.CBS_cw5n1h2txyewy\appxmanifest.xml' -DisableDevelopmentMode; Add-AppxPackage -Register -Path 'C:\Windows\SystemApps\Microsoft.UI.Xaml.CBS_8wekyb3d8bbwe\appxmanifest.xml' -DisableDevelopmentMode; Add-AppxPackage -Register -Path 'C:\Windows\SystemApps\MicrosoftWindows.Client.Core_cw5n1h2txyewy\appxmanifest.xml' -DisableDevelopmentMode; shutdown -r -t 5 -f}"Note: To open Task Manager when explorer is not running, you can use the keyboard shortcut: Ctrl+Shift+Esc
Add-AppxPackage' via Customization Spec 'RunOnce' consistently fails.===============================================================
Perform Windows Updates after the customization process is complete. This avoids compatibility and boot-time issues due to the update behavior changing pre-deployment system state. This is a known issue with Sysprep. For more details and the official workaround regarding this issue, refer to the Microsoft documentation: Fix black screen after running Sysprep as system on Windows 11 or Windows Server 2025