• Sysprep issue

    • This topic has 3 replies, 2 voices, and was last updated 2 months ago.

    Tags:

    Author
    Topic
    #2753867

    I’ve got an issue with sysprep. Here’s the logs:

    2025-03-07 14:07:22, Info SYSPRP ========================================================
    2025-03-07 14:07:22, Info SYSPRP === Beginning of a new sysprep run ===
    2025-03-07 14:07:22, Info SYSPRP ========================================================
    2025-03-07 14:07:22, Info [0x0f004d] SYSPRP The time is now 2025-03-07 14:07:22
    2025-03-07 14:07:22, Info [0x0f004e] SYSPRP Initialized SysPrep log at C:\Windows\System32\Sysprep\Panther
    2025-03-07 14:07:22, Info [0x0f0054] SYSPRP ValidatePrivileges:User has required privileges to sysprep machine
    2025-03-07 14:07:22, Info [0x0f007e] SYSPRP FCreateTagFile:Tag file C:\Windows\System32\Sysprep\Sysprep_succeeded.tag does not already exist, no need to delete anything
    2025-03-07 14:07:22, Warning SYSPRP WinMain: File operations pending
    2025-03-07 14:07:22, Info [0x0f003d] SYSPRP WinMain:Displaying dialog box for user to choose sysprep mode…
    2025-03-07 14:07:29, Info [0x0f00d7] SYSPRP WinMain:Pre-validing ‘cleanup’ internal providers.
    2025-03-07 14:07:29, Info SYSPRP RunDlls:Running platform actions specified in action file for phase 3
    2025-03-07 14:07:29, Info SYSPRP SysprepSession::CreateSession: Successfully created instance with action file C:\Windows\System32\Sysprep\ActionFiles\Cleanup.xml, and mode <null>
    2025-03-07 14:07:29, Info SYSPRP SysprepSession::Validate: Beginning action execution from C:\Windows\System32\Sysprep\ActionFiles\Cleanup.xml
    2025-03-07 14:07:29, Info SYSPRP SysprepSession::CreateXPathForSelection: Sysprep mode in registry is <null>
    2025-03-07 14:07:29, Info SYSPRP SysprepSession::CreateXPathForSelection: Processor architecture in registry is AMD64
    2025-03-07 14:07:29, Info SYSPRP ActionPlatform::LaunchModule: Executing method ‘Sysprep_Clean_Validate_Opk’ from C:\Windows\System32\spopk.dll
    2025-03-07 14:07:29, Info CSI 00000001 Shim considered [l:123]’\??\C:\WINDOWS\WinSxS\amd64_microsoft-windows-servicingstack_31bf3856ad364e35_10.0.26100.3189_none_a548e96177328fe3\wcp.dll’ : got STATUS_SUCCESS
    2025-03-07 14:07:30, Info SYSPRP Sysprep_Clean_Validate_Opk: Successfully validated reserves state on the machine for entering audit mode.
    2025-03-07 14:07:30, Info SYSPRP ActionPlatform::LaunchModule: Successfully executed ‘Sysprep_Clean_Validate_Opk’ from C:\Windows\System32\spopk.dll
    2025-03-07 14:07:30, Info [0x0f00d7] SYSPRP WinMain:Pre-validing ‘generalize’ internal providers.
    2025-03-07 14:07:30, Info SYSPRP RunDlls:Running platform actions specified in action file for phase 1
    2025-03-07 14:07:30, Info SYSPRP SysprepSession::CreateSession: Successfully created instance with action file C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml, and mode <null>
    2025-03-07 14:07:30, Info SYSPRP SysprepSession::Validate: Beginning action execution from C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml
    2025-03-07 14:07:30, Info SYSPRP SysprepSession::CreateXPathForSelection: Sysprep mode in registry is <null>
    2025-03-07 14:07:30, Info SYSPRP SysprepSession::CreateXPathForSelection: Processor architecture in registry is AMD64
    2025-03-07 14:07:30, Info SYSPRP ActionPlatform::LaunchModule: Executing method ‘ValidateBitLockerState’ from C:\Windows\System32\BdeSysprep.dll
    2025-03-07 14:07:30, Info SYSPRP ActionPlatform::LaunchModule: Successfully executed ‘ValidateBitLockerState’ from C:\Windows\System32\BdeSysprep.dll
    2025-03-07 14:07:30, Info SYSPRP ActionPlatform::LaunchModule: Executing method ‘SysprepGeneralizeValidate’ from C:\Windows\System32\AppxSysprep.dll
    2025-03-07 14:07:30, Info SYSPRP Entering SysprepGeneralizeValidate (Appx) – validating whether all apps are also provisioned.
    2025-03-07 14:07:30, Error SYSPRP Package Microsoft.WidgetsPlatformRuntime_1.6.2.0_x64__8wekyb3d8bbwe was installed for a user, but not provisioned for all users. This package will not function properly in the sysprep image.
    2025-03-07 14:07:30, Error SYSPRP Failed to remove apps for the current user: 0x80073cf2.
    2025-03-07 14:07:30, Error SYSPRP Exit code of RemoveAllApps thread was 0x3cf2.
    2025-03-07 14:07:30, Error SYSPRP ActionPlatform::LaunchModule: Failure occurred while executing ‘SysprepGeneralizeValidate’ from C:\Windows\System32\AppxSysprep.dll; dwRet = 0x3cf2
    2025-03-07 14:07:30, Error SYSPRP SysprepSession::Validate: Error in validating actions from C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml; dwRet = 0x3cf2
    2025-03-07 14:07:30, Error SYSPRP RunPlatformActions:Failed while validating Sysprep session actions; dwRet = 0x3cf2
    2025-03-07 14:07:30, Error [0x0f0070] SYSPRP RunDlls:An error occurred while running registry sysprep DLLs, halting sysprep execution. dwRet = 0x3cf2
    2025-03-07 14:07:30, Error [0x0f00d8] SYSPRP WinMain:Hit failure while pre-validate sysprep generalize internal providers; hr = 0x80073cf2
    2025-03-07 14:07:32, Info [0x0f0052] SYSPRP Shutting down SysPrep log
    2025-03-07 14:07:32, Info [0x0f004d] SYSPRP The time is now 2025-03-07 14:07:32

     

    I’ve tried both:

    Remove-AppxProvisionedPackage -PackageName Microsoft.WidgetsPlatformRuntime_1.6.2.0_x64__8wekyb3d8bbwe

    Remove-ProvisionedAppxPackage -PackageName Microsoft.WidgetsPlatformRuntime_1.6.2.0_x64__8wekyb3d8bbwe

     

    Both give an error and fail to remove the errant package. Any ideas

     

    Viewing 2 reply threads
    Author
    Replies
    • #2753877

      Did you try?

      https://answers.microsoft.com/en-us/windows/forum/all/trouble-with-sysprep-on-w11-24h2-sysprep-fails/721c6fed-467a-4c47-b992-5effabb0b4cc

      My current list looks like this.

      Remove-AppxPackage -Package Microsoft.OutlookForWindows_1.2023.1129.100_x64__8wekyb3d8bbwe

      Remove-AppxPackage -Package Microsoft.WidgetsPlatformRuntime_1.6.1.0_x64__8wekyb3d8bbwe

      Remove-AppxPackage -Package MicrosoftTeams_24277.3102.3183.2670_x64__8wekyb3d8bbwe

      Remove-AppxPackage -Package Microsoft.Copilot_1.1.8.0_neutral__8wekyb3d8bbwe

      Susan Bradley Patch Lady/Prudent patcher

    • #2753886

      I’m getting:

      Remove-AppxPackage Microsoft.WidgetsPlatformRuntime_1.6.2.0_x64__8wekyb3d8bbwe Remove-AppxPackage : Deployment failed with HRESULT: 0x80073CF1, Package was not found. Windows cannot remove Microsoft.WidgetsPlatformRuntime_1.6.2.0_x64__8wekyb3d8bbwe because the current user does not have that package installed. Use Get-AppxPackage to see the list of packages installed.
      NOTE: For additional information, look for [ActivityId] 4ae273d7-8fa8-000c-aab7-e24aa88fdb01 in the Event Log or use
      the command line Get-AppPackageLog -ActivityID 4ae273d7-8fa8-000c-aab7-e24aa88fdb01
      At line:1 char:1
      + Remove-AppxPackage Microsoft.WidgetsPlatformRuntime_1.6.2.0_x64__8wek …
      + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo : ObjectNotFound: (Microsoft.Widge…__8wekyb3d8bbwe:String) [Remove-AppxPackage], PSInval
      idOperationException
      + FullyQualifiedErrorId : DeploymentError,Microsoft.Windows.Appx.PackageManager.Commands.RemoveAppxPackageCommand

       

      I tried removing the same package on the other 2 users I have (one local) and 2 domain to be sure and it isn’t working…

    • #2753890

      Finally got it. I sure wish Microsoft would simply fix Sysprep to remove all garbage that gets in the way of its being functional at all.

      I removed Microsoft.WidgetsPlatformRuntime_1.6.2.0_x64__8wekyb3d8bbwe and CoPilot via

      Remove-AppxPackage -Package <PackageFullName> -AllUsers
      and
      Remove-AppxProvisionedPackage -Online -PackageName

       

      Then Sysprep worked fine. Thanks for your help Susan! 😁

    Viewing 2 reply threads
    Reply To: Sysprep issue

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: