Apps removed using powershell come back

VgerNYC 1 Reputation point
2022-09-08T18:17:26.777+00:00

I noticed if I remove apps for all users from Windows 11 and then sign in as a new user, they still get the apps anyway.

For example, I used the PowerShell command to remove a specific app for all users

Get-AppxPackage -AllUsers zunevideo | Remove-AppxPackage

Is this command incorrect to use?

Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
9,396 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Michael Taylor 53,416 Reputation points
    2022-09-08T19:22:18.447+00:00

    All that command does is remove an app from the machine. If you create a new user on the machine then Windows will simply reinstall the default programs again. Your command doesn't prevent that. To get the list of apps that will be installed when a new user is created run the Get-AppxProvisionedPackage command instead.

    I've never tried it but I believe the Remove-AppxProvisionedPackage command will allow you to remove provisioned apps which will prevent them from being auto-installed.

    0 comments No comments

  2. VgerNYC 1 Reputation point
    2022-09-08T21:22:58.447+00:00

    I have tried that command and I get errors in Powershell in Windows 10 Enterprise for Virtual Desktops 21H2

    Oddly....it works in Windows 11 ?!


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.