Sysprep Validation Failed

The issue with microsoft.widgetsplatformruntim triggered the Sysprep validation then Failed instantly

Even the VM was newly installed a possibility that the ISO image had a corrupted applications bundled with the image


Another Issue triggering the error was that the Bitlocker was automatically encrypting the C drive. By default under Windows 11 some installation image already have Bitlocker enabled and this is a known fact from Microsoft


Resolutions:

  1. Suspend/Decrypt Bitlocker before running Sysprep
  2. Run on Command Prompt: manage-bde -off C:
  3. Reboot the Machine

Remove permanently the corrupted Application triggering the error and to not be installed before on Sysprep

  • Run PowerShell Commands under Administrator
  • Get-AppxPackage -AllUsers *microsoft.widgetsplatformruntime* | Remove-AppxPackage
    Get-AppxProvisionedPackage -Online | Where-Object {$_.DisplayName -like "*microsoft.widgetsplatformruntime*"} | Remove-AppxProvisionedPackage -Online
  • Get-AppxPackage -AllUsers *WebExperience* | Remove-AppxPackage
  • Get-AppxProvisionedPackage -Online | Where-Object {$_.DisplayName -like "*WebExperience*"} | Remove-AppxProvisionedPackage -Online