Removes provisioned AppX packages for the current user and available AppX packages from the running system. You can generate a list of your system's available AppX packages with the following in an Administrator PowerShell:
(Get-AppxPackage).Name
This script is published to the PowerShell Gallery. Ensure your system is configured for this repository then execute the following in an Administrator PowerShell:
Install-Script ozo-remove-appx-packages
Run this script in an Admininstrator PowerShell.
ozo-remove-appx-packages
-Packages <Array>
Parameter | Description |
---|---|
Packages |
A comma-separated list of packages to remove. |
ozo-remove-appx-packages -Packages "Microsoft.BingWeather","Microsoft.SkypeApp","Microsoft.ZuneMusic"
Special thanks to my employer, Sonic Healthcare USA, who has supported the growth of my PowerShell skillset and enabled me to contribute portions of my work product to the PowerShell community.