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 ?!
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
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?
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 ?!
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.