vmware / ansible-vsphere-gos-validation

Guest OS validation test set for vSphere using Ansible
Other
39 stars 29 forks source link

[Windows] Add removing Copilot appx package before running GOSC test cases #596

Closed Tomorrow9 closed 3 months ago

Tomorrow9 commented 3 months ago

In test cases "gosc_sanity_staticip" and "gosc_sanity_dhcp", get below sysprep error, according to Microsoft doc, we'll remove this Appx package before doing sysprep.

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