Sys preparation is failing

sns 9,226 Reputation points
2023-12-05T06:18:07.0766667+00:00

Here is the error:

User's image

and logs:

setupact.log

Please suggest.

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,252 questions
{count} vote

1 answer

Sort by: Most helpful
  1. shiva patpi 13,146 Reputation points Microsoft Employee
    2023-12-06T06:30:31.2+00:00

    Hello @sns,

    As per the error log

    2023-12-05 05:59:58, Error SYSPRP Package Microsoft.MicrosoftEdge.Stable_119.0.2151.72_neutral__8wekyb3d8bbwe was installed for a user, but not provisioned for all users. This package will not function properly in the sysprep image.

    2023-12-05 05:59:58, Error SYSPRP Failed to remove apps for the current user: 0x80073cf2.

    2023-12-05 05:59:58, Error SYSPRP Exit code of RemoveAllApps thread was 0x3cf2.

    2023-12-05 05:59:58, Error SYSPRP ActionPlatform::LaunchModule: Failure occurred while executing 'SysprepGeneralizeValidate' from C:\Windows\System32\AppxSysprep.dll; dwRet = 0x3cf2

    /////////////

    It is complaining about the application Microsoft.MicrosoftEdge !!

    Can you run the below command in the powershell prompt before you run the sysprep:

    get-appxpackage -allusers -name "Microsoft.MicrosoftEdge" | Remove-appxpackage

    Then retry the sysprep ! Let us know if that helps !

    Regards,

    Shiva.

    2 people found this answer helpful.