Hello everyone,
I am having some issues with SCCM and package/application deployment. I can create the application fine in SCCM and confirmed it is deployed properly to the distribution point from the place where the content is stored. When creating the deployment, the files make it to my test machine in the C:\Windows\CCMCache\# directory without issue; however, when I look at event viewer and the SCCM logs, the application never installed. In event viewer, I see:
Beginning a Windows Installer transaction: C:\Windows\ccmcache\8\AcroRead.msi. Client Process Id: 12800.
Then a second or so later it is followed with:
Ending a Windows Installer transaction: C:\Windows\ccmcache\8\AcroRead.msi. Client Process Id: 12800.
If I manually run the command line for the installer that is in the deployment type config, everything installs properly from C:\windows\ccmcache\8. I even added msiexec logging so I'd know if the command is executed properly. The log file does show up when I run it manually from that directory; however, if I just deploy the package/application to my test machine, I never see the log file get created, only the quick two events in the event log referenced above.
In the AppEnforce log on the client, I get the following:
+++ Starting Install enforcement for App DT "Adobe Acrobat Reader DC - Windows Installer (*.msi file)" ApplicationDeliveryType - ScopeId_7345BBCF-325B-48AE-B7D4-8A44EB663415/DeploymentType_eeaa6a84-c7c3-4c40-80bb-fd634801d506, Revision - 3, ContentPath - C:\Windows\ccmcache\8, Execution Context - System AppEnforce 11/5/2021 2:20:36 PM 1796 (0x0704)
Performing detection of app deployment type Adobe Acrobat Reader DC - Windows Installer (*.msi file)(ScopeId_7345BBCF-325B-48AE-B7D4-8A44EB663415/DeploymentType_eeaa6a84-c7c3-4c40-80bb-fd634801d506, revision 3) for system. AppEnforce 11/5/2021 2:20:36 PM 1796 (0x0704)
+++ MSI application not discovered [MSI Product Code: {AC76BA86-7AD7-1033-7B44-AC0F074E4100}, MSI Product version: ] AppEnforce 11/5/2021 2:20:36 PM 1796 (0x0704)
App enforcement environment:
Context: Machine
Command line: msiexec /i "AcroRead.msi" /L*V "C:\log\example.log" /q TRANSFORMS=AcroRead.mst
Allow user interaction: No
UI mode: 0
User token: null
Session Id: 4294967295
Content path: C:\Windows\ccmcache\8
Working directory: AppEnforce 11/5/2021 2:20:36 PM 1796 (0x0704)
Prepared working directory: C:\Windows\ccmcache\8 AppEnforce 11/5/2021 2:20:36 PM 1796 (0x0704)
Found executable file msiexec with complete path C:\Windows\system32\msiexec.exe AppEnforce 11/5/2021 2:20:36 PM 1796 (0x0704)
Prepared command line: "C:\Windows\system32\msiexec.exe" /i "AcroRead.msi" /L*V "C:\log\example.log" /q TRANSFORMS=AcroRead.mst /qn AppEnforce 11/5/2021 2:20:36 PM 1796 (0x0704)
Valid MSI Package path = C:\Windows\ccmcache\8\AcroRead.msi AppEnforce 11/5/2021 2:20:37 PM 1796 (0x0704)
Advertising MSI package [C:\Windows\ccmcache\8\AcroRead.msi] to the system. AppEnforce 11/5/2021 2:20:37 PM 1796 (0x0704)
Executing Command line: "C:\Windows\system32\msiexec.exe" /i "AcroRead.msi" /L*V "C:\log\example.log" /q TRANSFORMS=AcroRead.mst /qn with system context AppEnforce 11/5/2021 2:20:38 PM 1796 (0x0704)
Working directory C:\Windows\ccmcache\8 AppEnforce 11/5/2021 2:20:38 PM 1796 (0x0704)
CMsiHandler::EnforceApp failed (0x80070005). AppEnforce 11/5/2021 2:20:38 PM 1796 (0x0704)
AppProvider::EnforceApp - Failed to invoke EnforceApp on Application handler(0x80070005). AppEnforce 11/5/2021 2:20:38 PM 1796 (0x0704)
CommenceEnforcement failed with error 0x80070005. AppEnforce 11/5/2021 2:20:38 PM 1796 (0x0704)
Method CommenceEnforcement failed with error code 80070005 AppEnforce 11/5/2021 2:20:38 PM 1796 (0x0704)
++++++ Failed to enforce app. Error 0x80070005. ++++++ AppEnforce 11/5/2021 2:20:38 PM 1796 (0x0704)
The AppDiscovery log also shows the following:
Entering ExecQueryAsync for query "select * from CCM_AppDeliveryType where (AppDeliveryTypeId = "ScopeId_7345BBCF-325B-48AE-B7D4-8A44EB663415/DeploymentType_eeaa6a84-c7c3-4c40-80bb-fd634801d506" AND Revision = 3)" AppDiscovery 11/5/2021 2:19:22 PM 1796 (0x0704)
Performing detection of app deployment type Adobe Acrobat Reader DC - Windows Installer (*.msi file)(ScopeId_7345BBCF-325B-48AE-B7D4-8A44EB663415/DeploymentType_eeaa6a84-c7c3-4c40-80bb-fd634801d506, revision 3) for system. AppDiscovery 11/5/2021 2:19:22 PM 1796 (0x0704)
+++ MSI application not discovered [MSI Product Code: {AC76BA86-7AD7-1033-7B44-AC0F074E4100}, MSI Product version: ] AppDiscovery 11/5/2021 2:19:22 PM 1796 (0x0704)
+++ Did not detect app deployment type Adobe Acrobat Reader DC - Windows Installer (*.msi file)(ScopeId_7345BBCF-325B-48AE-B7D4-8A44EB663415/DeploymentType_eeaa6a84-c7c3-4c40-80bb-fd634801d506, revision 3) for system. AppDiscovery 11/5/2021 2:19:22 PM 1796 (0x0704)
ActionType - Install will use Content Id: Content_aa5724e9-c801-4967-a8ce-d1272711550d + Content Version: 1 for AppDT "Adobe Acrobat Reader DC - Windows Installer (*.msi file)" [ScopeId_7345BBCF-325B-48AE-B7D4-8A44EB663415/DeploymentType_eeaa6a84-c7c3-4c40-80bb-fd634801d506], Revision - 3 AppDiscovery 11/5/2021 2:19:23 PM 1796 (0x0704)
Method EnforceApp failed with error 80070005 AppDiscovery 11/5/2021 2:20:38 PM 1796 (0x0704)
CAppProvider::ExecMethodAsync failed. Error 80070005 AppDiscovery 11/5/2021 2:20:38 PM 1796 (0x0704)
As I mentioned, the files do show up on my test machine, and the command line does appear to be correct; however, it doesn't seem to execute properly with the system account or doesn't seem to really execute properly as it is generating the msiexec events in the event viewer, but they seem to fail almost immediately.
If anyone has any ideas as to why this is occurring I would appreciate any advice.
I am having some issues with SCCM and package/application deployment. I can create the application fine in SCCM and confirmed it is deployed properly to the distribution point from the place where the content is stored. When creating the deployment, the files make it to my test machine in the C:\Windows\CCMCache\# directory without issue; however, when I look at event viewer and the SCCM logs, the application never installed. In event viewer, I see:
Beginning a Windows Installer transaction: C:\Windows\ccmcache\8\AcroRead.msi. Client Process Id: 12800.
Then a second or so later it is followed with:
Ending a Windows Installer transaction: C:\Windows\ccmcache\8\AcroRead.msi. Client Process Id: 12800.
If I manually run the command line for the installer that is in the deployment type config, everything installs properly from C:\windows\ccmcache\8. I even added msiexec logging so I'd know if the command is executed properly. The log file does show up when I run it manually from that directory; however, if I just deploy the package/application to my test machine, I never see the log file get created, only the quick two events in the event log referenced above.
In the AppEnforce log on the client, I get the following:
+++ Starting Install enforcement for App DT "Adobe Acrobat Reader DC - Windows Installer (*.msi file)" ApplicationDeliveryType - ScopeId_7345BBCF-325B-48AE-B7D4-8A44EB663415/DeploymentType_eeaa6a84-c7c3-4c40-80bb-fd634801d506, Revision - 3, ContentPath - C:\Windows\ccmcache\8, Execution Context - System AppEnforce 11/5/2021 2:20:36 PM 1796 (0x0704)
Performing detection of app deployment type Adobe Acrobat Reader DC - Windows Installer (*.msi file)(ScopeId_7345BBCF-325B-48AE-B7D4-8A44EB663415/DeploymentType_eeaa6a84-c7c3-4c40-80bb-fd634801d506, revision 3) for system. AppEnforce 11/5/2021 2:20:36 PM 1796 (0x0704)
+++ MSI application not discovered [MSI Product Code: {AC76BA86-7AD7-1033-7B44-AC0F074E4100}, MSI Product version: ] AppEnforce 11/5/2021 2:20:36 PM 1796 (0x0704)
App enforcement environment:
Context: Machine
Command line: msiexec /i "AcroRead.msi" /L*V "C:\log\example.log" /q TRANSFORMS=AcroRead.mst
Allow user interaction: No
UI mode: 0
User token: null
Session Id: 4294967295
Content path: C:\Windows\ccmcache\8
Working directory: AppEnforce 11/5/2021 2:20:36 PM 1796 (0x0704)
Prepared working directory: C:\Windows\ccmcache\8 AppEnforce 11/5/2021 2:20:36 PM 1796 (0x0704)
Found executable file msiexec with complete path C:\Windows\system32\msiexec.exe AppEnforce 11/5/2021 2:20:36 PM 1796 (0x0704)
Prepared command line: "C:\Windows\system32\msiexec.exe" /i "AcroRead.msi" /L*V "C:\log\example.log" /q TRANSFORMS=AcroRead.mst /qn AppEnforce 11/5/2021 2:20:36 PM 1796 (0x0704)
Valid MSI Package path = C:\Windows\ccmcache\8\AcroRead.msi AppEnforce 11/5/2021 2:20:37 PM 1796 (0x0704)
Advertising MSI package [C:\Windows\ccmcache\8\AcroRead.msi] to the system. AppEnforce 11/5/2021 2:20:37 PM 1796 (0x0704)
Executing Command line: "C:\Windows\system32\msiexec.exe" /i "AcroRead.msi" /L*V "C:\log\example.log" /q TRANSFORMS=AcroRead.mst /qn with system context AppEnforce 11/5/2021 2:20:38 PM 1796 (0x0704)
Working directory C:\Windows\ccmcache\8 AppEnforce 11/5/2021 2:20:38 PM 1796 (0x0704)
CMsiHandler::EnforceApp failed (0x80070005). AppEnforce 11/5/2021 2:20:38 PM 1796 (0x0704)
AppProvider::EnforceApp - Failed to invoke EnforceApp on Application handler(0x80070005). AppEnforce 11/5/2021 2:20:38 PM 1796 (0x0704)
CommenceEnforcement failed with error 0x80070005. AppEnforce 11/5/2021 2:20:38 PM 1796 (0x0704)
Method CommenceEnforcement failed with error code 80070005 AppEnforce 11/5/2021 2:20:38 PM 1796 (0x0704)
++++++ Failed to enforce app. Error 0x80070005. ++++++ AppEnforce 11/5/2021 2:20:38 PM 1796 (0x0704)
The AppDiscovery log also shows the following:
Entering ExecQueryAsync for query "select * from CCM_AppDeliveryType where (AppDeliveryTypeId = "ScopeId_7345BBCF-325B-48AE-B7D4-8A44EB663415/DeploymentType_eeaa6a84-c7c3-4c40-80bb-fd634801d506" AND Revision = 3)" AppDiscovery 11/5/2021 2:19:22 PM 1796 (0x0704)
Performing detection of app deployment type Adobe Acrobat Reader DC - Windows Installer (*.msi file)(ScopeId_7345BBCF-325B-48AE-B7D4-8A44EB663415/DeploymentType_eeaa6a84-c7c3-4c40-80bb-fd634801d506, revision 3) for system. AppDiscovery 11/5/2021 2:19:22 PM 1796 (0x0704)
+++ MSI application not discovered [MSI Product Code: {AC76BA86-7AD7-1033-7B44-AC0F074E4100}, MSI Product version: ] AppDiscovery 11/5/2021 2:19:22 PM 1796 (0x0704)
+++ Did not detect app deployment type Adobe Acrobat Reader DC - Windows Installer (*.msi file)(ScopeId_7345BBCF-325B-48AE-B7D4-8A44EB663415/DeploymentType_eeaa6a84-c7c3-4c40-80bb-fd634801d506, revision 3) for system. AppDiscovery 11/5/2021 2:19:22 PM 1796 (0x0704)
ActionType - Install will use Content Id: Content_aa5724e9-c801-4967-a8ce-d1272711550d + Content Version: 1 for AppDT "Adobe Acrobat Reader DC - Windows Installer (*.msi file)" [ScopeId_7345BBCF-325B-48AE-B7D4-8A44EB663415/DeploymentType_eeaa6a84-c7c3-4c40-80bb-fd634801d506], Revision - 3 AppDiscovery 11/5/2021 2:19:23 PM 1796 (0x0704)
Method EnforceApp failed with error 80070005 AppDiscovery 11/5/2021 2:20:38 PM 1796 (0x0704)
CAppProvider::ExecMethodAsync failed. Error 80070005 AppDiscovery 11/5/2021 2:20:38 PM 1796 (0x0704)
As I mentioned, the files do show up on my test machine, and the command line does appear to be correct; however, it doesn't seem to execute properly with the system account or doesn't seem to really execute properly as it is generating the msiexec events in the event viewer, but they seem to fail almost immediately.
If anyone has any ideas as to why this is occurring I would appreciate any advice.