UnattendedWinstall icon indicating copy to clipboard operation
UnattendedWinstall copied to clipboard

COM Exception

Open blinkyboi opened this issue 1 year ago • 2 comments

How to create the error

  1. Select option 1: Software & Apps
  2. Select option 2: Remove Bloatware Apps
  3. Select option 1: Remove ALL Windows Apps
  4. Affirm to warning with: y
  5. 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

image

blinkyboi avatar Nov 07 '24 19:11 blinkyboi

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?

memstechtips avatar Nov 08 '24 18:11 memstechtips

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:

image

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.

blinkyboi avatar Nov 12 '24 16:11 blinkyboi

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.

memstechtips avatar Nov 14 '25 20:11 memstechtips