Share via


Unable to remove Windows 10 store app installed under S-1-5-18

Question

Friday, September 28, 2018 2:11 PM

We use hyper-v for windows 10 VDI. My routine for updating the template used to deploy is:

1. apply checkpoint taken before sysprep was run

2. install updates, run disk cleanup

3. just before running sysprep again take a checkpoint (to revert to the next update)

4. sysprep

Unfortunately the latest update (release 1803) has installed (or staged) microsoft.wallet under the S-1-5-18 account and sysprep errors out on it. I've tried all of the powershell command to remove-appxpackage and remove-appxprovisionedpackge - it's still there. I was about to try a route of installing some process hacker and sql lite in order to edit C:\ProgramData\Microsoft\Windows\AppRepository\StateRepository-Machine.srd and set IsInbox to 0 , but allegedly doing so may block future windows updates.

Any tips for killing this thing - or making sysprep ignore it - would be hugely appreciated.

Name              : Microsoft.Wallet
Publisher         : CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
Architecture      : X64
ResourceId        :
Version           : 2.1.18009.0
PackageFullName   : Microsoft.Wallet_2.1.18009.0_x64__8wekyb3d8bbwe
InstallLocation   : C:\Program Files\WindowsApps\Microsoft.Wallet_2.1.18009.0_x64__8wekyb3d8bbwe
IsFramework       : False
PackageFamilyName : Microsoft.Wallet_8wekyb3d8bbwe
PublisherId       : 8wekyb3d8bbwe
IsResourcePackage : False
IsBundle          : False
IsDevelopmentMode : False
IsPartiallyStaged : False
SignatureKind     : Store
Status            : Ok

PackageFullName        : Microsoft.Wallet_2.1.18009.0_x64__8wekyb3d8bbwe
PackageUserInformation : {S-1-5-18 [S-1-5-18]: Staged}

Remove-AppxPackage -Package Microsoft.Wallet_2.1.18009.0_x64__8wekyb3d8bbwe

doesn't work.

Remove-AppxProvisionedpackage - -Online -Package Microsoft.Wallet_2.1.18009.0_x64__8wekyb3d8bbwe
doesn't work.

From setupact.log

2018-09-28 15:12:25, Info                  SYSPRP Entering SysprepGeneralizeValidate (Appx) - validating whether all apps are also provisioned.

2018-09-28 15:12:25, Error                 SYSPRP Package Microsoft.Wallet_1.0.16328.0_x64__8wekyb3d8bbwe was installed for a user, but not provisioned for all users. This package will not function properly in the sysprep image.

2018-09-28 15:12:25, Error                 SYSPRP Failed to remove apps for the current user: 0x80073cf2.

2018-09-28 15:12:25, Error                 SYSPRP Exit code of RemoveAllApps thread was 0x3cf2.

2018-09-28 15:12:25, Error                 SYSPRP ActionPlatform::LaunchModule: Failure occurred while executing 'SysprepGeneralizeValidate' from C:\Windows\System32\AppxSysprep.dll; dwRet = 0x3cf2
2018-09-28 15:12:25, Error                 SYSPRP SysprepSession::Validate: Error in validating actions from C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml; dwRet = 0x3cf2
2018-09-28 15:12:25, Error                 SYSPRP RunPlatformActions:Failed while validating Sysprep session actions; dwRet = 0x3cf2
2018-09-28 15:12:25, Error      [0x0f0070] SYSPRP RunExternalDlls:An error occurred while running registry sysprep DLLs, halting sysprep execution. dwRet = 0x3cf2
2018-09-28 15:12:25, Error      [0x0f00d8] SYSPRP WinMain:Hit failure while pre-validate sysprep generalize internal providers; hr = 0x80073cf2
2018-09-28 15:12:34, Info       [0x0f0052] SYSPRP Shutting down SysPrep log
2018-09-28 15:12:34, Info       [0x0f004d] SYSPRP The time is now 2018-09-28 15:12:34

From setuperr.log

2018-09-28 15:12:25, Error                 SYSPRP Package Microsoft.Wallet_1.0.16328.0_x64__8wekyb3d8bbwe was installed for a user, but not provisioned for all users. This package will not function properly in the sysprep image.

2018-09-28 15:12:25, Error                 SYSPRP Failed to remove apps for the current user: 0x80073cf2.

2018-09-28 15:12:25, Error                 SYSPRP Exit code of RemoveAllApps thread was 0x3cf2.

2018-09-28 15:12:25, Error                 SYSPRP ActionPlatform::LaunchModule: Failure occurred while executing 'SysprepGeneralizeValidate' from C:\Windows\System32\AppxSysprep.dll; dwRet = 0x3cf2
2018-09-28 15:12:25, Error                 SYSPRP SysprepSession::Validate: Error in validating actions from C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml; dwRet = 0x3cf2
2018-09-28 15:12:25, Error                 SYSPRP RunPlatformActions:Failed while validating Sysprep session actions; dwRet = 0x3cf2
2018-09-28 15:12:25, Error      [0x0f0070] SYSPRP RunExternalDlls:An error occurred while running registry sysprep DLLs, halting sysprep execution. dwRet = 0x3cf2
2018-09-28 15:12:25, Error      [0x0f00d8] SYSPRP WinMain:Hit failure while pre-validate sysprep generalize internal providers; hr = 0x80073cf2

All replies (3)

Sunday, September 30, 2018 7:44 AM âś…Answered | 1 vote

What account do you use when you run the sysprep command?

I had a same problem but when I use the local administrator account the app will successfully removed.


Monday, October 1, 2018 6:02 AM | 1 vote

Hi,

In addition, you can also refer to the following article and check the result.

Fix problems with apps from Microsoft Store

https://support.microsoft.com/en-us/help/4027498/microsoft-store-fix-problems-with-apps

Best Regards,

Tao

Please remember to mark the replies as answers if they help. If you have feedback for TechNet Subscriber Support, contact [email protected].


Monday, October 1, 2018 10:49 AM

that was it - sysprep still choked on stuff, but at least as local admin I could actually remove it, and all of the others that it failed on. Huge relief as I has to remove all of the checkpoints so I could expand the VHD so that there was enough room for the microsoft updates to install.

thanks!