question

Bonus12 avatar image
0 Votes"
Bonus12 asked prmanhas-MSFT commented

Windows 10 Virtual desktop - default apps problem

Hi,

I deployed windows virtual desktop, trying to clean the image from windows default apps but every time i remove these apps they get installed again.

ex. xbox and weather.

the command i'm using is

Get-AppxPackage weather | Remove-AppxPackage

or

Get-AppxPackage weather -Allusers | Remove-AppxPackage


I'm spending so much time on this and don't have a clue , any advise?

windows-10-generalazure-virtual-desktop
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

HI

Is there anything to help you?

0 Votes 0 ·
SSengupta-4080 avatar image
0 Votes"
SSengupta-4080 answered

Make sure you are logged in as Administrator.I shall suggest you to kindly go through the following Microsoft reference:

Remove-AppxPackage


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

JiaYou-MSFT avatar image
0 Votes"
JiaYou-MSFT answered JiaYou-MSFT edited

HI Bonus12,

In general, we need to use below command to get packagename which you want to remove app from your image.
get-AppXProvisionedPackage -Online

then use below powershell command to remove provisioned app from win10 image.

Remove-AppXProvisionedPackage -Online -PackageName <PackageName>

Remove-AppxProvisionedPackage
https://docs.microsoft.com/en-us/powershell/module/dism/remove-appxprovisionedpackage?view=win10-ps

For your current issue, we can also refer below document to keep apps removed from Windows 10.
How to keep apps removed from Windows 10 from returning during an update
https://docs.microsoft.com/en-us/windows/application-management/remove-provisioned-apps-during-update

============================================
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.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

JiaYou-MSFT avatar image
0 Votes"
JiaYou-MSFT answered

HI

Is there any progress on your question?

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

KelleyLarry-1595 avatar image
0 Votes"
KelleyLarry-1595 answered prmanhas-MSFT commented

Was there any update to this? I am experiencing the same issue. I have logged into the session as administrator and ran the following commands.
Get-AppxPackage -AllUsers | where-object {$.name –notlike “store”} | Remove-AppxPackage
Get-appxprovisionedpackage –online | where-object {$
.packagename –notlike “store”} | Remove-AppxProvisionedPackage -online
They complete and the apps are removed. However, when I log back on they are installed again. Not sure what else to try.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@KelleyLarry-1595 Did you tried the commands mentioned by @JiaYou-MSFT as well above?

0 Votes 0 ·