COM Exception
How to create the error
- Select option 1: Software & Apps
- Select option 2: Remove Bloatware Apps
- Select option 1: Remove ALL Windows Apps
- Affirm to warning with: y
- Error will be thrown in the console as can be seen in the snippet and screenshot.
PowerShell Console Output Snippet
Remove-AppxPackage : Removal Failed. Please contact your software vendor.
Deployment Remove operation with target volume C: on Package
Microsoft.MicrosoftSolitaireCollection_4.4.8204.0_x64_8wekyb3d8bbwe from: failed with error
0x80070002. See http://go.microsoft.com/fwlink/?LinkId=235160 for help diagnosing app deployment
issues.
At C:\Users\Blinky\Desktop\UnattendedWinstall\UWScript.ps1:613 char:9
+ Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue | ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Remove-AppxPackage], COMException
+ FullyQualifiedErrorId : System.Runtime.InteropServices.COMException,Microsoft.Windows.Appx.
PackageManager.Commands.RemoveAppxPackageCommand
PowerShell Console Output Screenshot
It seems that it's related to the SolitaireCollection App. Did the script continue to execute though?
Also, can you tell me which Windows version and build this happened on?
I see, yes the script continued and there was no other errors besides this, thought it might be helpful to report it you know. Windows Build Details:
Additional Details:
OS Name: Microsoft Windows 10 Home
Version: 10.0.19045 Build 19045
Other OS Description: Not Available
OS Manufacturer: Microsoft Corporation
Hardware Abstraction Layer Version: = "10.0.19041.5072"
I've also attached the exported summary of msinfo32.
Hey there and sorry for the late reply,
Since the creation of this issue I have released a new version of the XML file and a major update to Winhance, I recommend that you watch this video which provides a full demo of the current version along with how to use the new version of WIMUtil and how to install the drivers etc. You now also have the ability to create an autounattend.xml file based on your selections in Winhance, so you have more control over which apps are removed and which settings are applied.
I have also created this video about v3.0.0 of UnattendedWinstall, I suggest that you watch it too if you're interested.
I have replaced the UWScript file with Winhance, this issue should be fixed by using Winhance.
I'm closing this issue now, but if you need more help with the same issue, feel free to reopen it.