Config Manager Application Deployment Implicit Uninstall

ritmo2k 806 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 Configuration Manager Application
Microsoft Configuration Manager Application
Microsoft Configuration Manager: An integrated solution for for managing large groups of personal computers and servers.Application: A computer program designed to carry out a specific task other than one relating to the operation of the computer itself, typically to be used by end users.
501 questions
Microsoft Configuration Manager
0 comments No comments
{count} votes

Accepted answer
  1. Rita Hu -MSFT 9,641 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.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. ritmo2k 806 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.

    1 person found this answer helpful.

Your answer

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