Forum Discussion
RokeJulianLockhart
Oct 14, 2021Brass Contributor
Which of Get-AppxPackage's "Remove-AppxPackage" and winget.exe's "uninstall" is preferable?
Without regard for the specified software that is designed for removal, how do the undermentioned:
winget uninstall --id 'Microsoft.Windows.Photos_8wekyb3d8bbwe' -e
...and the undermentioned:
Get-AppxPackage -AllUsers *Microsoft.Xbox* | Remove-AppxPackage
...differ?
- Not sure what your question is? The example you gave for Winget is very specific when specifying the id and exact parameter. The get-appxpackage command is using a foreach / pipe approach on everything matching the things between ** would could be more than one?
- RokeJulianLockhartBrass Contributor
Harm_Veenstra wrote:
Not sure what your question is? The example you gave for Winget is very specific when specifying the id and exact parameter. The get-appxpackage command is using a foreach / pipe approach on everything matching the things between ** would could be more than one?Harm_Veenstra, I apologise. The specificity was provided solely so that the command would operate if invoked. I merely want to know what the title asks — how the subcommand of the binary differs to the PowerShell module commandlet.
- No worries 🙂 The commands will have the same result, and the application will be removed. Technology behind it does differ, WinGet requires the client to be installed (Automatically on newer versions of Windows) and the Get-AppXpackage is already in Windows.