question

ritmo2k avatar image
0 Votes"
ritmo2k asked saldana-msft edited

Config Manager Application Deployment Implicit Uninstall

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?


mem-cm-generalmem-cm-application
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.

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

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

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.

ritmo2k avatar image
1 Vote"
ritmo2k answered ritmo2k commented

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.

· 2
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.

@ritmo2k
Have you tied to use the built-in option in MECM? Please refer to the below Official Document:
https://docs.microsoft.com/en-us/mem/configmgr/apps/deploy-use/revise-and-supersede-applications#supersedence

In addition, here is another article for your reference:
https://www.anoopcnair.com/sccm-application-supersedence/
The link isn't form MS, just for your reference.

Best regards,
Rita

0 Votes 0 ·

Hi,
It is not supersedence that I want to configure, there are PowerShell cmdlets to do this.

I need to implicitly uninstall the applications when the assigned resource is no longer a member of the target collection.

Thank you.

0 Votes 0 ·