Hello,
I have created an Application Deployment for Microsoft Defender Endpoint but apparently it failed...
AppDiscovery.log
Entering ExecQueryAsync for query "select from CCM_AppDeliveryType where (AppDeliveryTypeId = "ScopeId_67BB9074-421B-4166-A053-A8090F9523EF/DeploymentType_75d770f0-437b-4e0f-be0a-8521401f49fd" AND Revision = 1)" AppDiscovery 5/12/2022 9:20:12 PM 4876 (0x130C)
Performing detection of app deployment type Microsoft Defender for Endpoint - Windows Installer (.msi file)(ScopeId_67BB9074-421B-4166-A053-A8090F9523EF/DeploymentType_75d770f0-437b-4e0f-be0a-8521401f49fd, revision 1) for system. AppDiscovery 5/12/2022 9:20:12 PM 4876 (0x130C)
+++ MSI application not discovered [MSI Product Code: {7408CCAD-F482-5316-A83E-A83EB073A520}, MSI Product version: ] AppDiscovery 5/12/2022 9:20:12 PM 4876 (0x130C)
+++ Did not detect app deployment type Microsoft Defender for Endpoint - Windows Installer (.msi file)(ScopeId_67BB9074-421B-4166-A053-A8090F9523EF/DeploymentType_75d770f0-437b-4e0f-be0a-8521401f49fd, revision 1) for system. AppDiscovery 5/12/2022 9:20:12 PM 4876 (0x130C)
ActionType - Install will use Content Id: Content_ef967186-a197-4bc7-8e42-62f58650a22b + Content Version: 1 for AppDT "Microsoft Defender for Endpoint - Windows Installer (.msi file)" [ScopeId_67BB9074-421B-4166-A053-A8090F9523EF/DeploymentType_75d770f0-437b-4e0f-be0a-8521401f49fd], Revision - 1 AppDiscovery 5/12/2022 9:20:13 PM 4876 (0x130C)
ActionType - Install will use Content Id: Content_ef967186-a197-4bc7-8e42-62f58650a22b + Content Version: 1 for AppDT "Microsoft Defender for Endpoint - Windows Installer (*.msi file)" [ScopeId_67BB9074-421B-4166-A053-A8090F9523EF/DeploymentType_75d770f0-437b-4e0f-be0a-8521401f49fd], Revision - 1 AppDiscovery 5/12/2022 9:20:13 PM 4876 (0x130C)
AppEnforce.log
+++ Starting Install enforcement for App DT "Microsoft Defender for Endpoint - Windows Installer (.msi file)" ApplicationDeliveryType - ScopeId_67BB9074-421B-4166-A053-A8090F9523EF/DeploymentType_75d770f0-437b-4e0f-be0a-8521401f49fd, Revision - 1, ContentPath - C:\Windows\ccmcache\z, Execution Context - System AppEnforce 5/12/2022 9:20:13 PM 4876 (0x130C)
Performing detection of app deployment type Microsoft Defender for Endpoint - Windows Installer (.msi file)(ScopeId_67BB9074-421B-4166-A053-A8090F9523EF/DeploymentType_75d770f0-437b-4e0f-be0a-8521401f49fd, revision 1) for system. AppEnforce 5/12/2022 9:20:13 PM 4876 (0x130C)
+++ MSI application not discovered [MSI Product Code: {7408CCAD-F482-5316-A83E-A83EB073A520}, MSI Product version: ] AppEnforce 5/12/2022 9:20:13 PM 4876 (0x130C)
App enforcement environment:
Context: Machine
Command line: cmd /c Powershell -executionpolicy Bypass -command "& {. .\Install.ps1 -OnboardingScript ".\WindowsDefenderATPOnboardingScript.CMD"}"
Allow user interaction: No
UI mode: 0
User token: null
Session Id: 2
Content path: C:\Windows\ccmcache\z
Working directory: AppEnforce 5/12/2022 9:20:13 PM 4876 (0x130C)
Prepared working directory: C:\Windows\ccmcache\z AppEnforce 5/12/2022 9:20:13 PM 4876 (0x130C)
Found executable file cmd with complete path C:\Windows\system32\cmd.exe AppEnforce 5/12/2022 9:20:13 PM 4876 (0x130C)
Prepared command line: "C:\Windows\system32\cmd.exe" /c Powershell -executionpolicy Bypass -command "& {. .\Install.ps1 -OnboardingScript ".\WindowsDefenderATPOnboardingScript.CMD"}" AppEnforce 5/12/2022 9:20:13 PM 4876 (0x130C)
Executing Command line: "C:\Windows\system32\cmd.exe" /c Powershell -executionpolicy Bypass -command "& {. .\Install.ps1 -OnboardingScript ".\WindowsDefenderATPOnboardingScript.CMD"}" with user context AppEnforce 5/12/2022 9:20:13 PM 4876 (0x130C)
Working directory C:\Windows\ccmcache\z AppEnforce 5/12/2022 9:20:13 PM 4876 (0x130C)
Post install behavior is BasedOnExitCode AppEnforce 5/12/2022 9:20:13 PM 4876 (0x130C)
Waiting for process 7152 to finish. Timeout = 120 minutes. AppEnforce 5/12/2022 9:20:13 PM 4876 (0x130C)
Process 7152 terminated with exitcode: 1 AppEnforce 5/12/2022 9:20:16 PM 4876 (0x130C)
Looking for exit code 1 in exit codes table... AppEnforce 5/12/2022 9:20:16 PM 4876 (0x130C)
Unmatched exit code (1) is considered an execution failure. AppEnforce 5/12/2022 9:20:16 PM 4876 (0x130C)
++++++ App enforcement completed (2 seconds) for App DT "Microsoft Defender for Endpoint - Windows Installer (*.msi file)" [ScopeId_67BB9074-421B-4166-A053-A8090F9523EF/DeploymentType_75d770f0-437b-4e0f-be0a-8521401f49fd], Revision: 1, User SID: ] ++++++ AppEnforce 5/12/2022 9:20:16 PM 4876 (0x130C)
I used the command line to install it manually and it works... Not sure what is failing when deployed with Configuration Manager...
Any idea?
Thanks,
Dom