error "Command HRESULT="-2147418113" when using "COMMAND" in On-Demand Diagnostics Logs

Copper Contributor

Our Windows 1903 endpoints are successfully uploading several registry keys and eventviever logs to Azure Blob storage.
But some simple commands are failing:

Command HRESULT="-2147418113" when using the command : C:\Windows\System32\wbem\wmic.exe bios get biosversion

Same error when using command : C:\Windows\System32\WindowsPowershell\v1.0\powershell.exe -noprofile -command "& get-content C:\windows\inf\ -Tail 250".
I've paid special attention to special characters that need to be escaped in xml and made sure full paths are used.
Does anyone have an idea how to troubleshoot?

The command "C:\Windows\system32\ipconfig.exe /all" is working fine :
"<Command HRESULT="0">C:\Windows\system32\ipconfig.exe /all</Command>".
1 Reply

Microsoft updated the DiagnosticLog CSP documentation.
Version 1.4 of the documentation now clearly explains why some commands won't run for privacy reasons.