Forum Discussion

SimonA730's avatar
SimonA730
Copper Contributor
Aug 05, 2022

Auto uninstall applications

HI,

 

We're just starting to roll out applications via company portal and wanted to know if there is a way to automatically uninstall applications once users are removed from the assigned group?

 

I know you can assign an uninstall group, but that's a headache to manage, I want to remove the app once a user is removed from the assignment.

 

This is mainly for windows 10 Client. 

  • Mr_Helaas's avatar
    Mr_Helaas
    Steel Contributor

    Hi SimonA730

     

    Yes, it is possible. What you could try is the following, set the uninstall assignment for all users with an exclude on your application group and set the application group as included for required or optional. 

     

     

    When the user is added to All Sales Users it will get the application, when he is removed from the group the app will automatically be deleted. 

     

    More information: Include and exclude app assignments in Microsoft Intune | Microsoft Docs

     

    Kind regards,

     

    Rene

     

    • nickdmahan's avatar
      nickdmahan
      Copper Contributor

      Mr_Helaas dealing with this now and in fact it is just uninstalling with these settings. Per the learn doc:

      Important scenarios exist when including or excluding app assignments:

      • Exclusion takes precedence over inclusion in the following same group type scenarios:
        • Including user groups and excluding user groups when assigning apps

          so excluding and including will just exclude.

          Any ideas?

    • NielsScheffers's avatar
      NielsScheffers
      Iron Contributor

      Lol, Mr_Helaas beat me to it. Just wanted to add a little further explanation.

       

      If you look at Windows 10/11 app deployment by using Microsoft Intune | Microsoft Docs and scroll way down to the bottom, you'll see something about conflict resolutions, stating "An install policy is a higher priority than an uninstall policy".

       

      This is why Rene's solution works: the "required" (or "available") assignment overrules the "uninstall" assignment. 

       

       

Resources