Executing PS command and no Output

David VerPlanck 1 Reputation point
2021-02-26T01:40:58.76+00:00

I'm sure this is answered somewhere already, but after a couple hours of finding things that don't answer this, I just need to ask...

I open a PS console, as admin, execution policy not restricted,

When I run...
Get-AppxPackage Microsoft.XboxApp_48.69.18001.0_neutral_~_8wekyb3d8bbwe -AllUsers | Remove-AppxPackage

It completes immediately and returns nothing.
I check C:\Program Files\WindowsApps and it is still there.
I don't want to just delete the folder since its "installed".

What am I missing?

Thank you,

Dave

Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,363 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Ian Xue (Shanghai Wicresoft Co., Ltd.) 29,651 Reputation points Microsoft Vendor
    2021-02-26T03:17:19.103+00:00

    Hi,

    Try the package name instead of the full name

    Get-AppxPackage  Microsoft.XboxApp -AllUsers | Remove-AppxPackage  
    

    Best Regards,
    Ian Xue

    ============================================

    If the Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments