alaurie / WimWitchFK

General clean up of WimWitch script before converting into a PowerShell module.
MIT License
63 stars 8 forks source link

Windows 11 23H2 AppX Removal Issues #24

Open bbrownchg opened 4 months ago

bbrownchg commented 4 months ago

In addition to some of the previously reported quirky issues with a 23H2 ISO/WIM being detected as 22H2, I'm starting to run into issues with AppX removal on a 23H2 WIM.

When I set up 4.0.1, I started with a brand-new configuration and imported WIM. Initially, the AppX failure looked like it was just Clipchamp, which was also first in the list, and once I removed that app from the removal list, the remaining apps would be successfully removed with no errors reported.

On the next time I ran through that WIM, the first AppX package listed once again reported a failure and none of the apps were removed. The WIM Witch log reports:

02/21/2024 14:37:35 Error - Failed to remove Microsoft.BingNews_4.2.27001.0_neutral_~_8wekyb3d8bbwe Microsoft.BingWeather_4.53.33420.0_neutral_~_8wekyb3d8bbwe Microsoft.GamingApp_2021.427.138.0_neutral_~_8wekyb3d8bbwe Microsoft.GetHelp_10.2201.421.0_neutral_~_8wekyb3d8bbwe Microsoft.Getstarted_2021.2204.1.0_neutral_~_8wekyb3d8bbwe Microsoft.MicrosoftOfficeHub_18.2204.1141.0_neutral_~_8wekyb3d8bbwe Microsoft.MicrosoftSolitaireCollection_4.12.3171.0_neutral_~_8wekyb3d8bbwe Microsoft.windowscommunicationsapps_16005.14326.20544.0_neutral_~_8wekyb3d8bbwe Microsoft.WindowsFeedbackHub_2022.106.2230.0_neutral_~_8wekyb3d8bbwe Microsoft.Xbox.TCUI_1.23.28004.0_neutral_~_8wekyb3d8bbwe Microsoft.XboxGameOverlay_1.47.2385.0_neutral_~_8wekyb3d8bbwe Microsoft.XboxGamingOverlay_2.622.3232.0_neutral_~_8wekyb3d8bbwe Microsoft.XboxIdentityProvider_12.50.6001.0_neutral_~_8wekyb3d8bbwe Microsoft.XboxSpeechToTextOverlay_1.17.29001.0_neutral_~_8wekyb3d8bbwe Microsoft.YourPhone_1.22022.147.0_neutral_~_8wekyb3d8bbwe Microsoft.ZuneMusic_11.2202.46.0_neutral_~_8wekyb3d8bbwe Microsoft.ZuneVideo_2019.22020.10021.0_neutral_~_8wekyb3d8bbwe 02/21/2024 14:37:35 Error - The parameter is incorrect.

The DISM log reports:

DISM DISM Appx Provider: PID=3304 TID=14760 onecore\admin\appmodel\utilities\provisionhelper\msixpackageadapter.cpp(2059)\AppxProvider.dll!00007FFCA8CD41C3: (caller: 00007FFCA8C9B0D5) ReturnHr(3) tid(39a8) 80070057 The parameter is incorrect.

Msg:[Failed to determine whether package full name Microsoft.BingNews_4.2.27001.0_neutral_~_8wekyb3d8bbwe

2024-02-21 14:37:34, Error DISM DISM Appx Provider: PID=3304 TID=14760 Failed while initializing package adapter for package 'Microsoft.BingNews_4.2.27001.0_neutral_~_8wekyb3d8bbwe

2024-02-21 14:37:34, Error DISM API: PID=7940 TID=3036 Failed to remove package - CRemoveAppxCommandObject::InternalExecute(hr:0x80070057)

My DISM logs are also full of all sorts of errors relating to the SSU, shims, etc, prior to the AppX portion. Happy to provide any additional details you may need.

aj-tnt commented 4 months ago

I'm having the same issue.

andrewljoy commented 1 month ago

Yes same issue

Module Version: 4.0.1 OS: Win11 Ent 23H2

chrisecklar commented 2 weeks ago

This is happening with all images and OS versions in WimWitch. It happens when using a saved config file. The only workaround that I found is to start from scratch with no saved config file in each WimWitch session.

There's definitely something going on with how the Save Configuration routine writes the list of selected apps for removal.