Enable SCCM Implicit Uninstall of Applications | ConfigMgr

In this useful post I will show you how to use or enable SCCM implicit uninstall of applications. You can now enable the SCCM application deployment to support implicit uninstall from the 2107 or later version.

We will understand what SCCM implicit uninstall of applications means, and use this new feature during application deployment.

What exactly does “Implicit Uninstall of Applications” in SCCM mean. With the implicit uninstall option, a device installs the applications if it’s a part of a SCCM device collection and when you remove the device from the collection, the application uninstalls.

One of the most used feature of Configuration Manager is application deployment. Many organizations have lots of collections because for every application that you deploy, you need at least two collections – one for install and another for uninstall.

If you have many applications, this practice adds overhead of managing more collections, and can reduce site performance for collection evaluation. The solution to this issue is Implicit application uninstall, introduced as a new feature in SCCM 2107.

The Implicit Uninstall of Applications is a new feature introduced in SCCM 2107 release. So as a prerequisite, you must be running ConfigMgr 2107 and above to enable an application deployment to support implicit uninstall.

The implicit uninstall option is available only when you select a device collection during SCCM application deployment. In other words, the SCCM implicit uninstall applications feature is not available for user collections. The deployment purpose must be Required to use the implicit application uninstall feature. You must enable Uninstall this application if the targeted object falls out of the collection option to use implicit uninstall of applications.

NoteYou must be careful with enabling this option on deployments to large query-based collections. Especially queries to external sources like Active Directory groups. An unexpected external change could automatically trigger numerous devices to uninstall the application.

Enable SCCM Implicit Uninstall of Applications

In SCCM, you can enable Implicit Uninstall of Applications using the following steps.

  • First launch the SCCM console.
  • Navigate to Software Library\Overview\Application Management\Applications.
  • Right-click an application, click Deploy and choose a target device collection.
  • On the Deployment Settings window, select the Purpose as Required.
  • For SCCM implicit uninstall of application, enable the option Uninstall this application if the targeted object falls out of the collection.
Enable SCCM Implicit Uninstall of Applications
Enable SCCM Implicit Uninstall of Applications

You may choose to schedule the application deployment on Scheduling page. On the User Experience page, specify the appropriate settings for user notifications. Click Next.

Enable Implicit Uninstall of Applications in ConfigMgr
Enable SCCM Implicit Uninstall of Applications

Review the settings on Summary page and on Completion window, click Close.

Enable Implicit Uninstall of Applications in ConfigMgr
Enable SCCM Implicit Uninstall of Applications

Monitor SCCM Implicit Uninstall of Application

Let’s monitor SCCM Implicit Uninstall of the application now. The application is deployed as required to the target device collection. The devices that are part of the device collection will have the application installed. But wait, we are yet to test the implicit uninstall application feature.

One quick check that I am doing here is checking the application deployment status. As per the below screenshot, I see the application is installed on both the devices that are part of device collection.

Application Deployment Status
Monitor Application Deployment Status

To test the implicit uninstall application feature in SCCM, I will be removing a device manually from the device collection. If I do that, the application should uninstall automatically.

After a few minutes, the application was uninstalled from the target computer. We can conclude that the implicit uninstall of the application worked flawlessly. You can verify the implicit uninstall of the application by opening the AppEnforce.log file on the client computer.

+++ Starting Uninstall enforcement for App DT "7-Zip 19.00 (x64 edition) - Windows Installer (*.msi file)
Performing detection of app deployment type 7-Zip 19.00 (x64 edition) - Windows Installer (*.msi file)
+++ Discovered MSI application [AppDT Id: ScopeId_187120FE-9A9C-46D3-9808-A9944585A41E/DeploymentType_6cf3a77b-51e4-448a-946a-28b3714784af, Revision: 1, MSI Product code: {23170F69-40C1-2702-1900-000001000000}, MSI Product version: ]
App enforcement environment: 
Context: Machine
Command line: msiexec /x {23170F69-40C1-2702-1900-000001000000} /q
Allow user interaction: No
UI mode: 1
User token: null
Session Id: 4294967295
Content path: C:\Windows\ccmcache\1
Working directory: 	AppEnforce
Prepared working directory: C:\Windows\ccmcache\1
Found executable file msiexec with complete path C:\Windows\system32\msiexec.exe
Prepared command line: "C:\Windows\system32\msiexec.exe" /x {23170F69-40C1-2702-1900-000001000000} /q /qn
    Executing Command line: "C:\Windows\system32\msiexec.exe" /x {23170F69-40C1-2702-1900-000001000000} /q /qn with system context)
    Working directory C:\Windows\ccmcache\1
    Post install behavior is BasedOnExitCode
    Waiting for process 6340 to finish.  Timeout = 120 minutes.
    Process 6340 terminated with exitcode: 0
    Looking for exit code 0 in exit codes table...
    Matched exit code 0 to a Success entry in exit codes table.
    Performing detection of app deployment type 7-Zip 19.00 (x64 edition) - Windows Installer (*.msi file)
++++++ App enforcement completed (1 seconds) for App DT "7-Zip 19.00 (x64 edition) - Windows Installer (*.msi file)" [ScopeId_187120FE-9A9C-46D3-9808-A9944585A41E/DeploymentType_6cf3a77b-51e4-448a-946a-28b3714784af], Revision: 1, User SID: ]
Uninstall this application if the targeted object falls out of the collection
Uninstall this application if the targeted object falls out of the collection

Need Assistance?

Send us a message or post your question in forums.