Share via

Config Manager Application Deployment Implicit Uninstall

ritmo2k 911 Reputation points
2022-05-12T00:14:07.37+00:00

You can enable an application deployment to automatically uninstall when the assigned resource is no longer a member of the target collection by checking the "When a resource is no longer a member of the collection, uninstall the application" checkbox.

However, I can't seem to figure out to enable this using PowerShell with either new-cmapplicationdeployment or set-cmapplicationdeployment.

Does anyone know if that is possible?

Microsoft Security | Intune | Configuration Manager | Application
Microsoft Security | Intune | Configuration Manager | Other
0 comments No comments

Answer accepted by question author

Rita Hu -MSFT 9,666 Reputation points
2022-05-12T03:06:51.61+00:00

@ritmo2k
Thanks for your posting on Q&A.

I researched on the Internet and consult the other senior Engineers. It seems that there is no such PowerShell scripts we could refer to achieve this goal. I'm not a expert in PowerShell. Looking for others who are experts in PowerShell could share some ideas.

I will conduct in-depth research. I will come back if there are any updates of the case. But I just one question. Why you try to figure out the function by PowerShell though we could do it by MECM? No offense, just raised my confusion.

Thanks for your understanding and cooperation. Have a great day.

Best regards,
Rita


If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
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

1 additional answer

Sort by: Most helpful
  1. ritmo2k 911 Reputation points
    2022-05-12T10:26:18.963+00:00

    Hello,
    I was hoping to enable this feature programmatically as I have almost 100 applications that are all maintained using PowerShell.

    When a new version is required, a single script creates, deploys, and supersedes it.

    Thanks for confirming.

    Was this answer helpful?

    1 person found this answer helpful.

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.