Third-Party Patching for SCCM

Patch over 335+ third-party updates across 190 products in SCCM

Knowledge Base ArticlesDownload Trial

How to Delete Applications Created by Patch My PC in SCCM

In this article, we will review how to delete applications created by Patch My PC from SCCM.

There are a few scenarios where you may want to do this.

  • You no longer need Patch My PC for application management
  • There was an update in the publishing service to fix an application-specific issue that requires recreation of an application to take effect

Step 1: Deleting the Application Source Content

If you only need to delete a single application, the easiest method is to delete the source content and application from SCCM manually. In this example, we will be deleting the source content for 7-Zip 19.00 (MSI-x64).

  • Open the application’s deployment type in the SCCM console
  • Copy the content location path from the Content tab of the deployment type
    • deployment type content location path
  • Open the folder in file explorer and delete the GUID folder for the application
    • UNC content folder for deployment type in file explorer

If you need to delete all application content, you can remove all the vendor folders from the application source directory that was defined in the application options in the publishing service.

  • Find the source folder specified in the base install options of the publishing service
    • source folder in base install options
  • Go to this directory in file explorer to find the applications subfolder and delete all of the vendor folders within
    • vendor folders in application source files

Step 2: Delete the Application(s) from SCCM

To delete individual applications in the SCCM console:

  • Go to the Applications node in the Software Library 
  • Right-click the desired application and click Delete
    • delete single application in SCCM

To delete all applications in the SCCM console:

  • Click the blue tab in the top left corner of the console and Connect Via Windows Powershell
    • connect via powershell in SCCM console
  • Run the following command in the Powershell window
    • Get-CMApplication | Where-Object {($_.SDMPackageXML -like ‘*PatchMyPC-ScriptRunner.exe*’)} | Remove-CMApplication -Force -Verbose
  • The following verbose logging will show each application being deleted:
    • deleting applications with powershell
  • Any active deployments or task sequence references must be removed before the application can be successfully deleted. If an application is deployed or referenced in a task sequence, you will get  the following error:
    • delete application with powershell error

Step 3: Recreation of All Applications (optional)

If applications were deleted due to a recommendation from the Patch My PC support team due to a bug in a previous version, here is the process to quickly recreate the applications.

  • Manually run a publishing service sync in the Sync Schedule tab of the publishing service
    • manually run publishing sync
  • Monitor the sync process by opening the PatchMyPC.log in the General Settings tab
  • Once all applications are recreated, verify in the console under the Comments column of the application that the “Created by Patch My PC…” version matches the version in the About tab in the publishing service
    • application version verification