How are Get-AppxPackage's "Remove-AppxPackage" and winget.exe's "uninstall" different?

Brass Contributor

Without regard for the specified software that is designed for removal, how are "winget uninstall --id 'Microsoft.Windows.Photos_8wekyb3d8bbwe' -e" and "Get-AppxPackage -AllUsers *Microsoft.Xbox* | Remove-AppxPackage" different?

2 Replies
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?

I apologise. The specificity was provided solely so that the command would operate if invoked. I merely want to know what the title asks.