ntdevlabs / tiny11builder

Scripts to build a trimmed-down Windows 11 image.
9.87k stars 855 forks source link

Removing applications via Get-ProvisionedAppxPackage does not work #206

Open 40OIL opened 5 months ago

40OIL commented 5 months ago

I downloaded the Windows11 InsiderPreview x64 26100 image. The script ran on Windows 11 Pro 22H2, OS Build 22621.1105 The image was rebuilt, recorded in ISO and installed normally, but the Weather, Teams, YourPhone, Xbox and other applications remained in it, a total of 32 applications and 7 system components.

I started to figure it out - in 22H2 Get-AppXProvisionedPackage requires parameters; but it doesn't work Get-AppxProvisionedPackage -Online and Get-AppXProvisionedPackage -Path c:\mount,

there is no Get-ProvisionedAppxPackages cmdlet, and Get-ProvisionedAppxPackage requires parameters but does not accept Get-ProvisionedAppxPackage -Path c:\mount and Get-ProvisionedAppxPackage -online

Get-AppxPackage works without parameters (the -Path c:\mount parameter is not accepted), but it also displays the packages of the Windows in which I run it, and not the mounted wim?

How can I properly remove Appx applications from a mounted wim?