Share via

Windows 10 Virtual desktop - default apps problem

Bonus12 1,126 Reputation points
2021-06-08T21:03:22.83+00:00

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?

Azure Virtual Desktop
Azure Virtual Desktop

A Microsoft desktop and app virtualization service that runs on Azure. Previously known as Windows Virtual Desktop.

Windows for business | Windows Client for IT Pros | User experience | Other

4 answers

Sort by: Most helpful
  1. Kelley, Larry 1 Reputation point
    2021-08-10T21:01:10.223+00:00

    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.

    Was this answer helpful?


  2. Andy YOU 3,076 Reputation points
    2021-06-22T01:25:49.257+00:00

    HI

    Is there any progress on your question?

    Was this answer helpful?

    0 comments No comments

  3. Andy YOU 3,076 Reputation points
    2021-06-09T05:04:04.987+00:00

    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://learn.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://learn.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.

    Was this answer helpful?

    0 comments No comments

  4. S.Sengupta 30,906 Reputation points MVP Volunteer Moderator
    2021-06-09T00:59:46.023+00:00

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

    Remove-AppxPackage

    Was this answer helpful?

    0 comments No comments

Your answer

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